normen / homebridge-milighthub-platform

Homebridge plugin to control MiLight Hub
6 stars 0 forks source link

Milight-Hub 1.11+ compatibility #16

Closed normen closed 12 months ago

normen commented 1 year ago

Currently light lists from milight hub 1.11+ are not read properly.

Original breaking PR: https://github.com/sidoh/esp8266_milight_hub/pull/801

Looks like we have to get the settings, check if the old array exists, get the new /aliases rest endpoint in case it doesn't and then page through that in case its more than one page.

Edit: Theres also an aliases.txt that provides the whole list as a csv file.. o_O

Originally posted by @normen in https://github.com/normen/homebridge-milighthub-platform/issues/9#issuecomment-1831541751

normen commented 1 year ago

The milighthub-alias-fix branch has a possible fix, released on NPM as a beta version 1.0.1-beta1.

See this PR: https://github.com/normen/homebridge-milighthub-platform/pull/17