maximkulkin / esp-homekit-demo

Demo of Apple HomeKit accessory server library
MIT License
805 stars 233 forks source link

driver for sm2135 #331

Closed Kristian8606 closed 4 years ago

Kristian8606 commented 4 years ago

Hello @maximkulkin ! Would it be difficult to i implement this library https://github.com/NURDspace/esphome/tree/sm2135/esphome/components/sm2135 for freeRtos to manage this inexpensive light bulb. https://github.com/RavenSystem/esp-homekit-devices/issues/870

maximkulkin commented 4 years ago

It's just writing to I2C device registers. All you need to do is to use two simple commands: first one sets white color of given temperature, second one sets arbitrary RGB color, assuming that library actually works. Couldn't find a proper datasheet for that chip, only one in chinese and it didn't seem to have information on registers and commands.

maximkulkin commented 4 years ago

Ok, found datasheet translated to english: SM2135E_zh-CN_en-US_translated.pdf. It contains information on format of commands.

Kristian8606 commented 4 years ago

Thank you for your advice. I will try it and report the result you.

Kristian8606 commented 4 years ago

I looked through the code and realized that I couldn't handle it.