tv_on:
alias: TV On
sequence:
service: mqtt.publish
data:
qos: 1
topic: sony
payload: tv on
I am expecting, that after device status is changed to ‘home’, mqtt message is send. I can see that device status is changed but nothing happend afterwards. Its the same via direct /dev-service call.
btw, I added data to my original script to turn on wall plug properly:
tv_on:
alias: TV On
sequence:
- service: switch.turn_on
data:
entity_id: switch.fibaro_plug_1_switch
- wait_template: "{{ states.device_tracker.androidtv == 'home' }}"
- service: mqtt.publish
data:
qos: 1
topic: sony
payload: tv on