I currently am running 2 different scripts one for tv on and one for tv off.
Here’s what I’m using…
turn_on_tv:
alias: turn on tv
sequence:
- service: media_player.turn_on
data:
entity_id: media_player.shield
- service: light.turn_on
data:
entity_id: light.tv_stand_2
- service: media_player.turn_on
data:
entity_id: media_player.vizio_smartcast
- delay: "00:00:03"
- service: media_player.select_source
target:
entity_id: media_player.vizio_smartcast
data:
source: HDMI-3
- service: switch.turn_on
data:
entity_id: switch.living_room_ambient_tv
- delay: "00:00:15"
That turns everything on…
Here’s the one for off:
turn_off_tv:
alias: turn off tv
sequence:
- service: light.turn_off
data:
entity_id: light.tv_stand_2
- service: switch.turn_off
data:
entity_id: switch.living_room_ambient_tv
- service: media_player.turn_off
data:
entity_id: media_player.vizio_smartcast
- service: media_player.turn_off
data:
entity_id: media_player.shield
Is it possible to combine the two into one? Currently I have two different dashboard buttons ‘on’ and ‘off’ I’d just like to combine somehow and just have one dashboard button.
Thanks all!
1 post - 1 participant