python-magichue icon indicating copy to clipboard operation
python-magichue copied to clipboard

Cannot discover bulb using discover_bulbs()

Open kevonfernando opened this issue 3 years ago • 1 comments

Describe the bug I cannot discover my led strip using discover_bulbs. It always returns an empty list regardless of how long the timeout is set. But I can still use the bulb if provide the IP address manually.

To Reproduce Code to reproduce the behavior:

import magichue
from magichue import discover_bulbs, LocalLight

discover_bulbs()

Device

  • Device Information: bulb name or/and online store link.
  • It is a RGB led strip controller

Additional context

  • Same issue with the library flux_led
  • I do not know how to find the required information, so I would need some help on how to do that for you.

kevonfernando avatar Jul 31 '22 15:07 kevonfernando

I can't say for sure but divice firmware/protocol may differ so that discover_bulbs() won't work.

If you are using MagicHue(Magic Home) App and able to control bulbs over internet, remote API is another option:

from magichue import RemoteAPI
api = magichue.RemoteAPI.login_with_user_password(user='xxx', password='xxx')  # same as App id/password
online_bulbs = api.get_online_bulbs()
print(online_bulbs)

namacha avatar Aug 01 '22 01:08 namacha