Android app for HA 3.0

http://karpero.mine.nu/ha

Moderators: Daniel, tom_rosenback, Telldus

Daniel
Posts: 317
Joined: Fri Mar 17, 2023 9:45 am

Android app for HA 3.0

Post 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
Senaste info och release om/av HomeAutomation hittas här http://karpero.mine.nu/ha
Latest info and release of HomeAutomation can be found here http://karpero.mine.nu/ha
Daniel
Posts: 317
Joined: Fri Mar 17, 2023 9:45 am

Re: Android app for HA 3.0

Post 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
Senaste info och release om/av HomeAutomation hittas här http://karpero.mine.nu/ha
Latest info and release of HomeAutomation can be found here http://karpero.mine.nu/ha
gurre
Posts: 6
Joined: Fri Mar 17, 2023 9:45 am

Re: Android app for HA 3.0

Post 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
Daniel
Posts: 317
Joined: Fri Mar 17, 2023 9:45 am

Re: Android app for HA 3.0

Post 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
Senaste info och release om/av HomeAutomation hittas här http://karpero.mine.nu/ha
Latest info and release of HomeAutomation can be found here http://karpero.mine.nu/ha
gurre
Posts: 6
Joined: Fri Mar 17, 2023 9:45 am

Re: Android app for HA 3.0

Post by gurre »

Detta får jag ut

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

<scenarios/>

//Gurre
Daniel
Posts: 317
Joined: Fri Mar 17, 2023 9:45 am

Re: Android app for HA 3.0

Post 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
Senaste info och release om/av HomeAutomation hittas här http://karpero.mine.nu/ha
Latest info and release of HomeAutomation can be found here http://karpero.mine.nu/ha
gurre
Posts: 6
Joined: Fri Mar 17, 2023 9:45 am

Re: Android app for HA 3.0

Post 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
Daniel
Posts: 317
Joined: Fri Mar 17, 2023 9:45 am

Re: Android app for HA 3.0

Post 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
Senaste info och release om/av HomeAutomation hittas här http://karpero.mine.nu/ha
Latest info and release of HomeAutomation can be found here http://karpero.mine.nu/ha
Snoopy
Posts: 253
Joined: Fri Mar 17, 2023 9:45 am
Location: Kalmar
Contact:

Re: Android app for HA 3.0

Post 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 :(
... världen är full av tappade sugar, några är mina....
HA 3.1.1 i en Raspberry Pi 2 + Tellstick Duo
owfs i annan Raspberry B+ + Tellstick och en Tellstick Net som backup
Daniel
Posts: 317
Joined: Fri Mar 17, 2023 9:45 am

Re: Android app for HA 3.0

Post 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
Senaste info och release om/av HomeAutomation hittas här http://karpero.mine.nu/ha
Latest info and release of HomeAutomation can be found here http://karpero.mine.nu/ha
Snoopy
Posts: 253
Joined: Fri Mar 17, 2023 9:45 am
Location: Kalmar
Contact:

Re: Android app for HA 3.0

Post 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
... världen är full av tappade sugar, några är mina....
HA 3.1.1 i en Raspberry Pi 2 + Tellstick Duo
owfs i annan Raspberry B+ + Tellstick och en Tellstick Net som backup
Daniel
Posts: 317
Joined: Fri Mar 17, 2023 9:45 am

Re: Android app for HA 3.0

Post 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
Senaste info och release om/av HomeAutomation hittas här http://karpero.mine.nu/ha
Latest info and release of HomeAutomation can be found here http://karpero.mine.nu/ha
johanha
Posts: 5
Joined: Fri Mar 17, 2023 9:45 am

Re: Android app for HA 3.0

Post 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!
Daniel
Posts: 317
Joined: Fri Mar 17, 2023 9:45 am

Re: Android app for HA 3.0

Post 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 :?
Senaste info och release om/av HomeAutomation hittas här http://karpero.mine.nu/ha
Latest info and release of HomeAutomation can be found here http://karpero.mine.nu/ha
johanha
Posts: 5
Joined: Fri Mar 17, 2023 9:45 am

Re: Android app for HA 3.0

Post 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!
Post Reply