8
submitted 7 months ago by Communist@lemmy.ml to c/python@programming.dev

cross-posted from: https://lemmy.ml/post/13397153

I'm just trying to control my smartlights with a script, it seems to be having a lot of problems, I really don't know what I'm doing, i'd appreciate any help I can get

Once I have a script that can individually turn lights on/off i can edit the rest myself, I just can't get the base functionality working.

you are viewing a single comment's thread
view the rest of the comments
[-] Communist@lemmy.ml 5 points 7 months ago

Yeah, my real issue was that I erroneously assumed

from lifxlan import LifxLAN

WOULD import the Light function, but of course, it does not, I didn't realize that when you do a from import you're just importing a single specific command and not the whole library, and just used it like it was in the examples they gave, but thank you for the comment and this community is awesome, just that you were willing to write that all that out just to help me understand is incredibly kind, thank you!

this post was submitted on 20 Mar 2024
8 points (83.3% liked)

Python

6321 readers
84 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS