#Actionable notification not working

1 messages · Page 1 of 1 (latest)

daring lantern
#
description: Bay 2 left open for over 1 hour
triggers:
  - entity_id:
      - binary_sensor.garage_bay_2_tilt_sensor_window_door_is_open
    to: "on"
    for:
      hours: 1
      minutes: 0
      seconds: 0
    from: "off"
    trigger: state
conditions: []
actions:
  - data:
      message: Bay 2 Open (test)
      title: Garage
      data:
        notification_icon: mdi:garage-alert-variant
        color: blue
        actions:
          - action: script.bay2_opener
            title: Close Bay
          - action: Dismiss
            title: Dismiss
    action: notify.family
mode: single```
haughty warren
#

You can't put a script in an actionable notification and expect it to be executed

#

the action is just an ID that gets passed back in the notification response event

#

you need another automation to listen for that event and call the script when detected

#

(or wait for the event within this automation)

#

there are examples in the documentation

daring lantern
#

I've been using this automation for 2 years and it just now stopped working. And according to the documentation the posted automation is setup exactly how it should be lol