1
0
ansible-home-assistant/configuration/automations/kitchen-meals.yaml

42 lines
1.0 KiB
YAML
Raw Normal View History

2023-10-04 21:48:17 +00:00
- id: kitchen_meals_start
alias: '[Kitchen] Meal alert start'
mode: single
trigger:
- platform: state
entity_id: input_boolean.meal_helper
to: "on"
for:
hours: 3
condition:
- condition: state
entity_id: input_select.home_mode
state: Home
action:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.meal_alert
- service: input_boolean.turn_off
target:
entity_id: input_boolean.meal_helper
- id: kitchen_meals_eaten
alias: '[Kitchen] Meal eaten'
mode: single
trigger:
- device_id: c0e0b405854000dcaa538cd0f3fc11de
domain: zha
platform: device
type: remote_button_short_press
subtype: remote_button_short_press
condition:
- condition: state
entity_id: input_select.home_mode
state: Home
action:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.meal_helper
- service: input_boolean.turn_off
target:
entity_id: input_boolean.meal_alert