From 8c2215a32b987514d6aaf1ff182c4ee809bc6955 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Sat, 9 May 2020 17:47:52 +0300 Subject: [PATCH] Tweak kitchen light on automation --- .../advanced_dashboard/10_system.yaml | 2 +- .../home_dashboard/kitchen_dashboard.yaml | 2 +- .../home_dashboard/main_dashboard.yaml | 2 +- .../modules/lighting/by_rooms/kitchen.yaml | 26 ++++++++++--------- 4 files changed, 17 insertions(+), 15 deletions(-) diff --git a/config/lovelace/advanced_dashboard/10_system.yaml b/config/lovelace/advanced_dashboard/10_system.yaml index aec2223..e853d13 100644 --- a/config/lovelace/advanced_dashboard/10_system.yaml +++ b/config/lovelace/advanced_dashboard/10_system.yaml @@ -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 diff --git a/config/lovelace/home_dashboard/kitchen_dashboard.yaml b/config/lovelace/home_dashboard/kitchen_dashboard.yaml index 2cb0cbf..5f05aaf 100644 --- a/config/lovelace/home_dashboard/kitchen_dashboard.yaml +++ b/config/lovelace/home_dashboard/kitchen_dashboard.yaml @@ -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 diff --git a/config/lovelace/home_dashboard/main_dashboard.yaml b/config/lovelace/home_dashboard/main_dashboard.yaml index 4b81876..3a80b2b 100644 --- a/config/lovelace/home_dashboard/main_dashboard.yaml +++ b/config/lovelace/home_dashboard/main_dashboard.yaml @@ -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 diff --git a/config/packages/modules/lighting/by_rooms/kitchen.yaml b/config/packages/modules/lighting/by_rooms/kitchen.yaml index ea564d0..4be38e5 100644 --- a/config/packages/modules/lighting/by_rooms/kitchen.yaml +++ b/config/packages/modules/lighting/by_rooms/kitchen.yaml @@ -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