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
Closed

Xiaomi Desk Lamp support #4870

dh-harald opened this issue Jan 9, 2019 · 7 comments
Labels
enhancement Type - Enhancement that will be worked on

Comments

@dh-harald
Copy link
Contributor

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
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 Type - Asking for Information label Jan 9, 2019
@ascillato2
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.

@ascillato2 ascillato2 added the awaiting feedback Action - Waiting for response or more information label Jan 9, 2019
@dh-harald
Copy link
Contributor Author

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
Copy link
Owner

arendst commented Jan 9, 2019

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

@ascillato
Copy link
Contributor

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
Copy link
Contributor Author

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

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

@ascillato2
Copy link
Collaborator

PR from @dh-harald #4887

@ascillato2 ascillato2 added enhancement Type - Enhancement that will be worked on and removed awaiting feedback Action - Waiting for response or more information question Type - Asking for Information labels Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Type - Enhancement that will be worked on
Projects
None yet
Development

No branches or pull requests

4 participants