I just started playing with HA and I am trying to get a notification sent to a mobile device when a temperature sensor get over a certain temperature. My automation is based mostly on this post:
Here is what it looks like in my automation.yaml file:
I’ve executed the automation manually and I received the notification which means this part works. I also tested the template statement in the template editor to see if the statement was working using different values and it returns true or false as it should depending on the tested value vs the reported temperature of the sensor.
But, I am not getting any notification whenever the temperature gets over 11C. I guess I am missing something but so far I couldn’t find what in the forums.
It’probably related to your wrong use of quotes.
Also try to avoid the states.xxx.sss notationand use states(‘xxx.sss’) instead as described here. Try this:
Thanks for the reply but it still doesn’t work. I tried modifying my automation as per your suggestion (see below) but I still didn’t receive any notification when the temperature sensor passed the value. Also, just to be sure, I restarted HA after making the modification just to make sure that it would reload the new automation.
Yes, I just tested it and it works. I realized that my error probably came from the fact that I used the automation editor in the GUI which seems to add those double quote when saving. It worked when I edited the yaml file directly.