Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xiaomi Desk Lamp support #4870

Closed
dh-harald opened this Issue Jan 9, 2019 · 7 comments

Comments

Projects
None yet
4 participants
@dh-harald
Copy link
Contributor

dh-harald commented Jan 9, 2019

Hi,

I've a Xiaomi/Yeelight Smart Desk lamp (https://www.mi.com/global/smartlamp/). It would be nice, if Tasmota could support it.

It has 2 opensource firmware already:
https://github.com/fvollmer/xiomi-desk-lamp-open-firmware
https://github.com/Torxgewinde/Desk-Lamp-Alternative-Firmware

@arendst

This comment has been minimized.

Copy link
Owner

arendst commented Jan 9, 2019

Nice complete product.

But does it provide enough light? 300lm is not much for a desk lamp...

@ascillato2 ascillato2 added the question label Jan 9, 2019

@ascillato2

This comment has been minimized.

Copy link
Collaborator

ascillato2 commented Jan 9, 2019

Please, try Tasmota with the generic module configuration and set the gpios according to this hardware to test. You will need to find out which gpios of the esp8266 are connected and to what. Thanks for share. Keep up posted.

@dh-harald

This comment has been minimized.

Copy link
Contributor Author

dh-harald commented Jan 9, 2019

Hi,

Based on the existing firmwares, I've set the following:
D4 GPIO2 -> Button1 (17)
D2 GPIO4 -> PWM1 (37)
D1 GPIO5 -> PWM2 (38)

With this settings, I could turn on and off the lamp via pressing the button, and I could set the brightness and the color temperature on the web frontend... (toggle button worked as well)

Unfortunately (I think), the rotary switch needs extra work from your side...

@arendst

This comment has been minimized.

Copy link
Owner

arendst commented Jan 9, 2019

Yes, the rotary switch functionality is not available in Tasmota.

@ascillato

This comment has been minimized.

Copy link
Contributor

ascillato commented Jan 9, 2019

Unfortunately (I think), the rotary switch needs extra work from your side...

And also the hardware. You can send one of those lamps to Theo.

@dh-harald

This comment has been minimized.

Copy link
Contributor Author

dh-harald commented Jan 9, 2019

Yes, the rotary switch functionality is not available in Tasmota.

In this case, I'll try to implement it. Fingers crossed :)

@ascillato2

This comment has been minimized.

Copy link
Collaborator

ascillato2 commented Jan 11, 2019

PR from @dh-harald #4887

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.