Page 1 of 2

Android app for HA 3.0

Posted: Fri Mar 17, 2023 9:45 am
by Daniel
Hi all.
Another little good thing related to the release of HomeAutomation 3.0. I've been doing an Android app for controlling HA. I'm a complete newbie when it comes to Android app coding and I still classify this app as alpha, so your mileage may vary, but you're welcome to test and comment!

Check https://kolefors.se/handroid/.

/Daniel

addition: Since I already see in the log that most of the downloads are made using iPhones, I'd just like to note that this app DO NOT work on iPhones. Neither will I make an iPhone app. Anyone interested in doing one are welcome to use the api :D

Re: Android app for HA 3.0

Posted: Fri Mar 17, 2023 9:45 am
by Daniel
Hi again.
Apparently not all Android devices like my tsl certificate. If you've got problems downloading the app, try using http instead of https (ie http://www.kolefors.se/handroid/).

/Daniel

Re: Android app for HA 3.0

Posted: Fri Mar 17, 2023 9:45 am
by gurre
Thanx Daniel

It works like i charm :)

the only thing i don´t get to work i the scenario tab.(but this i maybe not finish yet or that i am doing something wrong) :lol:

Really nice to see the sensortab now you can read the temp´s more easy.

Nice job

//Gurre

Re: Android app for HA 3.0

Posted: Fri Mar 17, 2023 9:45 am
by Daniel
gurre wrote:the only thing i don´t get to work i the scenario tab.(but this i maybe not finish yet or that i am doing something wrong) :lol:
No, the scenarios should work, they work fine here. If you open your web browser and go to http://<put your HA URL here>/api.php?do=scenarios/get&output=xml, what do you get?

/Daniel

Re: Android app for HA 3.0

Posted: Fri Mar 17, 2023 9:45 am
by gurre
Detta får jag ut

Denna XML-fil verkar inte ha någon associerad stilinformation. Dokumentträdet visas nedan.

<scenarios/>

//Gurre

Re: Android app for HA 3.0

Posted: Fri Mar 17, 2023 9:45 am
by Daniel
gurre wrote:Denna XML-fil verkar inte ha någon associerad stilinformation. Dokumentträdet visas nedan.

<scenarios/>
Going back to english since this is an english forum ;)

Anyway, that's weird. Seems like the problem isn't in the app but in the HA api.

Could you run a "select * from scenarios;" in your database and post the result here?

/Daniel

Re: Android app for HA 3.0

Posted: Fri Mar 17, 2023 9:45 am
by gurre
Found the problem there was nothing in the database.
deleted the scenario in HA and created a new one and now it works great :D

//Gurre

Re: Android app for HA 3.0

Posted: Fri Mar 17, 2023 9:45 am
by Daniel
gurre wrote:Found the problem there was nothing in the database.
deleted the scenario in HA and created a new one and now it works great :D
So you had a scenario in HA that didn't exist in the HA database? That's kinda spooky. But if it works now I guess it's alright :D

/Daniel

Re: Android app for HA 3.0

Posted: Fri Mar 17, 2023 9:45 am
by Snoopy
Doesn't work at all on Samsung S2. No address, user name or passwd is registered
in my phone. Or rather it's there when trying to enter again.
In main window I only see:
Hittade inga data. o.s.v.
The same address on my computer sends me right into my homeautomation 3.0.1
What's (not) happening?

EDIT:

I made another try this morning and got the message
Please wait....
and then it crashed :(

Re: Android app for HA 3.0

Posted: Fri Mar 17, 2023 9:45 am
by Daniel
Snoopy wrote:Doesn't work at all on Samsung S2. No address, user name or passwd is registered
in my phone. Or rather it's there when trying to enter again.
In main window I only see:
Hittade inga data. o.s.v.
The same address on my computer sends me right into my homeautomation 3.0.1
What's (not) happening?

EDIT:

I made another try this morning and got the message
Please wait....
and then it crashed :(
That's strange. Is the phone on the same network as the computer? Can you reach the HA url from the web browser in the phone? What version of Android are you running?

/Daniel

Re: Android app for HA 3.0

Posted: Fri Mar 17, 2023 9:45 am
by Snoopy
If I use Firefox I can reach my HA and have a look at the mobile site. No problems at all.
I thought it would be better to use an app though.
I belive I use version 4.1.2

Re: Android app for HA 3.0

Posted: Fri Mar 17, 2023 9:45 am
by Daniel
Weird. No idea what could be wrong. Can't really say I've looked at the code for some months though, since it seems nobody was really interested in the app anyway...

Any chance of getting a logcat of what happens when you start the app and reproduce the error?

/Daniel

Re: Android app for HA 3.0

Posted: Fri Mar 17, 2023 9:45 am
by johanha
Hi,

Is Handroid still available for download? I've lost the application on my phone (system reset), and now I wanted to install Handroid again - but can not use the download links! Has it been move, or even removed? I hope not, since I very much prefer using the app than web interface on my phone.

Thanks!

Re: Android app for HA 3.0

Posted: Fri Mar 17, 2023 9:45 am
by Daniel
johanha wrote:Hi,

Is Handroid still available for download? I've lost the application on my phone (system reset), and now I wanted to install Handroid again - but can not use the download links! Has it been move, or even removed? I hope not, since I very much prefer using the app than web interface on my phone.

Thanks!
Sorry, my fault. Changed web server last week and obviously forgot to copy some stuff over. Did it now.

I'm happy to hear someone actually uses my app though :D

/Daniel

edit: And now the Apache config is fixed so the files are actually downloadable :?

Re: Android app for HA 3.0

Posted: Fri Mar 17, 2023 9:45 am
by johanha
Thanks Daniel!

Actually, I meant to feedback to you earlier that I very much appreciate your app! A lot more convenient than accessing the rpi via web pages, if you ask me. I guess it has to do with web server response times, primarily? Or perhaps the web browser is slow, in my phone.

Thanks again, will download now!