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

Master / slave option for syncing without mqtt? #2466

Open
CrappyTan opened this issue Aug 20, 2021 · 3 comments
Open

Master / slave option for syncing without mqtt? #2466

CrappyTan opened this issue Aug 20, 2021 · 3 comments
Labels
enhancement New feature or request light

Comments

@CrappyTan
Copy link

I'm moving out of my house soon and have many coloured leds which each use their own controller. The kitchen, for example, has 7 controllers.

Normally the above was managed by openhab via mqtt but I'm not leaving that behind as the new owner is not tech savvy.

What I'd like to do is leave the controllers synced so he can only connect to one via his phone and the rest follow. He'd obviously have to have them all connected to his wifi.

I was thinking of using the api to poll for switch and colour settings from host / master. Is anything like this possible or in the pipeline. If not, I'll take a look at it.

C

@mcspr
Copy link
Collaborator

mcspr commented Aug 20, 2021

Something like this, based on multicast?
#2355

Other option is to remove openhab-like software from the stack, but keep MQTT server on a small'ish device (openwrt, something custom) that is running the WiFi AP? I have also reworked the relays group thing to have separate pub and sub topics, which I think would make sense for lights as well? Likely, with a different payload format too.
(plus, parsing / handling received topics with MQTT wildcards are also supported from the sw side)

@CrappyTan
Copy link
Author

CrappyTan commented Aug 20, 2021

I suspect the multicast might be a better option as it can be broadcast and anyone listening can act. I think that is how it works? Sorry, not very familiar.

edit: How does #2355 work once implemented?

I've thought of leaving an old RPi running with mosquitto on it as a solution. I guess that'll be ok for a year or so before the SD card messes up.

I'm in two minds - someone who manages to install espurina on a device to control their LEDs should be able to also setup HASSIO, OpenHAB etc. On the other hand though, a way to make it simple via multicast also has benefits.

@mcspr mcspr added enhancement New feature or request light labels Aug 20, 2021
@mcspr
Copy link
Collaborator

mcspr commented Aug 21, 2021

edit: How does #2355 work once implemented?

Standalone e1.31 software (PC, phone, etc.) will send packet containing certain channel values. From our side we associate e1.31 id with the channel id. And our side is receive-only.

I've thought of leaving an old RPi running with mosquitto on it as a solution. I guess that'll be ok for a year or so before the SD
card messes up.

I'm in two minds - someone who manages to install espurina on a device to control their LEDs should be able to also setup HASSIO, OpenHAB etc. On the other hand though, a way to make it simple via multicast also has benefits.

Or, there is a dedicated master device publishing to what others listen to. Additional topic for the master can also be used for the external control.

Also note that rpi 3+/4 should be able to boot from usb, very old ones are a bust though
What I originally thought about is something like this with some pre-requisite 'unlocking' of the original software.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request light
Projects
None yet
Development

No branches or pull requests

2 participants