I am now unable to get actionable notifications to work under one automation. I have managed to get this to work in the past but not anymore. I am not sure if this was because of an update to HA or just the configuration is just wrong.
If I remove the Condition step and have separate automations based on the action, it works, but ideally I would like to keep it all under one automation like the above. So the issue appears to be the vaule_template code which is causing the problem. Can someone help me please?
Inside each of the value templates, term to the right of the equal sign in the comparison needs to be in quotes since the value for action is returned as a string.
Apologies, I have managed to get it to work and you are right. I changed the timeout time to 1m for testing and it works. I didnt need to have the action in all caps but I did need to add double quotes around the action for the template i.e. {{ wait.trigger.event.data.action == "action_open" }}
The example actionable notification in the HA Companion app docs doesn’t show comparing the Wait trigger action to a string because it defines the value in a variable that returns a unique action string. The example is specifically set up this way to show best practices which will prevent you from experiencing seemingly random triggers.
If you do not use the suggested method then you must make sure all your actions are, at a minimum, unique to the script or automation they are in and to clear notifications completely.