mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-11-08 21:28:44 +00:00
Hallway day mode light automation
This commit is contained in:
@@ -60,6 +60,8 @@ cards:
|
|||||||
- automation.lighting_kitchen_night_mode_motion_turn_lights_on
|
- automation.lighting_kitchen_night_mode_motion_turn_lights_on
|
||||||
- automation.lighting_kitchen_night_mode_motion_turn_lights_off
|
- automation.lighting_kitchen_night_mode_motion_turn_lights_off
|
||||||
- type: divider
|
- type: divider
|
||||||
|
- automation.lighting_hallway_day_mode_motion_turn_lights_on
|
||||||
|
- automation.lighting_hallway_day_mode_motion_turn_lights_off
|
||||||
- automation.lighting_hallway_night_mode_motion_turn_lights_on
|
- automation.lighting_hallway_night_mode_motion_turn_lights_on
|
||||||
- automation.lighting_hallway_night_mode_motion_turn_lights_off
|
- automation.lighting_hallway_night_mode_motion_turn_lights_off
|
||||||
- type: divider
|
- type: divider
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ automation:
|
|||||||
entity_id: binary_sensor.motion_1_ias_zone
|
entity_id: binary_sensor.motion_1_ias_zone
|
||||||
to: "off"
|
to: "off"
|
||||||
for:
|
for:
|
||||||
minutes: 10
|
minutes: 5
|
||||||
condition:
|
condition:
|
||||||
condition: template
|
condition: template
|
||||||
value_template: "{{ not is_state('input_select.house_mode', 'day') }}"
|
value_template: "{{ not is_state('input_select.house_mode', 'day') }}"
|
||||||
@@ -121,6 +121,44 @@ automation:
|
|||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id: light.light_le_12
|
entity_id: light.light_le_12
|
||||||
|
|
||||||
|
- alias: Lighting · Hallway · Day mode · Motion · Turn lights on
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: binary_sensor.motion_2_ias_zone
|
||||||
|
to: "on"
|
||||||
|
condition:
|
||||||
|
condition: and
|
||||||
|
conditions:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_select.house_mode
|
||||||
|
state: 'day'
|
||||||
|
- condition: state
|
||||||
|
entity_id: sun.sun
|
||||||
|
state: 'below_horizon'
|
||||||
|
action:
|
||||||
|
- service: light.turn_on
|
||||||
|
entity_id: light.hallway_all_lights
|
||||||
|
|
||||||
|
- alias: Lighting · Hallway · Day mode · Motion · Turn lights off
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: binary_sensor.motion_2_ias_zone
|
||||||
|
to: "off"
|
||||||
|
for:
|
||||||
|
minutes: 5
|
||||||
|
condition:
|
||||||
|
condition: and
|
||||||
|
conditions:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_select.house_mode
|
||||||
|
state: 'day'
|
||||||
|
- condition: state
|
||||||
|
entity_id: sun.sun
|
||||||
|
state: 'below_horizon'
|
||||||
|
action:
|
||||||
|
- service: light.turn_off
|
||||||
|
entity_id: light.hallway_all_lights
|
||||||
|
|
||||||
- alias: Lighting · Hallway · Night mode · Motion · Turn lights on
|
- alias: Lighting · Hallway · Night mode · Motion · Turn lights on
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
@@ -145,7 +183,7 @@ automation:
|
|||||||
entity_id: binary_sensor.motion_2_ias_zone
|
entity_id: binary_sensor.motion_2_ias_zone
|
||||||
to: "off"
|
to: "off"
|
||||||
for:
|
for:
|
||||||
minutes: 10
|
minutes: 5
|
||||||
condition:
|
condition:
|
||||||
condition: template
|
condition: template
|
||||||
value_template: "{{ not is_state('input_select.house_mode', 'day') }}"
|
value_template: "{{ not is_state('input_select.house_mode', 'day') }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user