Skip to content

Instantly share code, notes, and snippets.

@splatch
Created January 4, 2024 22:21
Show Gist options
  • Save splatch/c429095ddf17c959d715722c4fb212f6 to your computer and use it in GitHub Desktop.
Save splatch/c429095ddf17c959d715722c4fb212f6 to your computer and use it in GitHub Desktop.
<Things>
<things>
<things>
<kind>Thing</kind>
<UID>mqtt:topic:mything</UID>
<bridgeUID>mqtt:broker:myInsecureBroker</bridgeUID>
<label>mything</label>
<channels>
<id>lamp</id>
<type>switch</type>
<label>Kitchen Lamp</label>
<configuration>
<commandTopic>lamp/enabled/set</commandTopic>
<stateTopic>lamp/enabled</stateTopic>
</configuration>
</channels>
<channels>
<id>fancylamp</id>
<type>switch</type>
<label>Fancy Lamp</label>
<configuration>
<commandTopic>fancy/lamp/command</commandTopic>
<stateTopic>fancy/lamp/state</stateTopic>
<off>i-am-off</off>
<on>i-am-on</on>
</configuration>
</channels>
<channels>
<id>alarmpanel</id>
<type>string</type>
<label>Alarm system</label>
<configuration>
<commandTopic>alarm/panel/set</commandTopic>
<allowedStates>ARMED_HOME,ARMED_AWAY,UNARMED</allowedStates>
<stateTopic>alarm/panel/state</stateTopic>
</configuration>
</channels>
<channels>
<id>lampcolor</id>
<type>color</type>
<label>Kitchen Lamp color</label>
<configuration>
<commandTopic>lamp/color/set</commandTopic>
<colorMode>RGB</colorMode>
<stateTopic>lamp/color</stateTopic>
</configuration>
</channels>
<channels>
<id>blind</id>
<type>dimmer</type>
<label>Blind</label>
<configuration>
<commandTopic>blind/set</commandTopic>
<step>1</step>
<min>0</min>
<stateTopic>blind/state</stateTopic>
<max>5</max>
</configuration>
</channels>
</things>
<things>
<kind>Bridge</kind>
<thingTypeUID>mqtt:broker</thingTypeUID>
<id>myInsecureBroker</id>
<configuration>
<host>192.168.0.42</host>
<secure>false</secure>
</configuration>
</things>
</things>
</Things>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment