mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-11-07 01:52:11 +00:00
Some Accent light goodness.
This commit is contained in:
37
automation/kitchen_lights_and_accents.yaml
Executable file
37
automation/kitchen_lights_and_accents.yaml
Executable file
@@ -0,0 +1,37 @@
|
|||||||
|
#####################################################################################
|
||||||
|
### If the Kitchen Lights go on for more than 10 minutes, turn off the accent lights
|
||||||
|
#####################################################################################
|
||||||
|
|
||||||
|
- alias: Kitchen lights on - Accent lights off
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: group.kitchen_lights
|
||||||
|
state: 'on'
|
||||||
|
for: '00:10:00'
|
||||||
|
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: switch.kitchen_accents
|
||||||
|
state: 'on'
|
||||||
|
|
||||||
|
action:
|
||||||
|
- service: switch.turn_off
|
||||||
|
entity_id: switch.kitchen_accents
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
- alias: Kitchen lights off - turn on Accent lights
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: group.kitchen_lights
|
||||||
|
state: 'off'
|
||||||
|
|
||||||
|
condition:
|
||||||
|
- condition: sun
|
||||||
|
after: 'sunset'
|
||||||
|
- condition: time
|
||||||
|
before: '02:00:00'
|
||||||
|
|
||||||
|
action:
|
||||||
|
- service: switch.turn_on
|
||||||
|
entity_id: switch.kitchen_accents
|
||||||
@@ -57,6 +57,8 @@ logbook:
|
|||||||
- sensor.garadget_large_time_in_state
|
- sensor.garadget_large_time_in_state
|
||||||
- sensor.garadget_large_wifi_signal_strength
|
- sensor.garadget_large_wifi_signal_strength
|
||||||
- sensor.garadget_small_wifi_signal_strength
|
- sensor.garadget_small_wifi_signal_strength
|
||||||
|
- sensor.garadget_small_reflection_rate
|
||||||
|
- sensor.garadget_large_reflection_rate
|
||||||
- group.garage_doors
|
- group.garage_doors
|
||||||
#logger:
|
#logger:
|
||||||
# default: info
|
# default: info
|
||||||
|
|||||||
Reference in New Issue
Block a user