I’m wondering if anybody has got this working?
I have amended the code slightly to make it a switch. However the issue I have is that parse() is never called (I knwo this because the log.debug statement in it is never displayed in the log).
I am calling a Chromecast on port 8008. I’m wanting to detect if the TV is on and when it is the Chromecast is also on. If you connect to the Chromecast on port 8008 you get a 404 error. That’s absolutely fine. I don’t care about the result only that they are returned. I have also tried to connect to http://:8008/ssdp/device-desc.xml (by amending path in the HubAction) whcih responds with a page of info on the Chromecast. Again, no difference.
It seems that no matter what is returned by the HubAction parse() is simply not being called.
The device network ID is correct (IP and port in hex).
I recognise this code is quite old. But I also know the Smarthub should be able to do this so I don’t want to start using any other machines to do this (ie. Host Pinger).