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

Support multiple addresses per component #132

Open
lupinglade opened this issue Apr 9, 2014 · 1 comment
Open

Support multiple addresses per component #132

lupinglade opened this issue Apr 9, 2014 · 1 comment

Comments

@lupinglade
Copy link

In order for homA to be usable with real HA devices, it is essential to be able to expose multiple devices from a single component. The reason is that many existing technologies rely on USB/serial interfaces/gateways which talk to many devices. In its current state, the architecture of homA seems too simple to support this.

@llauren
Copy link

llauren commented Apr 9, 2014

I don't see how this should be a problem. I have an Arduino which is connected to a bank of relays. Some control lighting in the garden, some control the engine heaters of our cars (essential in the Finnish winter). While i could have named my device logically (gardenlights, engineheater), i chose to give it the physical name (switchbank). Admittedly, giving the device a logical name would be simpler.

Also, there is nothing to stop me from subscribing to several device channels from one device. While it would have made my code longer, i could have subscribed to (or as) /devices/gardenlights/# and /devices/engineheater/#. I could also have several devices all subscribing to /devices/gardenlights/# and the device itself would filter out which messages are of importance.

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