I just got a Home Assistant Voice PE and am starting to use it to test replacing some of my voice automations that are usually executed by Echo’s. In my flow, I check to see which Echo was last called, then use that to make announcements to the Echo as the Node Red flow progresses. That all works fine.
I’m trying to figure out how I determine what Home Assistant Voice device (I have the PE and an S3-Box) changed the state of an object, so I can use that then to play announcements back to the device.
For now I’m testing with an outlet. When I use the HA Voice devices to turn the outlet on or off, I can see the information of which one changed the state in the device history, but can’t see it in Node Red.
Googling it and searching here mentions Global Variables and Context, but I have no idea how to configure any of that. Any input would be greatly appreciated.
I’m not sure I understand. I’m using the events: state node and all I get is the state of the outlet, i.e. on or off. I tried using the trigger: state node but still get the same thing.
Awesome! Thank you very much. I’ve never used that option on the debug node. One last question, is there an easy way to look up the entity ID’s? I can use the debug nodes to figure it out but was curious if that is something you can do easily.
The right side main HA menu you should have an icon for dev tools. Clicking that icon and then choosing the ‘states’ tab will bring up all entities state and attributes.
Maybe I’m doing something wrong, but it seems the ID of the trigger changes each time I run it. Also, if I look up the Dev Tools it shows a friendly name but no ID like some of the other entities.
I thought the ID I am getting from the debug node would point to the Voice PE, but the number changes each time turn the outlet on or off with the Voice PE.
I doesn’t work that way, you would need to monitor the assist_satellite entities
What you describe above is already built in to assist. If I tell my VA turn on a light, it responds “I have turned on the light”. Let’s say I want to send an additional message to the same VA after it turned on the light. I would use a trigger state node to monitor the VAs.
That will trigger after a VA finishes it’s task. Otherwise for dynamic responses see the following.