I'm just getting started with Node Red to do some things that have been kind of kludgy with HE (like trying to get Xbox on/off control, and some other device that I haven't had much luck with using community made drivers like my LG TV).
I seem to have both sides working on their own but not sure how to flip a virtual switch in HE and have Node Red just see it as it happens and then inject that into a node.
I have Maker API configured using the recommended settings for use with Node Red. And I have the virtual switches I want to get the states from checked in Maker API (and they show up on Node Red in the HE device node).
I have Node Red server running on a Raspberry Pi and I've installed and configured the nodes for Hubitat and Xbox. I can make a flow that injects commands to the Xbox and it works within Node Red. I can add Hubitat nodes like device and get the current states of switches.
But whenever I flip a virtual switch I don't see the state change in Node Red. My HE setup is to use Virtual Switches that have 2sec return to default set as I use them like buttons. So I just need to figure out how to get Node Red to pickup the state change as it happens so I can turn that into an "on" or "off" string depending on the switch that was flipped in HE.
How do I set that part up? Preferably in laymans terms since I've only got a days experience with Node Red.
So when I wrote this post it wasn't working and I was using my HE phone app to flip the switches while looking at the Node Red screen and they wouldn't change.
Came back from lunch, checked out everyones reponses and I did have everything set as suggested. Tried it again and the button states are changing as I flip them in my HE devices screen. Either I was spacing something out or it worked itself out while I was at lunch.
I'm pretty sure I had the webhook configuration done the first time since I was getting the initial states to show up. But I did click it a 2nd time to double check I got the green checkmark.