'Dromotica' app for controlling Domoticz from Android

Moderator: leecollings

Post Reply
h4wkm00n
Posts: 3
Joined: Thursday 19 December 2013 11:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Android app

Post by h4wkm00n »

Same here. Can't connect.
For info, I connect to my domoticz instance with the url http://www.[mydomainname]/domoticz/
It's ok with a browser and with my xbmc add-on.

By the way, your app does not seem to support https. It should.
sebas
Posts: 117
Joined: Tuesday 17 September 2013 7:46
Target OS: Linux
Domoticz version:
Location: Deventer, The Netherlands
Contact:

Re: Android app

Post by sebas »

h4wkm00n wrote:Same here. Can't connect.
For info, I connect to my domoticz instance with the url http://www.[mydomainname]/domoticz/
It's ok with a browser and with my xbmc add-on.

By the way, your app does not seem to support https. It should.
Don't enter the http:// in the URL field. It's already added by the app.
You installed a SSL certificate on your server signed by a trusted supplier or is it self-signed?
h4wkm00n
Posts: 3
Joined: Thursday 19 December 2013 11:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Android app

Post by h4wkm00n »

I removed the http:// from the url and the trailing slash, as mentionned in the app.
Still, no luck.

I don't use https myself, but as your app automatically add the http://, it can't use https, right ? I don't think that's a big thing. There ought to be libraries to handle that.

Is there a github-like for your app, where we can create issues, and try to help you with them ?
Scoobydoo
Posts: 54
Joined: Tuesday 16 July 2013 12:20
Target OS: -
Domoticz version:
Contact:

Re: Android app

Post by Scoobydoo »

Just had an update via the play store, not at home at the moment but the remote access is working fine, app is running fine and not crashing when going to menu now. Make sure that every field is entered in the settings because if any ate left blank I've found that this causes a crash.
Thanks for the fast fix and update. This app gets better and better, really looking forests to the future improvements :)
Gizmo
Posts: 8
Joined: Monday 11 November 2013 18:35
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Android app

Post by Gizmo »

Seams like widgets dont work after last update but no more crashes when tilting phone :)
Thanks for a nice app.
sebas
Posts: 117
Joined: Tuesday 17 September 2013 7:46
Target OS: Linux
Domoticz version:
Location: Deventer, The Netherlands
Contact:

Re: Android app

Post by sebas »

Updated the app yesterday evening, that fixed some errors. Good to hear it doesn't crash as often anymore.

Found out that it still crashes when you click " Settings" on the error dialogs you get when Dromotica can't connect to Domoticz. Clicking "Ok" doesn't crash the app and will allow you to go to the settings via the menu. Also the widgets for switches don't work as expected. The scene widgets do work.

I'll spend more time on QA for the next updates :D
h4wkm00n
Posts: 3
Joined: Thursday 19 December 2013 11:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Android app

Post by h4wkm00n »

It worked well at home, using the IP of the PI. Very nice look & fell. I like it.
Thanks a lot. That's definitely something domoticz needs.
I don't have the update yet.

Guys, how do you make your domoticz instance reachable from the outside of your lan ? As for me, I used apache proxy. This prevent the need to open new port on my router, and works everywhere. Other ports than 80/443 are not open on some public wifi hotspots.
User avatar
capman
Posts: 153
Joined: Friday 12 July 2013 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Belgium
Contact:

Re: Android app

Post by capman »

h4wkm00n wrote: Guys, how do you make your domoticz instance reachable from the outside of your lan ? As for me, I used apache proxy. This prevent the need to open new port on my router, and works everywhere. Other ports than 80/443 are not open on some public wifi hotspots.
Can you explain this to me how to do this? A also have apache and domoticz working with port 28080. In the past a had domoticz running on windows , so i get it from everywhere. But now a have a raspberry pi with domoticz installation.
It works on my home network but don't now how to reach it through the internet.

Thanks.
sebas
Posts: 117
Joined: Tuesday 17 September 2013 7:46
Target OS: Linux
Domoticz version:
Location: Deventer, The Netherlands
Contact:

Re: Android app

Post by sebas »

I've setup port forwarding in my router to make Domoticz reachable from the internet. Forward traffic from a port of your liking to the ip of your raspberry and port 8080 or whatever port domoticz is running on.
Do setup a username and password.
sebas
Posts: 117
Joined: Tuesday 17 September 2013 7:46
Target OS: Linux
Domoticz version:
Location: Deventer, The Netherlands
Contact:

Re: Android app

Post by sebas »

New update coming up.

Added support for temperature and temperature + humidity sensors.
Added support for weight scales.
Stability improvements.
Scoobydoo
Posts: 54
Joined: Tuesday 16 July 2013 12:20
Target OS: -
Domoticz version:
Contact:

Re: Android app

Post by Scoobydoo »

Thanks for the quick updates, app is running stable :-)
Sappien
Posts: 114
Joined: Saturday 24 August 2013 9:59
Target OS: Linux
Domoticz version: beta
Contact:

Re: Android app

Post by Sappien »

I like your app, but it still crashing when opening the temperature section
sebas
Posts: 117
Joined: Tuesday 17 September 2013 7:46
Target OS: Linux
Domoticz version:
Location: Deventer, The Netherlands
Contact:

Re: Android app

Post by sebas »

Sappien wrote:I like your app, but it still crashing when opening the temperature section
It's getting crazy with these crashes. The app works fine on the three phones I've got for testing but it still manages to crash on other phones.
I've got the same crash report from several different users, thank you for that. I've just uploaded a small update that hopefully solves the crashes for temperatures.
wizzard72
Posts: 116
Joined: Friday 20 December 2013 7:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Android app

Post by wizzard72 »

Nice clean app. I use it every day. On my galaxy S2 and Asus transformer the app crashes when I rotate the device. Also when I start a scene that dim my lights, the section Switches is not updated always. It updates only when the dimmer is at 100 percent. If a start a scene with 50% dimmed lights, the Switch section shows that the dimmers are off, but they are actually on at 50%
User avatar
supergroover
Posts: 23
Joined: Friday 12 July 2013 19:37
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Android app

Post by supergroover »

sebas wrote:
Sappien wrote:I like your app, but it still crashing when opening the temperature section
It's getting crazy with these crashes. The app works fine on the three phones I've got for testing but it still manages to crash on other phones.
I've got the same crash report from several different users, thank you for that. I've just uploaded a small update that hopefully solves the crashes for temperatures.


I just installed the latest update( the second update from today) but the app is still crashing when I open the temperature tab on my HTC one S with android 4.2.2 (MaximusHD 10.0 Rom)
Sappien
Posts: 114
Joined: Saturday 24 August 2013 9:59
Target OS: Linux
Domoticz version: beta
Contact:

Re: Android app

Post by Sappien »

On my LG G2 with Cyanogenmod 11.0 (Android 4.4.2) en my Sony Ericsson M (4.2) same issue
sebas
Posts: 117
Joined: Tuesday 17 September 2013 7:46
Target OS: Linux
Domoticz version:
Location: Deventer, The Netherlands
Contact:

Re: Android app

Post by sebas »

wizzard72 wrote:Nice clean app. I use it every day. On my galaxy S2 and Asus transformer the app crashes when I rotate the device. Also when I start a scene that dim my lights, the section Switches is not updated always. It updates only when the dimmer is at 100 percent. If a start a scene with 50% dimmed lights, the Switch section shows that the dimmers are off, but they are actually on at 50%
I'll have a look at the dimmers.

@supergroover and @Sappien: could you send me the output of: http://[domoticz url]:[domoticz port]/json.htm?type=devices&filter=temp&used=true&order=Name. Maybe it has to do with the output Domoticz gives. The other screens are working for you?
wizzard72
Posts: 116
Joined: Friday 20 December 2013 7:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Android app

Post by wizzard72 »

sebas wrote:
wizzard72 wrote:Nice clean app. I use it every day. On my galaxy S2 and Asus transformer the app crashes when I rotate the device. Also when I start a scene that dim my lights, the section Switches is not updated always. It updates only when the dimmer is at 100 percent. If a start a scene with 50% dimmed lights, the Switch section shows that the dimmers are off, but they are actually on at 50%
I'll have a look at the dimmers.

@supergroover and @Sappien: could you send me the output of: http://[domoticz url]:[domoticz port]/json.htm?type=devices&filter=temp&used=true&order=Name. Maybe it has to do with the output Domoticz gives. The other screens are working for you?
The temperature section crashes the app. The other screens works great.

The app has the ability now to connect to domoticz through LAN and WAN. This is done by exposing domoticz directly to the internet (port forwarding on the internet router). This isn't what I have in mind. I already setup (open)VPN. The app is working with VPN, but i have to start it manually. Is it possible to make a VPN connection directly from within the app depending on which SSID I'm connected?
sebas
Posts: 117
Joined: Tuesday 17 September 2013 7:46
Target OS: Linux
Domoticz version:
Location: Deventer, The Netherlands
Contact:

Re: Android app

Post by sebas »

wizzard72 wrote:
sebas wrote:
wizzard72 wrote:Nice clean app. I use it every day. On my galaxy S2 and Asus transformer the app crashes when I rotate the device. Also when I start a scene that dim my lights, the section Switches is not updated always. It updates only when the dimmer is at 100 percent. If a start a scene with 50% dimmed lights, the Switch section shows that the dimmers are off, but they are actually on at 50%
I'll have a look at the dimmers.

@supergroover and @Sappien: could you send me the output of: http://[domoticz url]:[domoticz port]/json.htm?type=devices&filter=temp&used=true&order=Name. Maybe it has to do with the output Domoticz gives. The other screens are working for you?
The temperature section crashes the app. The other screens works great.

The app has the ability now to connect to domoticz through LAN and WAN. This is done by exposing domoticz directly to the internet (port forwarding on the internet router). This isn't what I have in mind. I already setup (open)VPN. The app is working with VPN, but i have to start it manually. Is it possible to make a VPN connection directly from within the app depending on which SSID I'm connected?
To be honest I have no idea :-) I'll have to see what's possible and if Android apps are allowed to start a VPN connection. I have planned to support the client certificate option to secure the access to Domoticz. That's more secure than the username & password option and should be doable based on the research I've done so far.
odbro
Posts: 1
Joined: Sunday 29 December 2013 10:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Sv: Android app

Post by odbro »

Hello i have some problems with the app. When a lamp is turned on by the original switch the app is not recognize this but when I log in at pi:8080 it's there Image Image
It's not always like this :/
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests