Xiaomi Miio - Philips Light Integration

Hi,

Since 2021.12 my Iights are no longer available. I tried deleting and then adding the integrations again (I have 3 such bulbs)

In the integration, it creates the integration but then there are no entities under the integration.

image

Anyone else seeing this?

Several Philips Miio lights are not working anymore. I have downlight and candle not working :

Logger: miio.device
Source: /usr/homeassistant/lib/python3.8/site-packages/miio/device.py:153
First occurred: 11:04:42 (3 occurrences)
Last logged: 11:04:42

Found an unsupported model 'philips.light.downlight' for class 'PhilipsBulb'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/
Found an unsupported model 'philips.light.candle' for class 'PhilipsBulb'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/

The “bulb” class still works. Seems like there has been too much of a cleaning, see the github, issues.
I don’t know how to fix this ?

I have the same problem.

Same here. :frowning:

I’ve tried several tricks , but ended rolling back to 2021.11.5 !
The problem is in the python-miio library, v0.5.9.1. miiocli version 0.5.8 works,detects downlight :

(homeassistant) homeassistant@services:~$ miiocli device --ip 192.168.7.42 --token XXXX info
WARNING:miio.device:Found an unsupported model 'philips.light.downlight' for class 'Device'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/
Model: philips.light.downlight
Hardware version: ESP8266
Firmware version: 1.3.0_0021
(homeassistant) homeassistant@services:~$ pip install python-miio==0.5.8
<...>
(homeassistant) homeassistant@services:~$ miiocli device --ip 192.168.7.42 --token XXXXX info
Model: philips.light.downlight
Hardware version: ESP8266
Firmware version: 1.3.0_0021

cool, I see that there is a fix on the runway… it looks like it is just getting a covid travel certificate and border clearance so hopefully should be rolled into a patch shortly…

Replace, depending on your hass install path, this py file:

/opt/homeassistant/lib/python3.9/site-packages/miio/philips_bulb.py

with this one

https://github.com/rytilahti/python-miio/blob/0903990e95bc90ee5a501364357d5e26afff18b9/miio/philips_bulb.py

and the downlights are working again.

how to do that
where to find that.py file, i have NAS Unraid docker Home assistant
and how to download new file

I have this problem too.
It looks like it came with an last update…
Hopefully a fix will be released soon

Cool )
But this is only possible for Docker or PVM installation
As far as I know, this is not possible for Home Assistant OS )

An update is out today to fix this

Yes, python-miio version 0.5.9.2 solves this, it’s in the 2021.12.2 update.
Working again with candle and downlight.

Doesnt work for me
Do you put Philips lights as model, for candle, celing and bulb doesnt work

worked fine for me. I have the candle version… .this one: Original Zhirui Smart LED Lamp Wifi Remote Control For Mijia App E14 Bulb 3.5W 0.1A 220 240V 50/60Hz smart Home Bulbs|controller control|control remotecontroller kit - AliExpress

I have 4 Philips light bulbs
2 od them i manage to add
But 2 i cant, i go Xiaomi Miio manual, add ip and token, but it wont show them

What does this return ? (replace IP and token with appropriate values)

miiocli device --ip 192.168.7.42 --token XXXXX info

Both for working and non working.

Where to see this
I am on Unraid docker

You need a shell. Either using your HA server, or any computer with python-miio installed (and access to the miio bulb of course)

Not that good with IT
Any other way

you can use philips.light.mono1 (see rytilahti/python-miio#1231 (comment))