Hey. Im trying to run an automation whenever an attribute changes in a whole domain. There’s a previous thread regarding this: Templating with entity_id wildcard.
Im trying to make a notification whenever an attribute of any of my plants (plant. domain) changes and wrote a very similar trigger as the author of the thread above:
Unfortunately this never gets triggered.
I have replaced “domain: plant” with “entity_id: plant.bonsai” and it works fine, so the problem is definitely in “domain: plant”. Im not sure if it is a bug and “domain:” option doesnt work with “plant” domains or if I’m doing something wrong, but it’s really important for me to use a domain instead of a list of each plants as I’ve got more than few plant sensors and when i repot a plant I’m also changing it’s sensor name. Managing a list of all plant entities would be very cumbersome.
Unfortunately, this doesnt seem to work.
In fact, by listening to state_changed event in Developer Tools -> Events i found out that trigger.event.data doesnt provide domain name at all.