Xiaomi Philips Light token problem

thank you very its work :slight_smile: :slight_smile: you are the best

I have this bulb https://www.gearbest.com/smart-lighting/pp_644095.html It works with MiHome apk but when I downloaded database token is empty here. Is it possible that something changed and token is not required in MiHome anymore ? What can I do to make it work under Hass ?

Use older version of MiHome app. The new one blocked the database.

A working/old version of the Mi Home app could be found here: https://www.home-assistant.io/components/vacuum.xiaomi_miio/#retrieving-the-access-token

Except it isnt working anymore, got my two zhiruis and am using 5.0.19 version of app, no token found with miio :confused:

Please try the version 5.0.30 of the mihome app.

I did, after that tried 5.0.19 as someone had success with it, didnt work, then tried 5.0.6 for same reason, no luck :confused:

Sad news. I will try to reset & repair one of my lights soon just for testing.

Thnx, i managed to get tokens via packetsender reply, but havent been successfull to control them โ€ฆ

EDIT: nvm, had typo in ip address, they work now :slight_smile:

If anyone else have problems with mihome app, this is the other way from : https://github.com/jghaanstra/com.xiaomi-miio/blob/master/docs/obtain_token.md

During setup of Mi Home devices the device tokens an be retrieved by sending a ping command to the 
device. This method uses a tool called Packet Sender(https://packetsender.com/download) which you will need to download. Choose the portable 
version which does not require installation.

Download the portable version of Packet Sender.
Reset the device following the instructions from the device manual, this usually means holding one or two 
buttons for 10 seconds. This will reset all device settings including the Wi-Fi settings.
After reset the device will create a it's own Wi-Fi network. This network will have a name related to the device 
and is used for configuring the device but will also allow us to retrieve the token. Connect to this Wi-Fi network 
with your computer which has Packet Sender running.
Open Packet Sender and enter the following details.
HEX: 21310020ffffffffffffffffffffffffffffffffffffffffffffffffffffffff
IP: 192.168.8.1
Port: 54321
Protocol dropdown: UDP
Click send and the device will respond with an answer which contains the unique device token. In the last 16 
bytes (32 characters) of the devices response is the device token. Copy and save it somewhere.
Disconnect your computer from the devices network, you can now use the Mi Home app to setup the device 
and connect it to your Wi-Fi network.

I tried the Packet Sender method with the Philips Zhirui Bedside lamp without success, did not get any reply from the lamp.

(Also tried it with MIJIA Smart Plug Enhanced the one with 2 USB, also without success)

Has it work for anyone elseโ€ฆ?

I recommend this method: https://python-miio.readthedocs.io/en/latest/discovery.html#tokens-from-mi-home-logs

1 Like

Yes, that worked. :+1: