Help with LifxLan

I’m trying to build a script in python using the LifxLan library by @mclarkk .

When trying to set up a specific light (vs using the discover feature) I get this error message:

File “C:\Users\xxx\ … ]xxx.py”, line 4, in
high = Light(“d0:73:d5:13:34:04”, “192.168.1.79”)
TypeError: init() takes at least 6 arguments (3 given)

I saw from a different post (Need a little help writing scripts for the LifxLAN Python Library) that you can apparently create the light with this kind of command.

Here is the code so far:

from lifxlan import Light

high = Light(""##:##:##:##:##:##", “###.###.###.###”)

high.set_power(“off”, rapid=True)

Thank you

How did you install lifxlan, and when did you install it? It looks like you’re working with an older version of the library from before that feature was added.

If you installed with pip, try updating the module. If you installed from source, try a git pull and reinstall.

Also, you probably don’t need the rapid=True flag. That’s only useful for super-fast light shows with a lot of rapid changes. I’ll clarify that in the documentation.