Tweak kitchen light on automation

This commit is contained in:
2020-05-09 17:47:52 +03:00
parent b506225a00
commit 8c2215a32b
4 changed files with 17 additions and 15 deletions
@@ -1,5 +1,5 @@
automation:
- alias: Lighting · Kitchen · Day mode · Motion · Turn lights on after sunset
- alias: Lighting · Kitchen · Day mode · Motion · Turn lights on
trigger:
platform: state
entity_id: binary_sensor.motion_1_ias_zone
@@ -13,19 +13,21 @@ automation:
- condition: state
entity_id: input_select.house_mode
state: "day"
- condition: or
conditions:
- condition: sun
after: sunset
after_offset: "-01:00:00"
- condition: numeric_state
entity_id: sensor.dark_sky_cloud_coverage
above: 80
action:
- service: light.turn_on
entity_id:
- light.tuya_kitchen
- light.browser_kitchen
entity_id: light.browser_kitchen
data:
brightness_pct: 100
- condition: or
conditions:
- condition: sun
after: sunset
after_offset: "-01:00:00"
- condition: numeric_state
entity_id: sensor.dark_sky_cloud_coverage
above: 80
- service: light.turn_on
entity_id: light.tuya_kitchen
data:
brightness_pct: 100