peterbuga / HASS-sonoff-ewelink

Home Assistant component to control Sonoff/eWeLink devices with original firmware
MIT License
794 stars 293 forks source link

use LAN mode if HASS is unable to contact the server #50

Open ginge78 opened 5 years ago

ginge78 commented 5 years ago

Since mid 2018, the firmware Itead have shipped with Sonoff devices has provided a feature called "LAN Mode" which allows the device to be controlled directly on the local network using a WebSocket connection on port 8081.

The feature is designed to only be used when there is no connection to the Itead cloud servers (e.g. if your internet connection is down, or their servers are down). As such, it is only enabled when the device is connected to your WiFi network, but unable to reach the Itead servers.

https://github.com/beveradb/sonoff-lan-mode-homeassistant

peterbuga commented 5 years ago

hi @ginge78 i've been watching this project for a while now and right now i'm waiting for the development to evolve a bit before I possible start merging it as stated here

also, like most of their code, Itead did a sh*t job implement this part 👎 https://github.com/beveradb/sonoff-lan-mode-homeassistant/issues/1#issuecomment-457924031

nevertheless this will be a longer milestone, due to the fact the overall code complexity increases :(

elserge82 commented 4 years ago

This feature would be a life saver . In case ewelink goes down for good. Again thanks peterbuga for your work.

peterbuga commented 4 years ago

@elserge82 too bad the support for it is kinda shaky and inconsistent on sonoff devices

elserge82 commented 4 years ago

Yes I read that the one developing this part moved to ESPhome. I have 12 out of my smart devices sonoff :D. I am becoming paranoid due to this . Free cloud resources never last. Thanks perterbuga for making such devices compatible with HA.