Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Can i recreate a Bulb list without discovering them? #3

Description

@VinzzB

Hello Smarthall,

I just tested your script and it works well. I still have some minor questions:

Is it possible to add Bulbs manually to the internal list without using discovery?
Can i simply create a Device object by passing the right arguments to its CTOR (DeviceId, Host, Client)?
How can i disable discovery when creating the Client? Can i place the next lines into an IF block: self.discover() and the _discoverpoll calls? I would create separate methods for this (start/stop discovery)

What i'm actually looking for is a way to re-create the bulblist from a (db) store. Once it knows (dicovered) the bulbs, there is no need to discover them again. (unless you want to make sure that they are on-line). It should see changes in the bulbs (when the are on-line) as your script does now.

So my main question: Is there an easy way to store/restore bulbs?

Also, please mention in your docs that this is a Python 2.x script.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions