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 - type: divider
- automation.lighting_master_bedroom_toggle_lights_on_bedside_switch_single_click - automation.lighting_master_bedroom_toggle_lights_on_bedside_switch_single_click
- type: divider - 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_day_mode_motion_turn_lights_off
- 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
@@ -96,7 +96,7 @@
entity: binary_sensor.motion_1_ias_zone entity: binary_sensor.motion_1_ias_zone
name: Motion name: Motion
variables: 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 - type: custom:button-card
template: template:
- small - small
@@ -288,7 +288,7 @@
entity: binary_sensor.motion_1_ias_zone entity: binary_sensor.motion_1_ias_zone
name: Kitchen name: Kitchen
variables: 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 - type: horizontal-stack
cards: cards:
- type: custom:button-card - type: custom:button-card
@@ -1,5 +1,5 @@
automation: automation:
- alias: Lighting · Kitchen · Day mode · Motion · Turn lights on after sunset - alias: Lighting · Kitchen · Day mode · Motion · Turn lights on
trigger: trigger:
platform: state platform: state
entity_id: binary_sensor.motion_1_ias_zone entity_id: binary_sensor.motion_1_ias_zone
@@ -13,19 +13,21 @@ automation:
- condition: state - condition: state
entity_id: input_select.house_mode entity_id: input_select.house_mode
state: "day" 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: action:
- service: light.turn_on - service: light.turn_on
entity_id: entity_id: light.browser_kitchen
- light.tuya_kitchen data:
- light.browser_kitchen 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: data:
brightness_pct: 100 brightness_pct: 100