Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
Add Yeelight Ceiling Light support (#168)
Browse files Browse the repository at this point in the history
Adds discovery of Yeelight Ceiling Light (Wifi + Bluetooth).
  • Loading branch information
pauln authored and rytilahti committed Feb 4, 2018
1 parent 1e6b998 commit dce9564
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions netdisco/discoverables/yeelight.py
Expand Up @@ -25,6 +25,8 @@ def info_from_entry(self, entry):
device_type = "strip"
elif entry.name.startswith("yeelink-light-bslamp1_"):
device_type = "bedside"
elif entry.name.startswith("yeelink-light-ceiling1_"):
device_type = "ceiling"
else:
logging.warning("Unknown miio device found: %s", entry)

Expand Down

1 comment on commit dce9564

@leitonp
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to add support for yeelight 2 rgb lights. I get warnings about Unknown miio device found: ServiceInfo(type='miio.udp.local.', name='yeelink-light-color2....
Device is available as light.yeelight_UNKNOWN
... instead

Please sign in to comment.