I am trying to wrap my head around an automation to assist with my old Roomba.
I have a Roomba connected to HA as well as a Todoist Integration.
I have Node Red setup and connected and I can create a new Task in Node Red using new_task.
Here is the automation I am trying to establish:
If dustbin is full then create new_task “empty the dust bin”
If battery is < 10% create new_task “place Roomba on the docker”
If vacuum status is stuck create new_task “place Roomba on the docker”
I know I can create three separate triggers with three separate Todoist new_task commands, however it would be simpler to have the 3 separate triggers create a task message based upon the trigger.
If you’re using a newer version of the HA nodes. The events: state node has customizable output properties. You can set a different msg.payload for each node and then use it in the call-service node.