mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-20 04:04:06 +00:00
You can find the entire repo here.
This commit is contained in:
21
config/automation/mealtime.yaml
Executable file
21
config/automation/mealtime.yaml
Executable file
@@ -0,0 +1,21 @@
|
||||
######################################################################
|
||||
## Time to eat - Set it up!
|
||||
######################################################################
|
||||
|
||||
- alias: Meal Time
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.meal_time
|
||||
to: 'on'
|
||||
from: 'off'
|
||||
|
||||
action:
|
||||
- service: light.turn_on
|
||||
entity_id:
|
||||
- group.dinette_lights
|
||||
- group.kitchen_lights
|
||||
- service: light.turn_off
|
||||
entity_id:
|
||||
- group.living_room_lights
|
||||
- service: input_boolean.turn_off
|
||||
entity_id: input_boolean.meal_time
|
Reference in New Issue
Block a user