Advertisement
Guest User

Untitled

a guest
Feb 4th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Bridge.things
  2. Bridge mqtt:broker:mybroker "MQTT Broker: MyBroker"
  3. [
  4.     host="192.168.178.23",
  5.     port=1883,
  6.     secure="false",
  7.     username="xxx",
  8.     password="xxx"
  9. ]
  10.  
  11. //shelly.things
  12.  
  13. Thing mqtt:topic:mybroker:garage  "Shelly Garage"
  14.      (mqtt:broker:mybroker)
  15. {
  16.     Channels:
  17.         Type switch : power "Power"
  18.             [
  19.                 stateTopic = "shellies/shelly1-xxxxxx/relay/0",
  20.                 commandTopic = "shellies/shelly1-xxxxxx/relay/0/command",
  21.                 on="on",
  22.                 off="off"
  23.             ]
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement