howanghk / homebridge-ewelink

Homebridge plugin to control Sonoff relays with OEM firmware
MIT License
81 stars 46 forks source link

Support for SONOFF L1 Smart LED Light Strip Dimmable ? #60

Open TheReiner opened 4 years ago

TheReiner commented 4 years ago

Is it possible to add Sonoff L1 ? For change the colour ? Thanks :)

howanghk commented 4 years ago

Hi @TheReiner, it would be great if you can help on adding support for the Sonoff L1! This project is open source and have a relaxed license that you are free to modify the code and share your work. You can look into the source code, it's written in Javascript which is fairly easy to understand and write. To contribute code back to this project, please fork the repository, make the necessary changes and then send me a pull request.

To intercept the API request / response data, please refer to the README on the original homebridge-ewelink project, which have a section showing how to observe the data with Charles.

TheReiner commented 4 years ago

I'm afraid of broken your app... How to test without create problem ?

Terminator0007 commented 4 years ago

In my log L1 device ( Light Strip RGB Sonoff ) is reported as type 59 ( MEARICAMERA ), other different devices like USB outlet or socket S55 are reported correctly as type 1 SOCKET. In Homekit I see L1 as switch and can't change brightness or colours. But I'm too stupid to change source code. Someone help me ?