Closed juanmol closed 4 years ago
I can at least verify this behavior. I initialized the basic device via phone app (reporting firmware as 3.3.0) and have it set in LAN mode, with the local router blocking its internet access. Using the pysonofflan discover command, the device is found on the correct local IP. Any other pysonofflan command fails, including on, off, or state. In DEBUG mode it appears to fail when connecting via websocket, as described above.
Gents, this library doesn’t work with firmware 3.x as is stated on the read me page.
Thanks for your prompt response. I re-read the readme page, and don't see any references to 3.x firmware; only "original firmware" and the helpful comments about the 2018 LAN mode change. I have not uploaded any different firmware, so they have the same "original" firmware they were shipped with. As pysonofflan appears to fail while trying to connect with a websocket (doesn't work with 3.x), can you provide any advice or feedback about why this is, and-or if there may be a way around this? My devices do have LAN mode, so is there a way they can "be controlled directly on the local network using a WebSocket connection on port 8081" with the 3.x firmware? pysonofflan can "discover" the devices, so it's tantalizingly to get that close!
Ah! just found your v3 fork at mattsaxon-pysonofflan. I will try this.
Apologies, I thought the page referred directly to 2.6 firmware. We need to ensure that it does and I will make that change at some point. Glad you found my fork, but we should make it easier to spot!
Closed as V3 firmware works with this. Also updated readme to point to the relevant fork
Description
Trying to get the status or to stablish it.
What I Did
and nothing happends.