Some checks failed
Savin's Home Assistant / build (push) Failing after 1m45s
123 lines
3.7 KiB
YAML
123 lines
3.7 KiB
YAML
---
|
|
# source_list: Windows 11, PlayStation 4 Pro, Nvidia Shield TV, Unifi Protect, TV/Nothing, Sonos, ChromeCast/Network, Bluetooth
|
|
# friendly_name: VSX-LX505
|
|
# supported_features: 69516
|
|
# video_out: yes,out
|
|
# video_information:
|
|
# video_input_port: No Video
|
|
# input_resolution: Unknown
|
|
#input_color_depth: 24bit
|
|
# output_resolution: Unknown
|
|
# output_color_depth: 24bit
|
|
|
|
- alias: "[Media] Projector mode"
|
|
id: media_switching_to_projector_mode
|
|
initial_state: "true"
|
|
trigger:
|
|
- platform: state
|
|
entity_id: select.living_room_harmony_hub_activities
|
|
to: "ShTV+AVR+Prj"
|
|
action:
|
|
- service: cover.open_cover
|
|
data:
|
|
entity_id: cover.motor_01
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: media_player.onkyo_receiver
|
|
state: "off"
|
|
sequence:
|
|
- service: media_player.turn_on
|
|
entity_id: media_player.onkyo_receiver
|
|
- delay: "00:00:05"
|
|
- service: media_player.onkyo_select_hdmi_output
|
|
data:
|
|
entity_id: media_player.onkyo_receiver
|
|
hdmi_output: out-sub # out | out-sub | sub/both
|
|
- delay: "00:00:01"
|
|
- service: button.press
|
|
target:
|
|
entity_id:
|
|
- button.esp8266_hdmi_cec_01_turn_active_source
|
|
- service: telegram_bot.send_message
|
|
data:
|
|
target: "-1002338954143"
|
|
message_thread_id: 4
|
|
message_tag: night_mode_finished
|
|
title: "[Home Assistant] Media System"
|
|
message: 'Switching to media system to the Projector mode'
|
|
|
|
- alias: "[Media] TV mode"
|
|
id: media_switching_to_tv_mode
|
|
initial_state: "true"
|
|
trigger:
|
|
- platform: state
|
|
entity_id: select.living_room_harmony_hub_activities
|
|
to: "ShTV+AVR+TV"
|
|
action:
|
|
# - service: button.press
|
|
# target:
|
|
# entity_id:
|
|
# - button.esp8266_hdmi_cec_01_turn_everything_off
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: cover.motor_01
|
|
state: "open"
|
|
sequence:
|
|
- service: cover.close_cover
|
|
data:
|
|
entity_id: cover.motor_01
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: media_player.onkyo_receiver
|
|
state: "off"
|
|
sequence:
|
|
- service: media_player.turn_on
|
|
entity_id: media_player.onkyo_receiver
|
|
- delay: '00:00:05'
|
|
- service: media_player.onkyo_select_hdmi_output
|
|
data:
|
|
entity_id: media_player.onkyo_receiver
|
|
hdmi_output: out
|
|
- delay: "00:00:01"
|
|
- service: button.press
|
|
target:
|
|
entity_id:
|
|
- button.esp8266_hdmi_cec_02_turn_active_source
|
|
- service: telegram_bot.send_message
|
|
data:
|
|
target: "-1002338954143"
|
|
message_thread_id: 4
|
|
message_tag: night_mode_finished
|
|
title: "[Home Assistant] Media System"
|
|
message: 'Switching to media system to the TV mode'
|
|
|
|
- alias: "[Media] Off mode"
|
|
id: media_switching_off
|
|
initial_state: "true"
|
|
trigger:
|
|
- platform: state
|
|
entity_id: select.living_room_harmony_hub_activities
|
|
to: "power_off"
|
|
action:
|
|
- service: cover.close_cover
|
|
data:
|
|
entity_id: cover.motor_01
|
|
- service: button.press
|
|
target:
|
|
entity_id:
|
|
- button.esp8266_hdmi_cec_01_turn_everything_off
|
|
- service: button.press
|
|
target:
|
|
entity_id:
|
|
- button.esp8266_hdmi_cec_02_turn_everything_off
|
|
- service: telegram_bot.send_message
|
|
data:
|
|
target: "-1002338954143"
|
|
message_thread_id: 4
|
|
message_tag: night_mode_finished
|
|
title: "[Home Assistant] Media System"
|
|
message: 'Switching OFF media system'
|