Closed pa-wills closed 4 years ago
This integration could be the go: https://www.home-assistant.io/integrations/alert/
I have the basic design working now, but when I introduce the condition in the script - it fails.
Practically completed. and merged back into master.
I have tried to build the feature using the alert primitive. It works, basically, but there's a defect. It will send a notification each time the sensor trips, which is not great because the sensor resets itself about every 30s. I thought that using the "repeat" parameter would slow this, but alas, no.
So, I think we need to do something different:
So, how to invoke a script from an alert?
https://community.home-assistant.io/t/combining-alerts-with-scripts-or-automations-for-tts-repeating-alerts/63414
Hmmm, maybe automation to script....
https://www.home-assistant.io/integrations/script/
and the set-variable:
https://community.home-assistant.io/t/how-to-save-a-value/140294/14
Here's an argument that you should use input_variables for this type of thing:
https://community.home-assistant.io/t/any-suggested-methods-or-best-practices-for-storing-variables/3399