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

Cannot discover bulb using discover_bulbs() #40

Open
kevonfernando opened this issue Jul 31, 2022 · 1 comment
Open

Cannot discover bulb using discover_bulbs() #40

kevonfernando opened this issue Jul 31, 2022 · 1 comment

Comments

@kevonfernando
Copy link

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.
@namacha
Copy link
Owner

namacha commented Aug 1, 2022

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)

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

2 participants