You can’t trigger it manually because it has a trigger object in the action, which can’t be parsed if it doesn’t fire ‘normally’
Also, its impossible you have tested this exactly and concluded that it doesn’t work, as it was only posted an hour ago so there’s no way you have waited the required 2 hours for it to trigger.
This means you’ve changed something. Please post EXACTLY what you currently have in your configuration.
You can’t test it that way when the action refers to the Trigger State object (which is undefined when the automation is executed manually). From the documentation for Testing your automation:
Please note that if you click on Trigger of an automation in the frontend, only the action part will be executed by Home Assistant. That means you can’t test your trigger or condition part that way. It also means that if your automation uses some data from triggers, it won’t work properly as well just because trigger is not defined in this scenario.
If you want to test it, temporarily change this (2 hours):
This is something that the alert component does. You might want to check that out. It can also keep sending notifications untill the alert is dismissed.
For the benefit of other users, please select the post that answered your question and mark it as “Solution”. Only you, the author of this thread, can do that. Only one post in this thread can represent the solution to the original issue.
It will automatically place a checkmark next to the topic’s title (indicating this thread has an accepted solution) and a link will be added beneath the first post that leads to the Solution post.