Any luck with this? I’ve rewritten the Wemo Light Switch Driver and am in the same boat.
It works, but if you manually trigger the light it doesn’t notify hubitat. I think it has something to do with the callback. Just not sure what it’s suppose to be.
I was told by one of the devs that the ability to receive NOTIFY messages (which is what’s currently broken for our WeMo drivers) should be available in the next release.
Good news is that as soon as its fixed I have the Wemo Light Switch ready to go. Cleaned up the code. Ripped out all the useless stuff and hopefully its just them fixing that and we are good to go.
I've never tried sending messages directly to the HE, so I'm not 100% sure what's required. I believe the MAC address of the sending device has to match up with the device network ID of the device in HE; is that the case in your setup?
Yes, if a driver has a dni which is the source device Mac or ip in hex, sans separators, and said device directs it's output to the hub ip address on port 39501 then any data the device sends will be forwarded to the drivers parse method.
I have a nodejs module that connects to AT&T digital life and sends a discovery data to my HE App to create the Devices if they are not already in HE. I monitor the log and that initial call never shows up. If I use curl to pass a similar command I receive a 200 return, but still nothing in the logs of HE.
This is an app I am porting over from SmartThings, and it works fine over there. I have the HE app working, it's just the communication between nodejs and HE that isn't working.
im not sure how this was supposed to work previously, but why not modify the node js app to have it send it's output directly to an he driver, this has less system overhead than subscribing to location events.
yes, but the driver that receives and parses the messages can create child devices directly (component devices), or more logically, send these requests to the parent app to create child devices.
This doesn't sound like a device notification issue. I mean, it sounds like there should just be an app running on HE with an open endpoint that the node app can communicate with.
I was thinking about rewriting the app to do that, but I'd like to understand why this works in smartThings but not in HE. I have the app part of it working, I just never see anything from nodejs. nodejs does send the notification.
I would like to know as well! can you point me to the nodejs code you are running? and if you know the relevant lines of code you are expecting to send a message to HE?
If I reload the app in HE, I can get it to go past the section of the nodejs code listed in the above thread, but then it stops at the section listed below: