TASMOTA

Szafa – TASMOTA -HomeAssistant

rule1 on switch1#state do publish stat/%topic%/PIR1 %value% endon on switch2#state do publish stat/%topic%/PIR2 %value% endon

rule1 1

SwitchMode1 1

SwitchMode2 1

rule2 on system#boot do publish homeassistant/binary_sensor/%deviceid%_motion_pir1/config {„name”:”PIR1″,”state_topic”:”stat/%topic%/PIR1″,”payload_on”:1,”availability_topic”:”tele/%topic%/LWT”,”payload_available”:”Online”,”payload_not_available”:”Offline”,”device_class”:”motion”,”force_update”:true,”off_delay”:30,”unique_id”:”%deviceid%_motion_pir1″,”device”:{„identifiers”:[„%deviceid%”]}} endon

rule2 1

rule3 on system#boot do publish homeassistant/binary_sensor/%deviceid%_motion_pir2/config {„name”:”PIR2″,”state_topic”:”stat/%topic%/PIR2″,”payload_on”:1,”availability_topic”:”tele/%topic%/LWT”,”payload_available”:”Online”,”payload_not_available”:”Offline”,”device_class”:”motion”,”force_update”:true,”off_delay”:30,”unique_id”:”%deviceid%_motion_pir2″,”device”:{„identifiers”:[„%deviceid%”]}} endon

rule3 1

color:

WebColor {"WebColor":["#000000","#ffffff","#f2f2f2","#000000","#ffffff","#000000","#ffffff","#ff0000","#008000","#ffffff","#1fa3ec","#0e70a4","#d43535","#931f1f","#47c266","#5aaf6f","#ffffff","#999999","#000000"]}