Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion discovery-tuya_siren.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ variables:
payload_battery: >-
{{ '{"name":"' ~ name ~ ' Power Status","state_topic":"' ~ topic ~ '/battery","value_template":"{% if value == \'1\' %}high{% elif value == \'2\' %}medium{% elif value == \'3\' %}low{% elif value == \'4\' %}USB{% endif %}","icon":"mdi:power-plug-outline","availability_topic":"tele/' ~ topic ~ '/LWT","payload_available":"Online","payload_not_available":"Offline","uniq_id":"' ~ macaddr ~ '_battery","device":{"cns":[["mac","' ~ macaddr ~ '"]]}}' }}
payload_chime: >-
{{ '{"name":"' ~ name ~ ' Active Chime","state_topic":"' ~ topic ~ '/chime","value_template":"{% if value== \'0\' %}Doorbell{% elif value== \'1\' %}Fur Elise{% elif value== \'2\' %}Big Ben{% elif value== \'3\' %}Ring Ring{% elif value== \'4\' %}Lone Ranger{% elif value== \'5\' %}Turkish March{% elif value== \'6\' %}High Pitched{% elif value== \'7\' %}Red Alert{% elif value== \'8\' %}Crickets{% elif value== \'9\' %}Beep{% elif value== \'10\' %}Dog Bark{% elif value== \'11\' %}Police Siren{% elif value== \'12\' %}Grandfather Clock{% elif value== \'13\' %}Phone Ring{% elif value== \'14\' %}Fire Truck{% elif value== \'15\' %}Clock Chime{% elif value== \'16\' %}Alarm Clock{% elif value== \'17\' %}School Bell{% endif %}","command_topic":"cmnd/' ~ topic ~ '/event","options":["Doorbell","Elise","Big Ben","Ring Ring","Lone Ranger","Turkish March","High Pitched","Red Alert","Crickets","Beep","Dog Bark","Police Siren","Grandfather Clock","Phone Ring","Fire Truck","Clock Chime","Alarm Clock","School Bell"],"icon":"mdi:music-note","avty_t":"tele/' ~ topic ~ '/LWT","payload_available":"Online","payload_not_available":"Offline","uniq_id":"' ~ macaddr ~ '_chime","device":{"cns":[["mac","' ~ macaddr ~ '"]]}}' }}
{{ '{"name":"' ~ name ~ ' Active Chime","state_topic":"' ~ topic ~ '/chime","value_template":"{% if value== \'0\' %}Doorbell{% elif value== \'1\' %}Fur Elise{% elif value== \'2\' %}Big Ben{% elif value== \'3\' %}Ring Ring{% elif value== \'4\' %}Lone Ranger{% elif value== \'5\' %}Turkish March{% elif value== \'6\' %}High Pitched{% elif value== \'7\' %}Red Alert{% elif value== \'8\' %}Crickets{% elif value== \'9\' %}Beep{% elif value== \'10\' %}Dog Bark{% elif value== \'11\' %}Police Siren{% elif value== \'12\' %}Grandfather Clock{% elif value== \'13\' %}Phone Ring{% elif value== \'14\' %}Fire Truck{% elif value== \'15\' %}Clock Chime{% elif value== \'16\' %}Alarm Clock{% elif value== \'17\' %}School Bell{% endif %}","command_topic":"cmnd/' ~ topic ~ '/event","options":["Doorbell","Fur Elise","Big Ben","Ring Ring","Lone Ranger","Turkish March","High Pitched","Red Alert","Crickets","Beep","Dog Bark","Police Siren","Grandfather Clock","Phone Ring","Fire Truck","Clock Chime","Alarm Clock","School Bell"],"icon":"mdi:music-note","avty_t":"tele/' ~ topic ~ '/LWT","payload_available":"Online","payload_not_available":"Offline","uniq_id":"' ~ macaddr ~ '_chime","device":{"cns":[["mac","' ~ macaddr ~ '"]]}}' }}

trigger_variables:
topic: !input topic
Expand Down