mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-04-29 06:48:16 +00:00
Tweak lights motion automations
This commit is contained in:
@@ -10,7 +10,10 @@ automation:
|
|||||||
state: "on"
|
state: "on"
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.ceiling_lights
|
entity_id:
|
||||||
|
- light.living_room_all_lights
|
||||||
|
- light.master_bedroom_all_lights
|
||||||
|
- light.hallway_all_lights
|
||||||
data:
|
data:
|
||||||
brightness_pct: 100
|
brightness_pct: 100
|
||||||
|
|
||||||
@@ -53,7 +56,7 @@ automation:
|
|||||||
- alias: Lighting · Kitchen · Day mode · Motion · Turn lights on after sunset
|
- alias: Lighting · Kitchen · Day mode · Motion · Turn lights on after sunset
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: binary_sensor.browser_kitchen
|
entity_id: binary_sensor.motion_1_ias_zone
|
||||||
to: "on"
|
to: "on"
|
||||||
condition:
|
condition:
|
||||||
condition: and
|
condition: and
|
||||||
@@ -71,7 +74,7 @@ automation:
|
|||||||
- alias: Lighting · Kitchen · Day mode · Motion · Turn lights off
|
- alias: Lighting · Kitchen · Day mode · Motion · Turn lights off
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: binary_sensor.browser_kitchen
|
entity_id: binary_sensor.motion_1_ias_zone
|
||||||
to: "off"
|
to: "off"
|
||||||
for:
|
for:
|
||||||
minutes: 30
|
minutes: 30
|
||||||
@@ -92,7 +95,7 @@ automation:
|
|||||||
- alias: Lighting · Kitchen · Night mode · Motion · Turn lights on
|
- alias: Lighting · Kitchen · Night mode · Motion · Turn lights on
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: binary_sensor.browser_kitchen
|
entity_id: binary_sensor.motion_1_ias_zone
|
||||||
to: "on"
|
to: "on"
|
||||||
condition:
|
condition:
|
||||||
condition: template
|
condition: template
|
||||||
@@ -101,12 +104,12 @@ automation:
|
|||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.light_le_12
|
entity_id: light.light_le_12
|
||||||
data:
|
data:
|
||||||
brightness_pct: 13
|
brightness_pct: 13 # this is the lowest it'll go ¯\_(ツ)_/¯
|
||||||
|
|
||||||
- alias: Lighting · Kitchen · Night mode · Motion · Turn lights off
|
- alias: Lighting · Kitchen · Night mode · Motion · Turn lights off
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: binary_sensor.browser_kitchen
|
entity_id: binary_sensor.motion_1_ias_zone
|
||||||
to: "off"
|
to: "off"
|
||||||
for:
|
for:
|
||||||
minutes: 10
|
minutes: 10
|
||||||
@@ -131,10 +134,13 @@ automation:
|
|||||||
value_template: "{{ not is_state('input_select.house_mode', 'day') }}"
|
value_template: "{{ not is_state('input_select.house_mode', 'day') }}"
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id:
|
entity_id: light.light_le_8
|
||||||
- light.light_lohas_6
|
|
||||||
data:
|
data:
|
||||||
brightness_pct: 13 # this is the lowest it'll go ¯\_(ツ)_/¯
|
brightness_pct: 13s
|
||||||
|
- service: light.turn_on
|
||||||
|
entity_id: light.light_lohas_6
|
||||||
|
data:
|
||||||
|
brightness_pct: 30
|
||||||
|
|
||||||
- alias: Lighting · Hallway · Night mode · Motion · Turn lights off
|
- alias: Lighting · Hallway · Night mode · Motion · Turn lights off
|
||||||
trigger:
|
trigger:
|
||||||
@@ -149,9 +155,11 @@ automation:
|
|||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id:
|
entity_id:
|
||||||
|
- light.light_le_8
|
||||||
- light.light_lohas_6
|
- light.light_lohas_6
|
||||||
data:
|
data:
|
||||||
brightness_pct: 100
|
brightness_pct: 100
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.light_lohas_6
|
- light.light_lohas_6
|
||||||
|
- light.light_le_8
|
||||||
|
|||||||
@@ -14,9 +14,17 @@ automation:
|
|||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.living_room_main_lights
|
# If the lights are listed by groups, turning on 1 light always turns on the others in the group.
|
||||||
- light.master_bedroom_main_lights
|
- light.light_lohas_1
|
||||||
- light.hallway_entrance_lights
|
- light.light_lohas_2
|
||||||
|
- light.light_lohas_3
|
||||||
|
- light.light_lohas_4
|
||||||
|
- light.light_lohas_5
|
||||||
|
- light.light_lohas_6
|
||||||
|
- light.light_le_1
|
||||||
|
- light.light_le_2
|
||||||
|
- light.light_le_3
|
||||||
|
- light.light_le_4
|
||||||
to: "on"
|
to: "on"
|
||||||
action:
|
action:
|
||||||
# Can't use the script here, because they all could be fired at the same time.
|
# Can't use the script here, because they all could be fired at the same time.
|
||||||
|
|||||||
Reference in New Issue
Block a user