Hi all,
got a problem I encountered some time ago ignored it and now I’m looking into it for an hour.
I used Everythings Smart Home’s video to set this up: Home Assistant Actionable Notifications on iOS AND Android - YouTube
I build an automation to notify me, when I’m not home, if any device is still on. I added an actionable notification to turn off a switch, which will basically turn off all devices.
Everything works up until I press the button on the notification. I can see the event gets triggered, but turning the switch off and sending the notification after that, is not.
Can anyone help me out?
alias: Benachrichtigung Abwesenheit_Verbraucher
description: ""
trigger:
- platform: time_pattern
minutes: /5
condition:
- condition: not
conditions:
- condition: zone
entity_id: device_tracker.oneplus_a6013
zone: zone.home
action:
- if:
- condition: state
entity_id: group.ganzes_haus
state: "on"
then:
- service: notify.mobile_app_oneplus_a6013
data:
message: Verbraucher noch an
data:
actions:
- action: GANZESHAUS_AUS
title: Ausschalten
- wait_for_trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: GANZESHAUS_AUS
context: {}
timeout:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
continue_on_timeout: false
- service: homeassistant.turn_off
data: {}
target:
entity_id: group.ganzes_haus
- service: notify.mobile_app_oneplus_a6013
data:
message: Ganzes Haus ausgeschaltet
mode: single