-
Notifications
You must be signed in to change notification settings - Fork 19
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 support for Xiaomi Philips Eyecare Smart Lamp 2 #3
Comments
If you care about some testing I will implement the additional device soon! |
@syssi sure, I have a test raspberry all in one (home assistant) ready for liftoff. |
The current implementation should support turning the lamp on and off already. Just give it a try! |
Great. Thanks for your effort. Because Xiaomi_miio.py from home assistant upstream seems to be almost the same. Controlling the light via python-mirobo 0.2.0 on the command line is just working fine. If the case is to use the Raspberry all in one instead of Config:
Error:
|
You are right. The update method isn't compatible. Could you provide the output of:
Thanks! PS. You are right. The light.xiaomi_miio component is the official version of this philipslight component. I will port new features as far as they are stable. |
Switched back to Raspberry All in one as Hass.io is to closed to test it open and easy. These are the results: mirobo --ip 12.12.12.16 --token ea9405da516b567327f7ccd379116c14 raw_command set_power '["off"]'
Again to verify whether the error message is gone. mirobo --ip 12.12.12.16 --token ea9405da516b567327f7ccd379116c14 raw_command set_power '["off"]'
mirobo --ip 12.12.12.16 --token ea9405da516b567327f7ccd379116c14 raw_command get_prop '["power", "bright", "notifystatus", "ambstatus", "ambvalue", "eyecare", "scene_num", "bls", "dvalue" ]'
mirobo --ip 12.12.12.16 --token ea9405da516b567327f7ccd379116c14 raw_command set_power '["on"]'
mirobo --ip 12.12.12.16 --token ea9405da516b567327f7ccd379116c14 raw_command get_prop '["power", "bright", "notifystatus", "ambstatus", "ambvalue", "eyecare", "scene_num", "bls", "dvalue" ]'
mirobo --ip 12.12.12.16 --token ea9405da516b567327f7ccd379116c14 raw_command set_power '["off"]'
|
Thanks! The token isn't important. |
Ok. Thanks for the clarification. |
Could you please test the current development branch: https://github.com/syssi/philipslight/tree/develop |
Tested. Error log:
Config:
|
Alright. I remember again... I'm waiting for a release of python-mirobo/python-miio. The component needs some fixes of the underlying library. |
Ok. Is there a development version of python-mirobo with 'some fixes of the underlying library' available? |
python-miio 0.3.0 was released tonight. The new release of the custom component supports your device! |
@syssi Please add support for Xiaomi Philips Eyecare Smart Lamp 2.
It is already supported upstream and is working fine on the command line via the same python-mirobo. Next step should be integration into the home assistant panel.
Easy peasy for you as expert :)
Thanks.
The text was updated successfully, but these errors were encountered: