diff --git a/apps/global/virtualsensors.yaml b/apps/global/virtualsensors.yaml index eab0b8f..db36f12 100644 --- a/apps/global/virtualsensors.yaml +++ b/apps/global/virtualsensors.yaml @@ -87,22 +87,22 @@ virtual_sensors: # living room sensors value_selector.living_room_ambiance_light: values: - 0: + 0: #0 off - not binary_sensor.living_room_occupancy - binary_sensor.projector_on and not binary_sensor.is_vertex2_content_idle - binary_sensor.is_tv_on - light.living_room - - sensor.mezzanine_motion_light_level > 15 + - "sensor.mezzanine_motion_light_level > (self == 0 ? 15 : 20)" - binary_sensor.is_living_room_sleeping - 1: + 1: # dimmed - binary_sensor.is_everybody_sleeping - binary_sensor.projector_on - 2: true + 2: true #full # home cinema sensors - binary_sensor.projector_on: switch.living_room_projector_plug and sensor.living_room_projector_plug_power > 50 + binary_sensor.projector_on: switch.projector #switch.living_room_projector_plug and sensor.living_room_projector_plug_power > 50 continuous_condition.projector_off_for_a_while: - time: 90 + time: 300 default_value: on conditions: not binary_sensor.projector_on # is_apple_tv_on is not reliable as the the apple tv integration sometimes return "paused" when it's actually off,