Xiaomi Philips Ceiling light changes access token

Hi all,

I managed to integrate Xiaomi Philips Ceiling light into HA but after some time the log shows me the below error. I went and retrived the access token again and it appeared to be different than before, I modified the config and the light worked again in HA. Now the same error appeared again which led me to believe my Philips light changes its access token.
Is there anyone else who faced with the same issue?
Could you please help me to find what can be the problem?
Thanks in advance!

 2018-03-23 23:07:03 ERROR (SyncWorker_4) [miio.device] Got error when receiving: timed out
 2018-03-23 23:07:03 WARNING (SyncWorker_4) [miio.device] Retrying with incremented id, retries left: 3
 2018-03-23 23:07:03 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Got checksum error which indicates use of an invalid token. Please check your token!

Is there anyone who noticed the same error? it happened again, is there anyone know why the token changes?

Had the same thing happen to me today. Set up my Xiaomi Philips ZhiRui lights today (4 of them) and they worked really well until suddenly at the end of the day, I started getting it throwing exceptions for all 4 of them having invalid tokens. No idea why - don’t believe I changed anything. Will have to do more troubleshooting!

5 mins later, I figured it out. I forgot to give the lights static IPs and my router changed their IP addresses. Once I fixed that, good to go again!

If you flick the light switch 5 times quickly it also resets the bulb so if you have kids who like to play with the light switches it’s a fun game of cat and mouse daily token updates.

1 Like

Okay so we learned that new token is generated when the devices is reseted. Thanks.

How did you extract tokens ?

i was failing with packet sender because i was too far away from bulb … Moved closer and retrieved tokens :slight_smile: