I have created an actionable notification to notify me when my garage door has been open for an hour, with an option to close the garage. It was working for a little bit but now if I click the button on the notification to close the garage, nothing happens.
After trying to troubleshoot, I believe it is due to the fact that the mobile_app_notification_action listener is no longer there. So the trigger I have in my automation that waits for mobile_app_notification_action events, never triggers since my HA is not listening for those events.
My understanding was once I created a trigger for that event in my automation, a listener would automatically get created for it.
Below is the yaml for my automation and the listeners that are currently active for my HA instance
alias: Garage Left Open
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.garage_door_sensor
to: "on"
for:
hours: 1
minutes: 0
seconds: 0
condition: []
action:
- service: notify.mobile_app_derek_s_phone
data:
message: Garage Has Been Open For An Hour
title: Oops
data:
ttl: 0
priority: high
actions:
- action: CLOSE_GARAGE
title: Close Garage
- wait_for_trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: CLOSE_GARAGE
timeout:
hours: 0
minutes: 0
seconds: 0
milliseconds: 0
continue_on_timeout: false
- service: button.press
metadata: {}
data: {}
target:
entity_id: button.garage_door_button
- wait_for_trigger:
- platform: state
entity_id:
- binary_sensor.garage_door_sensor
to: "off"
continue_on_timeout: false
- service: notify.mobile_app_derek_s_phone
metadata: {}
data:
title: Good Job
message: Garage Was Closed
data:
ttl: 0
priority: high
mode: single