I don’t know if this is the only problem, but what is this line supposed to do? Are you trying to repeat the message every 0.016*60=0.96 seconds? The docs say the repeat parameter needs to be an integer.
It’s been a while since I tested it but IIRC, Alerts function just like Automation triggers, the value of binary_sensor.grid_overpower needs to change from “off” to “on”. Try using the “Set State” tool to set binary_sensor.grid_overpower “off” then “on”.
I was wondering about that. The doc is less than clear about this:
In this example, the garage door status (input_boolean.garage_door ) is watched and this alert will be triggered when its status is equal to on .
Unlike an automation, given that alerts can repeat makes an “equality” test workable. It makes sense that the fact that the state isn’t changing would be the problem here, since OP set the threshold low for testing purposes.
I have tried different things, but nothing works. Even if I manually set binary_sensor.grid_overpower “off” and then “on”, the alarm doesn’t trigger.
Also, if I manually set the alarm to the “on” state, I don’t receive any notification.
Just for contest, I’m running my HA on a Raspberry Pi 5 as the main OS, and I probably had some issues with the time. I think I solved it by installing the addon chrony, but nothing changed apparently.