homebridge-mi-philips-light icon indicating copy to clipboard operation
homebridge-mi-philips-light copied to clipboard

Homebridge not working with Mi-Philips-Light

Open SolarAngel opened this issue 6 years ago • 8 comments

[2018-2-15 21:39:34] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - setBrightness Error: Error: Method not found. [2018-2-15 21:39:34] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - setPower Error: Error: Method not found.

Hello! Added a smartbulb to Homebridge. Apple Homekit sees the device but when trying to use no action is being taken; error messages shown above. Some help please :+1 :)

SolarAngel avatar Feb 15 '18 20:02 SolarAngel

Anyone?

SolarAngel avatar Feb 28 '18 17:02 SolarAngel

I encountered the similar issue. [2018-3-4 19:58:58] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - getColorTemperature Error: Error: Call to device timed out [2018-3-4 19:58:58] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - getBrightness Error: Error: Call to device timed out [2018-3-4 19:58:58] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - getPower Error: Error: Call to device timed out

patrick7659 avatar Mar 04 '18 12:03 patrick7659

sadly I have the same issues. @YinHangCode can you have a look please?

Mär 16 23:11:21 raspberrypi homebridge[17266]: [2018-3-16 23:11:21] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsCeilingLamp - getBrightness Error: Error: Call to device timed out Mär 16 23:11:21 raspberrypi homebridge[17266]: [2018-3-16 23:11:21] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsCeilingLamp - getPower Error: Error: Call to device timed out Mär 16 23:11:21 raspberrypi homebridge[17266]: [2018-3-16 23:11:21] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsCeilingLamp - getColorTemperature Error: Error: Call to device timed out

phenomeus avatar Mar 16 '18 22:03 phenomeus

its strange that I can extract very long Tokens, longer than 32 characters

bildschirmfoto 2018-03-17 um 08 58 27

phenomeus avatar Mar 17 '18 08:03 phenomeus

I think its timing out because of the wrong token size?

phenomeus avatar Mar 17 '18 08:03 phenomeus

Well, I tried it with for sure a 32 characters token size but still the same unfortunately :(

SolarAngel avatar Mar 17 '18 11:03 SolarAngel

Fixed it. It’s working right now.

iOS stores the token encrypted as 96 characters. Decrypted are 32 what we need.

So you have another step before it will work: decrypt the token

See under: non jailbroken iOS users https://github.com/jghaanstra/com.xiaomi-miio/blob/master/docs/obtain_token.md

And on this page you can decrypt it for free: http://aes.online-domain-tools.com

And you have to look in the right corner, the two lines are the decrypted 32 Charakters token: https://forum.smartapfel.de/attachment/573-token-decode-png/

phenomeus avatar Mar 17 '18 16:03 phenomeus

I have the same error

snowman-repos avatar Dec 02 '20 10:12 snowman-repos