Hi,
I’m trying to have an automation that is been triggered by a text in the state of an entity.
Ex: if it contain the words “Risk of a thunderstorm” I will receive a notification.
Did someone have managed to do it?
Here an example of what the entity is:
petro
(Petro)
2
Here’s a quick and simple automation to do it. Uses templates though, which typically scares people.
trigger:
- platform: template
value_template: "{{ 'Risk of a thunderstorm' in states('sensor.laval_forecast') }}"
action:
- service: notify.xyz
data:
message: Thunderstorm!
Wow!! thanks for the fast reply! It’s really usefull! and working!
I think i’ll try to learn about templates!