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

Add support for the Xiaomi Philips LED Ceiling Light 620mm (philips.light.zyceiling) #234

Closed
kuzyaka opened this issue Feb 24, 2018 · 9 comments

Comments

@kuzyaka
Copy link

kuzyaka commented Feb 24, 2018

I'm unable to connect to Xiaomi Philips LED Ceiling Light 620mm using home-assistant 0.63.3.

I'm running into the following error:
2018-02-24 21:54:24 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Unsupported device found! Please create an issue at http
s://github.com/rytilahti/python-miio/issues and provide the following data: philips.light.zyceiling

@syssi
Copy link
Collaborator

syssi commented Feb 24, 2018

Please try the development branch of the custom component: https://github.com/syssi/philipslight

And override the model by

  - platform: xiaomi_miio
    name: Xiaomi Philips Smart LED Ceiling Lamp
    host: 192.168.130.68
    token: 439e1a89ee5648d20482afa7839ef2ee
    model: philips.light.ceiling

@kuzyaka
Copy link
Author

kuzyaka commented Feb 24, 2018

Please try the development branch of the custom component: https://github.com/syssi/philipslight

How could I install dev branch of custom component into HA? Could this be done via overwriting some script file of existing HA installation?

UPD:
Custom component manual https://home-assistant.io/developers/component_loading/

@kuzyaka
Copy link
Author

kuzyaka commented Feb 25, 2018

Used model overriding and custom component - it works.
Thank you

@syssi
Copy link
Collaborator

syssi commented Feb 25, 2018

Perfect! Could you post a screenshot of your mihome app? I want to make sure your light has the same features as the other ceiling lamp.

@kuzyaka
Copy link
Author

kuzyaka commented Feb 25, 2018

python-miio/ceil_cli.py output of status command:
Power: off
Brightness: 51
Color temperature: 51
Scene: 0
Smart Night Light: True
Auto CCT: True
Countdown of the delayed turn off: 0 seconds

MiHome screens:
https://pasteboard.co/H9eRaxB.png
https://pasteboard.co/H9eQK78.png
https://pasteboard.co/H9eQVK7.png

@syssi
Copy link
Collaborator

syssi commented Feb 25, 2018

Thanks a lot! Your ceiling lamp will be supported officially soon: home-assistant/core#12449

@syssi syssi changed the title philips.light.zyceiling Unsupported device found Add support for the Xiaomi Philips LED Ceiling Light 620mm (philips.light.zyceiling) Feb 25, 2018
@syssi
Copy link
Collaborator

syssi commented Feb 25, 2018

Last request: Could you provide the output of

mirobo -d discover

Does your ceiling lamp respond to mDNS requests?

@kuzyaka
Copy link
Author

kuzyaka commented Feb 25, 2018

Sure, discover output:

anton@Ubuntu:~$ mirobo -d discover
INFO:miio.vacuum_cli:Debug mode active
INFO:miio.discovery:Discovering devices with mDNS, press any key to quit...
DEBUG:miio.discovery:Found a supported 'philips-light-ceiling_mibt62456974._miio._udp.local.', using 'Ceil' class
DEBUG:miio.protocol:Unable to decrypt, returning raw bytes: b''
DEBUG:miio.device:Got a response: Container:
data = Container:
value = (total 0)
length = 0
data = (total 0)
offset2 = 32
offset1 = 32
header = Container:
value = Container:
length = 32
unknown = 0
device_id = \x03\xb9\x04\x8e (total 4)
ts = 1970-01-01 01:39:00
length = 16
data = !1\x00 \x00\x00\x00\x00\x03\xb9\x04\x8e\x00\x00\x174 (total 16)
offset2 = 16
offset1 = 0
checksum = \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00 (total 16)
DEBUG:miio.device:Discovered 03b9048e with ts: 1970-01-01 01:39:00, token: b'00000000000000000000000000000000'
INFO:miio.discovery:Found a supported 'Ceil' at 192.168.1.150 - token: 00000000000000000000000000000000
WARNING:miio.discovery:Found unsupported device philips-light-zyceiling_mibt62461553._miio._udp.local. at 192.168.1.152, please report to developers
WARNING:miio.discovery:Found unsupported device philips-light-zyceiling_mibt62462211._miio._udp.local. at 192.168.1.151, please report to developers

@syssi
Copy link
Collaborator

syssi commented Feb 25, 2018

Cool. Thanks! The issue can be closed.

@kuzyaka kuzyaka closed this as completed Feb 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants