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

One physical device, need multiple HA devices each with multiple sensors #161

Open
psgcooldog opened this issue Apr 14, 2023 · 6 comments
Open

Comments

@psgcooldog
Copy link

psgcooldog commented Apr 14, 2023

I'm creating an ESP32-based LORA gateway for multiple physical sensors. I already have it working as one HA "Device" with multiple sensors, but would like to have each of the physical sensors (with their multiple HA sensor entities) appear as a separate HA Device.

Although it appears that creating an HADevice with its own HAMqtt object for each top-level HA Device would work, I can't see any way to associate the HASensors with a particular top-level HADevice. It appears that the first HADevice that is created "owns" all HADevices that are created subsequently.

Can you advise if this is even possible?

Thanks for the beautiful lib!

@chinswain
Copy link

I have the same requirement - 10 beehives all transmitting via LoRa to a receiver which then publishes the devices to HA, having each hive as a separate HA device would be good.

@psgcooldog
Copy link
Author

psgcooldog commented May 20, 2024 via email

@chinswain
Copy link

Did you manage to add multiple devices or have you had to put them all as sensors on the one?

I've got Beehive1Temp, Beehive2Temp etc but it's really messy and lengthy code and looks a complete mess at the other end in HA with so many sensors!

@psgcooldog
Copy link
Author

psgcooldog commented May 20, 2024 via email

@chinswain
Copy link

Yea please, it would be interesting to take a look, I'm nearly at 100 sensors (which should be spread across 10 devices)

@psgcooldog
Copy link
Author

psgcooldog commented May 21, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants