Hi
I trigger this template with the state of input_boolean.tedtv, when switched on it triggers all action, but doesnt run the last one which is set as homeassistant.turn_off in the code below, i have also tried input_boolean.turn_off and toggle. I want the above boolean to turn off automatically so it shows as of until i want to trigger the template again (looks nicer on hadashboard)
- platform: template
switches:
tvonoff:
value_template: "{{ is_state('input_boolean.tedtv', 'on') }}"
turn_on:
- service: switch.turn_on
entity_id: switch.tivo_tedstv
- service: switch.turn_on
entity_id: switch.20146435807d3a4a790c
- service: media_player.turn_on
data:
entity_id: media_player.yamaha_receiver_lounge_room
- service: media_player.select_source
data:
entity_id: media_player.yamaha_receiver_lounge_room
source: av2
- service: switch.broadlink_send_packet_192_168_5_78
data:
packet:
- "JgBUAE4UEhMpESkRKhAWECkRFREnFBITFREVERUAAzxREBYQKhAnEycTExMpERURKhAWEBYQFhAWAAM7ThQUEScUKBEpERURKhAWECkRFBITExMTEwANBQAAAAA="
- service: homeassistant.turn_off
data:
entity_id: input_boolean.tedtv
turn_off: