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

add support to multiple HA #47

Open
niccolobusato opened this issue May 11, 2020 · 6 comments
Open

add support to multiple HA #47

niccolobusato opened this issue May 11, 2020 · 6 comments
Labels
enhancement New feature or request

Comments

@niccolobusato
Copy link

would be nice to have support to multiple HA.

use case:

i have two HA one for home and one for work.. wold be nice to integrate them both

@andrew-codechimp
Copy link
Member

Nice idea, I'll have to think a lot about how to make a simple UI to manage multiple but will add it to the enhancement todo list.

@andrew-codechimp andrew-codechimp added the enhancement New feature or request label May 11, 2020
@niccolobusato
Copy link
Author

niccolobusato commented Sep 20, 2020

maybe with wifi Id? when wifi changes change app configuration?

or a primary configuration and a secondary when wifi is recognized (every time my hone url is configured, just when i'm connected to office wifi the app switch to that config)

@gilperme
Copy link

I second this request...run multiple instances myself. Thanks!

@MacLemon
Copy link

MacLemon commented Nov 9, 2022

Another user here interacting with multiple HA instances. (Home, Work, Hackspace, etc.)

I suggest not to disable other configurations at all, but keeping all enabled at all times. Otherwise the UI messes with the muscle memory of users leading to a bad user experience. Disabling menu items for HAs that cannot be reached seems a more reasonable approach to me.

Why not use WiFi only as the basis for which config to enable?
VPNs and Proxies are a thing and the SSID (or BSSID) alone is not a reliable indicator which HAs could be reached and which not. The only reliable way is to actually try and see if it times out or responds.

Just an idea how this could be solved in a user friendly way.

Group the items for Lights, Switches, Automations, Scripts, into a submenu per account each, IF there is more than a single account.
This ensures, that for every switch it's clear what the context is. For example there might be multiple “entry light” or “coffee maker” switches which would otherwise not be distinguishable.

When looking at all the items of our Hackspace, there's a LOT of items available, but the ones that I regularly use, are but a few. (Like turning on the 2D printer, and a few light switches.) So a function to have a few selected as favourites and have them available at the top of the menu, grouped by HA server, but directly available would come in handy.

Preferences would need a list of HA servers, with a Name (for humans), a URL and the access token (which should be treated like a password field, so only show •••••••). Ideally the preferences also show if that particular server is currently reachable. Maybe similar to link status in System preferences > Network.

@andrew-codechimp
Copy link
Member

Thanks @MacLemon for the detailed used cases/suggestions, I'll certainly think about those when I get round to it.
At the moment I'm a bit stuck as my experience of old style Mac UI dev is limited and the SwiftUI implementation is lagging a long way behind iOS, I revisit it occasionally to see if it's improved with each new release but until I can get a workable UI with that I'll be just doing minor changes. Frustrating for me as a developer and a user!

@MacLemon
Copy link

MacLemon commented Nov 9, 2022

I just tested this, and when HA Menu is unable to contact my HA server, it completely removes all entries. As soon as I connect my VPN the menu gets populated with everything that I see when physically at that location. Not that it would make a lot of sense to remotely turn on my coffee maker, but it's goot being able to see status and maybe run a script.

So yes, HA Menu just works fine over a VPN.

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

No branches or pull requests

4 participants