1
0

Add option to mark meal eaten from notification

This commit is contained in:
Przemek Grondek 2024-03-31 00:13:47 +01:00
parent f5bf20a9a8
commit c8f8219991
2 changed files with 22 additions and 2 deletions

View File

@ -7,7 +7,10 @@ meal_alert:
repeat: 15 repeat: 15
notifiers: notifiers:
- mobile_app_iphone - mobile_app_iphone
- hulk data:
actions:
- action: MEAL_EATEN
title: "Mark meal as eaten"
washing_machine: washing_machine:
name: Washing machine is done name: Washing machine is done

View File

@ -51,7 +51,7 @@
- service: script.arrive_home - service: script.arrive_home
- id: mobile_action-clothes_put_away - id: mobile_action-clothes_put_away
alias: '[Mobile-action] Clothes puth away' alias: '[Mobile-action] Clothes put away'
description: '' description: ''
mode: single mode: single
trigger: trigger:
@ -63,3 +63,20 @@
- service: input_boolean.turn_off - service: input_boolean.turn_off
target: target:
entity_id: input_boolean.washing_clothes_dry entity_id: input_boolean.washing_clothes_dry
- id: mobile_action-meal_eaten
alias: '[Mobile-action] Meal eaten'
description: ''
mode: single
trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: MEAL_EATEN
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