Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xiaomi Phillips Smart LED Ball Lamp and API token for Home Assistant (yaml) #445

Closed
L3M4R opened this issue Jan 3, 2019 · 1 comment
Closed

Comments

@L3M4R
Copy link

L3M4R commented Jan 3, 2019

Hi.

Managed to get API Token for Xiaomi Phillips Smart LED Ball Lamp using Packet Sender as explained here https://github.com/jghaanstra/com.xiaomi-miio/blob/master/docs/obtain_token.md (Method 2): "In the last 16 bytes (32 characters) of the devices response is the device token". I noticed generated token is different on every lamp reset (5 time turn on/off).

Received package is (hex): 21 31 00 20 00 00 00 00 04 3E 66 4D 00 00 00 0D 15 74 20 45 60 FC C9 8A 82 69 A4 14 AD A2 C2 D6 . The problem is this bytes can not be converted to plain ACSII characters that can be put to light.yaml file. How to get 32 characters from 16 bytes (what decode method, ideas) ?

  • platform: xiaomi_miio
    name: Xiaomi Philips Smart LED Ball
    host: 192.168.130.67
    token: YOUR_TOKEN
    model: philips.light.bulb
@L3M4R L3M4R closed this as completed Jan 3, 2019
@L3M4R
Copy link
Author

L3M4R commented Jan 3, 2019

Simply use last 32 characters as API TOKEN (in this case: 1574204560FCC98A8269A414ADA2C2D6)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant