lampe icon indicating copy to clipboard operation
lampe copied to clipboard

Multiple bridges

Open pmtek opened this issue 1 year ago • 5 comments

I have my lights split between two bridges. Is it possible to add both bridges in lampe?

pmtek avatar Oct 25 '23 04:10 pmtek

I like this as a feature. This means a major rework of most parts. Maybe I find the time in December.

poinck avatar Nov 10 '23 06:11 poinck

One first remark: Because I have only the first generation of the Bridge. I cannot test how this would work with the newer models, if the API has changed.

poinck avatar Nov 10 '23 06:11 poinck

My current idea to implement this would mean that there is a possibility to switch between bridges with "B" and then typing a number, supporting max 10 brigdes starting with 0 as the first and default bridge. As soon as someone types "B1" and there is currently no bridge 1, the initial wizard would be triggered to register at a new bridge.

Maybe this can be implemented with less code changes I previously thought.

Having bridge-prefixes for lamps would be a thing for another time. I don't want to change the current behaviour managing the lights at this time.

I will base this this on the existing release-branch, meaning additional improvements from ages ago will finally be coming to the main branch.

poinck avatar Jan 01 '24 18:01 poinck

Awesome. Thank you poinck. Happy new year!

pmtek avatar Jan 01 '24 18:01 pmtek

I have just tested my first version with multi-bridge support here: https://github.com/poinck/lampe/releases/tag/v1.2.0

If you have time to test it, this would be awesome. If you have "lampe" already checked out with git, you can get the newest version with git switch main and git pull. There is no need to install it; you can start it directly from the project-root with ./lampe.

poinck avatar Jan 02 '24 18:01 poinck