YinHangCode / homebridge-mi-philips-light

XiaoMi Philips light plugins for HomeBridge.
99 stars 18 forks source link

Homebridge not working with Mi-Philips-Light #19

Open SolarAngel opened 6 years ago

SolarAngel commented 6 years ago

[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 commented 6 years ago

Anyone?

patrick7659 commented 6 years ago

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

phenomeus commented 6 years ago

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 commented 6 years ago

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

bildschirmfoto 2018-03-17 um 08 58 27
phenomeus commented 6 years ago

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

SolarAngel commented 6 years ago

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

phenomeus commented 6 years ago

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/

snowman-repos commented 3 years ago

I have the same error