I’m using Hassio on RPi to make some automations. I’m new in domotics, and in Home Assistant, near 7 mounth of study on it. Well, i don’t known how to make any automation in automatic… I don’t known where is my fault. I read all documentation and all forums, I searched with google and tried all possible solutions… but there is some strange thing, that I do or I don’t do, that is wrong. I’ll explain now. I want to create a persistent notification when a sensor attribute is below 1 (numeric state). The sensor name is “rifiuti_organici” the attribute to check is “days”. The “days” is a number that go from any value to 0. I want to trigger my automation when this sensor attribute go to 1 and lower and show a persistent notification for this happening. I used 1 sensor but I want to use many others similar in one automation. Every sensor, even this one tested named “rifiuti_organici”, has setted friendly_name attribute. For this tested the friendly_name is “Rifiuti Organici”. This is the automation test (I’m using Automation Editor included in Hassio):
When I activate manually this automation and the sensor has days=1 or days=0, the persistent notification appear with the same message that I wrote in Automation Editor, without any change on content…
Where is the wrong thing?
I tried changing " with ’ … nothing
I changed data: with data_template: with Configurator plugin… the automation didn’t run even manually…
I tried all…
What I can do?
There is a strange behaviour when in Automation Editor I press the space bar on keyboard… it don’t add a space, but try to jump at end of page.
There are some bugs to solve yet? Or my system don’t work?
Strange…
also, it’s best to use multi-line templates to make reading easier. And I don’t think you can do that with the editor. So another vote to not use the editor.
Ok. Thank you for yours replies. So, I want to use Configurator plugin… But how to exclude the editor and activate manually an automation for test?
I used device_template in my tests, with Configurator, but not worked when trigged manually (even automatically). Manually I mean that I reloaded the automation and activate it in the page of hassio config (I use the gui in the Italian translation, hoping you understand what I say), clicking on a i in a circle, near the pencil that get into the automation editor, and pressing Activate.
I don’t use the configurator plug-in either but from my understanding it’s just a text editor so you should just be able to ignore the automation editor and edit all of your automations in the configurator.
It can’t work like that because you are using the “trigger” state objects in your actions. And when you trigger it manually you bypass the programmed trigger completely so then there is no “trigger” to look at to retrieve that information.
To test it you will need to let the regular trigger happen a see if it works.
Yes, but not condition at all in my tests… if the automations works, then I fine tune they with the accessories…
Here, my problem is basic. But I’ll work hard to solve…