beveradb / sonoff-lan-mode-homeassistant

Home Assistant platform to control Sonoff switches running the latest Itead firmware, locally (LAN mode).
MIT License
74 stars 36 forks source link

Implemented test script with mock server for self-testing #9

Closed beveradb closed 5 years ago

beveradb commented 5 years ago

In general this should help us work together to further investigate new devices, but crucially is a major step towards having a "properly implemented" websocket client which runs permanently in a background thread, actually listens for responses and updates state accordingly.

If this script works as expected with real Sonoffs, I'll move forwards with updating the actual component to use this implementation.