42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
- 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: Day
|
|
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: Day
|
|
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
|