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
@@ -57,7 +57,7 @@ cards:
- type: divider
- automation.lighting_master_bedroom_toggle_lights_on_bedside_switch_single_click
- type: divider
- automation.lighting_kitchen_day_mode_motion_turn_lights_on_after_sunset
- automation.lighting_kitchen_day_mode_motion_turn_lights_on
- automation.lighting_kitchen_day_mode_motion_turn_lights_off
- automation.lighting_kitchen_night_mode_motion_turn_lights_on
- automation.lighting_kitchen_night_mode_motion_turn_lights_off
@@ -96,7 +96,7 @@
entity: binary_sensor.motion_1_ias_zone
name: Motion
variables:
state_indicator_id: automation.lighting_kitchen_day_mode_motion_turn_lights_on_after_sunset
state_indicator_id: automation.lighting_kitchen_day_mode_motion_turn_lights_on
- type: custom:button-card
template:
- small
@@ -288,7 +288,7 @@
entity: binary_sensor.motion_1_ias_zone
name: Kitchen
variables:
state_indicator_id: automation.lighting_kitchen_day_mode_motion_turn_lights_on_after_sunset
state_indicator_id: automation.lighting_kitchen_day_mode_motion_turn_lights_on
- type: horizontal-stack
cards:
- type: custom:button-card
@@ -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