feat: discover other rpi's and setup them #11
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When I plug a new rpi (or other devices in the future), I want it to register to the system automatically. So for instance I want a new security camera, I plug it with the software and that's it, everything's done for me.
To see:
Listen for new connection
I was searching about "mqtt discovery", and I found this tutorial which talks about
$SYS
topics. Then I found this wiki with a list and description about these topics.I need to declare what the device is doing, for instance "hey, I'm a dumb camera" or "hey, I'm a smart camera" and so one...
…generated device_id
I can't set rpi hostname before boot: https://www.raspberrypi.org/forums/viewtopic.php?t=184248
Different devices
Of course our system will be composed by connected devices from Philips, Ikea... We don't have any control over these devices so we will have other process to discover & register them in the system. This PR is about setting up our devices: raspberrypi and maybe esp.
Sources