I am using an ESP8266 to emulate a wemo device with code found on the internet. Now that I understand the basic interaction of on and off commands, I'd like to add some queries for the state of some of the device.
I've found places in the code that handle the event service XML but I cannot find any documentation on this. Example: If I can't see a light on somewhere, I'd like to query the device to see if it is on or off.
Since the device emulates a belkin on/off switch, the setup.xml packet only has:
"<service>" "<serviceType>urn:Belkin:service:basicevent:1</serviceType>" "<serviceId>urn:Belkin:serviceId:basicevent1</serviceId>" "<controlURL>/upnp/control/basicevent1</controlURL>" "<eventSubURL>/upnp/event/basicevent1</eventSubURL>" "<SCPDURL>/eventservice.xml</SCPDURL>" "</service>"
and the basic event is not enough to get status or further capability. This is all done without writing a skill and is handled with direct dialog on the local LAN to the Echo Dot. I can see the packets by sniffing the LAN (wireless)and believe it would be straightforward to add more capabilities if I could find the documentation on the control messaging XML packets. Where can I find these control XML dialog templates and hopefully examples of how to use them? I am getting the sense that this can only be accomplished by using an AWS skill but it seems so unnecessary. Can someone give me some guidance here? Thanks