-
Notifications
You must be signed in to change notification settings - Fork 615
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 for control 2 Home Assistance #296
Comments
Even better if it can handle one of those instances being down usually like a dev instance |
I was hoping for this as well, in my use case I have an instance at home and at work and I wanted to control both of them. I ended up getting this working by setting up a work profile on my phone which allowss me to have separate apps, works perfectly! |
We are still working on building out basic functionality of the app, so this is not on the roadmap. Once we feel like we're in a good place we would gladly accept a pull request! |
I'd like to give a +1 for this enhancement also. |
This is a very important feature... any update for this? |
If anybody like me on a Samsung phone without multiple profiles: I hope this can get implemented in the near future, as I can't think about anything missing, other than this. @balloob may I ask you, is the project reached into a state to allow pull request for this? Or is there an estimate for it? |
Hello. I strongly believe that this issue should be reopened. The similar iOS issue is still pending 😬 |
I have three installations and I have the same problem. Please, I could use it very well if you open the topic |
Similar issue here. Already has 2 system and the third is coming. |
Hey all, I ran a poll on our Twitter account this week trying to determine how many people actually have multiple instances. Based on the results of the poll we (@JBassett, @dshokouhi and I) still feel that there’s not enough people who would benefit from the immense effort it would take to rework the app core to support multiple instances vs the effort is takes for developers to keep adding features and fixing things. As I’ve said before, if a developer came along that wanted to add this functionality (in concert with Justin and others) and was willing to maintain it, we’d be open to that. But for now, there’s far more people who benefit from incremental changes than dropping everything to support a small but vocal minority. Sorry y’all. Will revisit this again in the future. |
Twitter poll? Who here monitors the HA Twitter feed? |
You’re right that I failed to alert this issue when I posted the poll, I’m sorry for that. I did alert the same issue in the iOS repo. The poll had 2232 respondents which I think is a good sample size. You can see results and comments here. |
With all my respect, having an Android-related poll on a iOS-related group is not a match. Also let's make a poll to see how many people prefer HA instead of Google Home or whatever. Is this the correct spirit? Moreover this issue is not solved - thus it shouldn't be closed. |
+1 |
Seems odd how much talk there is around this on iOS but not much on Android. Definitely a worthwhile feature; obviously it's a select group that runs multiple servers but I think if the ability was there at the top level there would be more utilization. I used to run a dev server to sandbox in, but was such an inconvenience that gave it up. Now have two physical locations and just doesn't play well. |
Hello. Up until now I have been running only one instance, but this year we are building a new vacation home in Costa Rica. I have some experience with Android development and I would love the challenge add support for multiple homes to the Android home. I will start by setting my developer environment. |
Thats excellent news and congrats on the new vacation home! If you have any questions or need any help don't hesitate to ask us on discord in #devs_mobile_app |
@robbiet480 Thanks for being transparent and engaging here. Reading through the comments of the twitter poll, it seems there are two main categories of users with 2+ HA instances:
For the second case, I wonder if the use cases can be further broken out, and perhaps there is a primary use case which is much less work to implement & maintain. For example, could it be that most users who have HAs in multiple locations really just need location reported to multiple HAs? The use case being that their HAs can respond to where they are in concert. Let's say such a user is en route to their parents home, a winter cottage, or work from where they live. They'd like their home to go into away mode and their parents home/winter cottage/work to switch to home/present mode without manually switching URLs & accounts on their mobile app. If this is a primary use case, there may be simpler solutions than allowing users to switch between instances on the fly:
I originally thought the first option was already possible when I first read this line in the location docs:
The first option seems simpler, although (after a quick glance through the repo) I couldn't find the code that is responsible for pushing location data to an HA instance to see how simple this actually is. Also, home-assistant/iOS#161 (comment) makes me believe it may not be as easy as anticipated, but perhaps I'm misreading. Nonetheless, sharing this with you as you may: Also, if it's helpful, I can file a separate enhancement request to push user location to multiple HAs with the detail here. I held off as I wasn't sure if that would just get rolled back into this request. LMK. Hope this helps. |
What is your twitter account? |
@albalaing that was an issue - it wasn't really announced so not sure how it could be considered a useful poll @rhinot - Thanks, that would be useful, but would only solve a tiny part of my use case. I can get presence other ways, such as router IP address detection. What I really need is a way to switch easily between my 3 instances on my phone for general usage. |
So... The iOS version now supports multiple servers. What about Android? |
I'll say this, we are working towards being able to support multiple instances but we still have a long way to go. Like Zac said for iOS it was basically touching every aspect of the app. The same applies to us. For now we can reopen this ticket, but I wouldn't expect results tangible results in the near term, still a lot to do in the background to get ready for this. |
Thanks, @JBassett . Maybe a good approach would be identifying the tasks and breaking the work into adoptable chunks so people without insight into the complete app structure could contribute, too. |
If you need another HA instance without all the stuff the companion app adds you can just add the other locations to home screen from the web browser on Android. I have my home's HA on the app and my work's HA running through the web-browser just added to my home screen. Works great (and was how apps were supposed to function but blame Google and Apple for going the monetary route with app stores and severely limiting PWA functionality). You could also use AppCloner to duplicate the app. I use this already for my Riot/Matrix chat server (since I have one for work and one for home). |
Subscribing for updates on this one =) |
I am only writing to report that some friends and I also need to use 2 HA instances with the Android app. |
More than one HA instance does make sense if you own multiple homes/houses or maintain the ones from your family. |
That's exactly my use case. I have 3. |
I just set up my second home on my iPhone and my spouse can't on her Pixel. I hope this gets added soon, same 3 finger swipe gesture as on iOS. |
Thank you, I will try it. |
Unfortunately my Samsung phone doesn't provide this functionality. I've seen some Xiaomi phones who do this. Samsung reserves this only for communication apps, like Whatsapp and Viber |
My work profile has restrictions (from my work), so it's not an option. It's similar to the app cloning but at the end of the day it is still just a work around and poor UX. However as the devs said a lot of refactoring is required to support this change natively in the app but it sounds like it's on the roadmap, fingers crossed it comes sooner than later 😃 |
same here, work profile is not an option. fingers crossed it will be created soon |
Guys while I appreciate everyone here is excited for this feature to get added to the android app lets not turn this issue into a massive support thread for all the workarounds. These are not specific to the app and are more a general android thing. If you want to continue this discussion please move it to the forums so we can reduce the chatter here. There is a lot of work to be done for this feature and its going to take us sometime. In fact we know that some users asked us to help break up what needs to happen but in all honesty its a task within itself to document what needs to happen. At the moment all authentication is stored in local storage so to start with we need to first migrate storing the tokens, URLs etc.. in the database so later on we can add the additional servers and UI. This involves touching every aspect of the app. We have to consider how it will work with Widgets, Notifications, Android Power Menu etc.. there is a lot to consider. For anyone who wants to get started please join us on discord in #devs_mobile_apps and we can have a more open discussion about what the first step would be. |
Please everyone stop spamming the thread. Use reactions to say that you want this feature. Use the subscribe button to get notifications about updates, and stop spamming more than 23 people. Thank you. @teras if you would read the whole thread, you would see that I described a method how you can install 4 seperate instances on Samsung devices. @dshokouhi can you somehow lock the topic? I think there is an option on GitHub for only allow collaborators to comment on this issue. (Unfortunately it locks reactions too) |
Hi all, Support for multiple servers is hopefully coming soon to the Android app :) I have submitted a pull request with a first version of the feature, so please make sure to read the description and documentation updates to understand what is and isn't supported at this point. If you'd like to test before multiserver support is included in the beta, great! Log in to your GitHub account, download the artifact file from here, unzip it to get the apk file, and install it on your device. The full flavor offers support for location tracking. The test version will install alongside the existing version of the app but only supports push notifications using a persistent connection, which may increase battery usage. If you encounter crashes, bugs or other weirdness, let me know via a comment on the pull request linked above this comment. |
Hi
Is any chance to add support for two instance Home Assistant on other address ?
The text was updated successfully, but these errors were encountered: