mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-08-28 16:57:14 +00:00
This is the current config. Moved old to the v1-config branch
This commit is contained in:
25
automation/switches.yaml
Normal file
25
automation/switches.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
#
|
||||
#
|
||||
# Switches
|
||||
#
|
||||
############
|
||||
|
||||
- alias: "Kitchen - Turn Off Lights"
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: light.kitchen_cabinets
|
||||
to: 'off'
|
||||
action:
|
||||
- service: light.turn_off
|
||||
data:
|
||||
entity_id: light.kitchen_light_strip
|
||||
|
||||
- alias: "Kitchen - Turn On Lights"
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: light.kitchen_cabinets
|
||||
to: 'on'
|
||||
action:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.kitchen_light_strip
|
Reference in New Issue
Block a user