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

Light misclassified as Device #154

Open
bdn96 opened this issue Jan 2, 2021 · 1 comment
Open

Light misclassified as Device #154

bdn96 opened this issue Jan 2, 2021 · 1 comment

Comments

@bdn96
Copy link

bdn96 commented Jan 2, 2021

when discovering the devices on my network, a light bulb (link to the product for reference: https://www.amazon.it/gp/product/B086HKM88R/ref=ppx_yo_dt_b_asin_title_o08_s00?ie=UTF8&psc=1) is not reported by the following code.

lifx = LifxLAN()
lights= lifx.get_lights()

It is reported, though, by

lifx = LifxLAN()
devices = lifx.get_devices()

Also, when creating the light object directly with

light = Light("XX:XX:XX:XX:XX:XX", "192.168.1.74")

and calling

light.get_power()

the program terminates with:

line 526, in req_with_resp
raise WorkflowException("WorkflowException: Did not receive {} from {} (Name: {}) in response to {}".format(str(response_type), str(self.mac_addr), str(self.label), str(msg_type)))
lifxlan.errors.WorkflowException: WorkflowException: Did not receive [<class 'lifxlan.msgtypes.LightStatePower'>] from XX:XX:XX:XX:XX:XX (Name: None) in response to <class 'lifxlan.msgtypes.LightGetPower'>

Both when launching the discovery and calling get_power() multiple UDP packets are exchanged between the bulb and the computer (see Wireshark screenshot attached).

image

@mclarkk
Copy link
Owner

mclarkk commented Mar 19, 2021

A recent update to products.py (#153) might fix this...want to pull the latest and see if it works now?

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