I could reproduce the “to_state” error and resolved it using the entity_id instead. like this:
message: >-
{{ state_attr('trigger.entity_id','friendly_name')}} is at {{
states('trigger.entity_id') }}
But I am not sure what output you receive when you have two entities defined as entity_id
Hopefully it only takes the entity that did actually trigger the automation having its value less than 20.
I appreciate the help! I think we are getting there. Not throwing any errors, but all I get when I run the automation is “None is at unknown” (on my phone)
The first suggestion looked correct the to_state error is because you are manually triggering it. Use dev tools states to temporarily change the state to a value that would trigger and it should work … it’s looking for the entity that changed state… and none did when click run actions
Thanks for this, it helped me implement a working autmation, but I have a question: I got a notification message every few minutes since the ink goes below a threshold, while I tought the mode: single would send it only once. Are you getting multiple notification every few minutes with this as well?