33# Complete example of complex device setup with multiple subscriptions and commands
44Living Room Light :
55# device name - make sure it is exactly the same as in smartthings
6- attribute : switch
7- # REQUIRED: mapped to an actual attribute of device [e.g. switch, contact or any custom attribute
8- # this attribute is specified in the capability map section of the mbs-smartapp
9- # an attribute is required for each topic subbscription
10- subscribe :
11- # topic details to which smartthings will be subscribed
12- # (topic, payload) from MQTT will be transformed to (device, attribute, payload*) to smartthings
6+ subscribe :
7+ # topic details to which smartthings will be subscribed
8+ # (topic, payload) from MQTT will be transformed to (device, attribute, payload*) to smartthings
9+ switch :
10+ # REQUIRED: mapped to an actual attribute of device [e.g. switch, contact or any custom attribute
11+ # this attribute is specified in the capability map section of the mbs-smartapp
12+ # an attribute is required for each topic subbscription
1313 smartthings/stat/sonoff-1/POWER :
1414 # OPTIONAL: subscribe to this topic, for tasmota you really need it to get status updates for third party on/off
1515 command :
@@ -27,17 +27,17 @@ Living Room Light:
2727 # OPTIONAL: commands (device, attribute, payload) from smartthings is send to MQTT as (topic, payload*)
2828 switch :
2929 # REQUIRED: attribute specified in the capability map section of the mbs-smartapp
30- topic : smartthings/cmnd/sonoff-1/POWER
30+ smartthings/cmnd/sonoff-1/POWER :
3131 # REQUIRED: topic to be published to MQTT
32- command :
33- # REQUIRED: transforming payload from smartthings to the one sent to MQTT and physical device
34- ' off ' : ' OFF'
35- ' on ' : ' ON'
32+ command :
33+ # REQUIRED: transforming payload from smartthings to the one sent to MQTT and physical device
34+ ' off ' : ' OFF'
35+ ' on ' : ' ON'
3636 update :
37- topic : smartthings/cmnd/sonoff-1/Backlog
38- command :
39- # tasmota specific example of using Backlog to send multiple simultaneous commands to physical device
40- refresh : Status; Status 2; Status 5; Status 11
37+ smartthings/cmnd/sonoff-1/Backlog :
38+ command :
39+ # tasmota specific example of using Backlog to send multiple simultaneous commands to physical device
40+ refresh : Status; Status 2; Status 5; Status 11
4141 retain : ' false'
4242 # false set as default and here
4343
0 commit comments