Still iterating on the home cinema configuration

This commit is contained in:
Pierre committed 2026-09-26 16:43:24 +02:00
1 parent ed6f218968
commit ed59a72c3f
6 files changed
+232 -35

No files matched your search

+8 -5
View File
@@ -4,7 +4,7 @@ virtual_sensors:
priority: 10 # default priority app is 50, since most of them require sensors created by virtual sensors, it's important that virtual_sensors start first
default_values:
binary_sensor.tv_on: false
binary_sensor.is_tv_on: false
sensors:
binary_sensor.someone_home: person.maeva == 'home' or person.pierre == 'home' or (input_boolean.use_red_shelly_presence and binary_sensor.red_shelly_home)
@@ -23,7 +23,7 @@ virtual_sensors:
0:
- not binary_sensor.living_room_occupancy
- binary_sensor.projector_on and not binary_sensor.is_vertex2_content_idle
- binary_sensor.tv_on
- binary_sensor.is_tv_on
- light.living_room
- sensor.mezzanine_motion_light_level > 15
- binary_sensor.is_living_room_sleeping
@@ -34,7 +34,7 @@ virtual_sensors:
# home cinema sensors
binary_sensor.projector_on: switch.living_room_projector_plug and sensor.living_room_projector_plug_power > 50
binary_sensor.projector_screen_down: cover.living_room_projection_screen.current_position < 50
binary_sensor.projector_screen_down: cover.living_room_projection_screen.current_position < 90
continuous_condition.projector_off_for_a_while:
time: 90
default_value: on
@@ -44,11 +44,14 @@ virtual_sensors:
binary_sensor.is_apple_tv_on: media_player.apple_tv != 'off' and media_player.apple_tv != 'idle'
binary_sensor.is_xbox_on: binary_sensor.yetanotherpedro #media_player.xbox != 'off' and media_player.xbox != 'unavailable'
binary_sensor.is_playstation_on: switch.ps5_136_power
retain_condition.vertex2_has_input_signal:
retain_time: 10
sensor.vertex2_input_selected_icon: sensor.vertex2_input_selected.icon
retain_condition.vertex2_has_input_signal:
retain_time: 15
conditions:
trigger_conditions: (sensor.vertex2_video_signal and sensor.vertex2_video_signal != 'no signal') or sensor.vertex2_audio_signal
disable_conditions: binary_sensor.vertex2_unreachable
sensor_attributes:
icon: sensor.vertex2_input_selected_icon
binary_sensor.is_using_apple_tv: binary_sensor.is_apple_tv_on and binary_sensor.vertex2_has_input_signal #and select.hdfury_vertex2_07_port_select_tx0 == 0
binary_sensor.is_using_xbox: binary_sensor.is_xbox_on and binary_sensor.vertex2_has_input_signal #and select.hdfury_vertex2_07_port_select_tx0 == 1
binary_sensor.is_using_playstation: binary_sensor.is_playstation_on and binary_sensor.vertex2_has_input_signal #and select.hdfury_vertex2_07_port_select_tx0 == 2