Where have you put that YAML? It should either be in configuration.yaml at the top level or under a !include for template:. It should not be under a top-level sensor:.
If your Shelly sensors are returning numbers (strictly, strings that look like numbers), that sensor definition is good.
Note that your automation trigger will only fire if the sensor output changes from above 16000 to below 16000.
When you say “doesn’t work”, what’s not working? Can you see the sensor state under Developer Tools / States? Does the automation do what you want if you manually execute it?
I’ve tried both. in the configuration.yaml and with
template: !include templates.yaml
I changed the value (16000) to see, whether the automation triggers. but she doesn’t.
Manually execution works fine.
Under developer - Conditions - i can see the addition of the three Shelly sensors
When I trigger “change” with this entity and then give below: 16000 as a condition, it works. but then I can’t enter a period of time for which the condition must be fulfilled
As an experiment, try this version. Test it by going to Developer Tools States, selecting sensor.netzbezugabc, change its state value and click the Set State button. That should be sufficient to trigger the automation and produce a notification containing the current time and sensor’s new value.
I don’t really undestand what to do… i copied your script to “Entwicklerwerkzeuge”, “Zustände”.
Entität: netzbezugabc
Statusattribute
in this field the script
and Status setzen
Nothing happens aftes this. Where can I see this notification?
Below I can see the realtime status of the entity with changes every few seconds.