Files
consonance/scripts/consonance_activities_tv.yml

71 lines
1.6 KiB
YAML

---
sequence:
- condition: state
entity_id: input_select.current_activity
state: None
- action: input_select.select_option
metadata: {}
data:
option: TV
target:
entity_id: input_select.current_activity
- action: remote.send_command
metadata: {}
data:
num_repeats: 1
delay_secs: 0.4
hold_secs: 0
device: triangle_ln01a
command: power_toggle
target:
entity_id: remote.rm4pro
alias: Turn on Triangle LN01A
- action: remote.send_command
metadata: {}
data:
num_repeats: 1
delay_secs: 0.4
hold_secs: 0
device: lg_oled_c1
command: power_toggle
target:
entity_id: remote.rm4pro
alias: Turn on TV OLED LG C1
- action: input_boolean.turn_on
metadata: {}
data: {}
target:
entity_id:
- input_boolean.tv_oled_lg_c1
- input_boolean.triangle_ln01a
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- action: remote.send_command
metadata: {}
data:
num_repeats: 1
delay_secs: 0.4
hold_secs: 0
device: triangle_ln01a
command: input_optical
target:
entity_id: remote.rm4pro
alias: Set input on Triangle LN01A to Optical
- alias: Set input on TV OLED LG C1 to TV
action: remote.send_command
metadata: {}
data:
num_repeats: 1
delay_secs: 0.4
hold_secs: 0
device: lg_oled_c1
command: input_tv
target:
entity_id: remote.rm4pro
alias: consonance_activities_tv
description: ""
icon: mdi:television-box