#Mobile notifications from todo list additions. What trigger?

6 messages · Page 1 of 1 (latest)

remote bough
#

Hello, basically trying to build a custom automation so that when the action todo.add_item is ran (when someone updates a todo list via a lovelace card in the dashboard) a push notification is sent out to a user's primary mobile device. I can get the second half of the automation down just fine but I'm having trouble finding how to add the trigger in actually automate this. It would be amazing to filter based on what user input a todo item so that anyone else in the house who didn't add it.

TLDR; How can we trigger automations based on a new item being added to a todo list?

lime dragon
#

you can trigger on a state change of the todo entity, and check in a template condition if it's higher compared to the previous state

#

there is probably also an event

#

which you can trigger on in an event trigger

remote bough
#

Gotcha, yeah that works, but would love to trigger it off the specific actions so I can only notify on addition to the todo, don't need a notification whenever something is completed or deleted. From here I might be figure it out though, but if you have ideas on how to filter it i'm all ears.

working or i'd of checked back sooner lol

lime dragon
#

If you trigger on a state change of the todo entity, and then use a template condition to check if the new state is higher than the old state, it will be an addition. On deletion or completion the state will decrease