I have a Sonoff Basic running Tasmota firmware, these support use via Amazon Alexa by running a Wemo emulator.
Seeing this I manually added my Sonoff device (as discovery did not work) and it returns the device information fine but would not action commands or subscription to events.
I have managed to get the 'setBinaryState' and 'getBinaryState' commands working by adding the "Content-Length" header under 'soapAction' and then inserting the length of the payload string as the data value. It seems that the Wemo emulation on the Sonoff does not support the "Transfer-Encoding: chunked" header which gets applied by default by the 'http.request function' (link) if the "Content-Length" header is not present.
Hi there
I have a Sonoff Basic running Tasmota firmware, these support use via Amazon Alexa by running a Wemo emulator.
Seeing this I manually added my Sonoff device (as discovery did not work) and it returns the device information fine but would not action commands or subscription to events.
I have managed to get the 'setBinaryState' and 'getBinaryState' commands working by adding the "Content-Length" header under 'soapAction' and then inserting the length of the payload string as the data value. It seems that the Wemo emulation on the Sonoff does not support the "Transfer-Encoding: chunked" header which gets applied by default by the 'http.request function' (link) if the "Content-Length" header is not present.
It does not look like the Wemo emulation currently supports event subscription but I am looking into this currently.