1
0

Add meal automations

This commit is contained in:
Przemek Grondek 2023-10-04 23:48:17 +02:00
parent f08728a49a
commit a8df96a1d6
4 changed files with 71 additions and 0 deletions

View File

@ -1,3 +1,14 @@
meal_alert:
name: It's time to eat a meal
done_message: Remmeber to eat on time
entity_id: input_boolean.meal_alert
state: 'on'
repeat: 15
message: Remember to eat on time
notifiers:
- mobile_app_iphone
- hulk
washing_machine: washing_machine:
name: Washing machine is done name: Washing machine is done
done_message: Laundry taken out done_message: Laundry taken out

View File

@ -0,0 +1,46 @@
- 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
- 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_helper
- service: input_boolean.turn_off
target:
entity_id: input_boolean.meal_alert

View File

@ -34,6 +34,12 @@ input_boolean:
intercom_button: intercom_button:
name: "Intercom button helper" name: "Intercom button helper"
icon: "mdi:door-closed-lock" icon: "mdi:door-closed-lock"
meal_alert:
name: "Meal alert"
icon: "mdi:silverware-fork-knife"
meal_helper:
name: "Meal helper"
icon: "mdi:silverware-fork-knife"
pc_caffeine: pc_caffeine:
name: "PC Caffeine" name: "PC Caffeine"
icon: "mdi:desktop-tower-monitor" icon: "mdi:desktop-tower-monitor"

View File

@ -1,6 +1,11 @@
good_night: good_night:
alias: Good Night alias: Good Night
sequence: sequence:
- service: input_boolean.turn_off
target:
entity_id:
- input_boolean.meal_helper
- input_boolean.meal_alert
- service: input_select.select_option - service: input_select.select_option
data: data:
option: Night option: Night
@ -98,6 +103,9 @@ before_wakeup:
good_morning: good_morning:
alias: Good Morning alias: Good Morning
sequence: sequence:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.meal_alert
- service: input_boolean.turn_off - service: input_boolean.turn_off
target: target:
entity_id: input_boolean.daily_coffee entity_id: input_boolean.daily_coffee