beveradb / sonoff-lan-mode-homeassistant

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

V3 firmware #70

Closed mattsaxon closed 5 years ago

mattsaxon commented 5 years ago

V3 firmware amendments.

Note there is minimal code change here apart from the patching of the sys.path variable to allow pysonofflan to be loaded from custom_components in the pysonofflan3 namespace.

I suspect we will choose not to merge this change, but instead create a zip/tar of the "sonoff_lan_mode" folder such that users wishing to use the old V2 version can do so.

Note, this component and dependant components has been tested on HA 94.1 as this contains the latest zeroconf 0.23.0 release. I tried on old versions, but couldn't get the 'requirements' functionality in manifest.json to work correctly. As a result I abandoned this testing once I realised that the latest HA has included the necessary dependencies.

mattsaxon commented 5 years ago

Closing in favour of a better structured and squashed set of commits that I will shortly open