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
Add control option for the second light unit of the Xiaomi Philips Eyecare Smart Lamp 2 #5
Comments
Could you test some API calls and provide some visual feedback? I don't own the device therefore the implementation depends on your feedback. |
Sure. Of course there is no hurry. We'll see how much we get? |
Could you please test the following commands and provide some feedback:
Thanks in advance! If the behavior of the lamp is known the implementation will be easy. |
Thanks. mieye --ip your-eyecare-ip --token your-token on
If light 1 is on, light 1 gets off. But. The lamp saves the last setting.
mieye --ip your-eyecare-ip --token your-token ambient_on
If the light is off completely both lights are going on. mieye --ip your-eyecare-ip --token your-token bl_on
If the light is off completely none of the lights are on. mieye --ip your-eyecare-ip --token your-token notify_on
I do not see any difference, nothing happens, but it may only work in the long term. |
Did I understand your description correctly:
|
The secondary light 2 seems to be connected to light 1 on the "on" switch but not "off" switch. The command "ambient_on" ensures that both lights (1 and 2) turn on. If you then switch the lamp off and on again. "off - on" The latest known situation applies. |
If you want to know something else, I'd love to hear it. |
@buikdaanser Could you be so kind to help me on my way getting this light to work in HA? I have extracted the key using the iphone backup method, git this key (slightly modified):
Which I then converted on my macbook using terminal command:
The output looked like:
However If i use that token, the component in HA times out :( Also trying:
Any idea as to what I am doing wrong? |
@Michel72 About the Xiaomi Philips Eyecare Smart Lamp 2. Please make sure that you are running the latest python-miio software.
|
Hi,
I'll try extracting the key again using a borrowed android phone. |
Hi, I extracted the token using an android phone which looks like:
However.....
Is there something else I could try? Thx, Michel |
Are you sure that you don't have an router that blocks the connection (i.e. firewall), |
@syssi any progress on this one? |
Jep! I started yesterday and will be ready next week! |
Great! Thanks. |
Do you agree it doesn't make sense to implement the second light ("light 2") as light entity in home assistant because we are unable to turn on and off light 2 independently? I will provide a service per method. |
If you use the mihome app it's possible to control both lights independently and ignore the saved state? Oooh! I missed something:
Which light is controlled? |
Please check out the develop branch and give it a try. It can be used as custom_component and will override the official light.xiaomi_miio component: https://github.com/syssi/philipslight/archive/develop.zip |
@buikdaanser Any progress on testing this one? ;-) |
Thanks. |
@buikdaanser Do you own a rooted android device? I would like to request some data (mihome plugin apk). I will provide instructions on demand. |
I'm pretty sure now: The lights can be controlled independently:
Is the main light controllable with this commands? |
The device is represented as two light entities now (eyecare light, ambient light). The feature is untested! |
@syssi due to a ski accident (broken leg), I could not respond earlier. I can respond at least now. Thanks for your feature. |
The Xiaomi Philips Eyecare Smart Lamp has two light units.
As shown in the attachment below.
Please add a function to control the second light unit on the back of the lamp.
To operate (on-off) as second light independently of light one.
https://static.afbeeldinguploaden.nl/1711/334447/37pvJEiU.jpg
The text was updated successfully, but these errors were encountered: