'Dromotica' app for controlling Domoticz from Android

Moderator: leecollings

Scoobydoo
Posts: 54
Joined: Tuesday 16 July 2013 12:20
Target OS: -
Domoticz version:
Contact:

Re: Android app

Post by Scoobydoo »

Luckily I haven't updated domoticz so the old version without the compression is still working fine with your 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 »

Scoobydoo wrote:Luckily I haven't updated domoticz so the old version without the compression is still working fine with your app :-)
Good to hear that it works with the older versions of Domoticz.

Found the cause of the problem. Normally an hhtp header is set when content is encoded with gzip. I use that header to detect if I need to unzip the response from Domoticz first. However with Domoticz that header is not set. The app because of that thinks it's plain text and thus can't do anything with the response. That's why it does work with the old Domoticz version as that's not returning gzip but plain text.

I've asked Rob if he can add the header to Domoticz.
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 »

The update for Dromotica that will fix the issue with the invalid response is on it's way. Just put it in the store.
Found a way to detect the gzip without the header.
Scoobydoo
Posts: 54
Joined: Tuesday 16 July 2013 12:20
Target OS: -
Domoticz version:
Contact:

Re: Android app

Post by Scoobydoo »

That's a fast fix, excellent. I know everyone really appreciates your hard work.
I've said it before and I'll say it again, excellent app :-) makes domoticz practical to use from my phone and tablet
Gizmo
Posts: 8
Joined: Monday 11 November 2013 18:35
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Android app

Post by Gizmo »

Great, now you just need to take another look at dimmers, when lights are on the app shows off and the other way around :?
Skippiemanz
Posts: 230
Joined: Sunday 14 July 2013 20:21
Target OS: Linux
Domoticz version: 4.10233
Location: Alkmaar, The Netherlands
Contact:

Re: Android app

Post by Skippiemanz »

Great work,

But when the app reloads the status it jumps all the way to the top. Can that be fixed? itsvery annoying.
Sappien
Posts: 114
Joined: Saturday 24 August 2013 9:59
Target OS: Linux
Domoticz version: beta
Contact:

Re: Android app

Post by Sappien »

I can connect again 8-)

A other issue is that on my Android I often get the Dromo App background.. And nothing happens...I've got to restart the app
Attachments
Screenshot_2014-01-14-17-06-40 (2).png
Screenshot_2014-01-14-17-06-40 (2).png (171.66 KiB) Viewed 4406 times
andriej
Posts: 46
Joined: Tuesday 10 December 2013 22:27
Target OS: Linux
Domoticz version: beta
Contact:

Re: Android app

Post by andriej »

I've set 'remote' to my dyndns no-ip address, port is high value (like: 23445) and forwarded to 443 by router.
I cannot connect via 'secure' remote option.
Orange Pi (@ Debian) / MySensors Serial / GPIO / Custom Serial 433 MHz Transmitter (for plug switches and livolo wall switches) / JSON&Bash API scripts
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 »

andriej wrote:I've set 'remote' to my dyndns no-ip address, port is high value (like: 23445) and forwarded to 443 by router.
I cannot connect via 'secure' remote option.
Do you have a valid SSL certificate for the no-ip address as the domain? The certificate does not need to be signed by a trusted CA but the SSL certificate needs to be for the domain name that you are connecting to. Also Domoticz does not come with SSL support built in. You'll need an Nginx proxy for that. When you connect with a browser, does that work?
andriej
Posts: 46
Joined: Tuesday 10 December 2013 22:27
Target OS: Linux
Domoticz version: beta
Contact:

Re: Android app

Post by andriej »

sebas wrote:Do you have a valid SSL certificate for the no-ip address as the domain? The certificate does not need to be signed by a trusted CA but the SSL certificate needs to be for the domain name that you are connecting to. Also Domoticz does not come with SSL support built in. You'll need an Nginx proxy for that. When you connect with a browser, does that work?
It's not 'valid' certificate as its own-signed by RPI.
It came from default installation of Domoticz, as default, on image. It works in browser, just the 'https' is lined-out in Chrome tho.
Do you mean I need to re-do the certificate to match 'no-ip' address?
Orange Pi (@ Debian) / MySensors Serial / GPIO / Custom Serial 433 MHz Transmitter (for plug switches and livolo wall switches) / JSON&Bash API scripts
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 »

andriej wrote:
sebas wrote:Do you have a valid SSL certificate for the no-ip address as the domain? The certificate does not need to be signed by a trusted CA but the SSL certificate needs to be for the domain name that you are connecting to. Also Domoticz does not come with SSL support built in. You'll need an Nginx proxy for that. When you connect with a browser, does that work?
It's not 'valid' certificate as its own-signed by RPI.
It came from default installation of Domoticz, as default, on image. It works in browser, just the 'https' is lined-out in Chrome tho.
Do you mean I need to re-do the certificate to match 'no-ip' address?
A SSL certificate that is signed by yourself is still valid. Is just not signed by a trusted Certificate Authority. I've disabled the check for that. However the certificate does need to be for the domain you're accessing Domoticz on. So if you've not created a new certificate probably the domain name (no-ip address) is not the same domain as the ssl certificate is for. Creating a new certificate will solve that.
wizzard72
Posts: 116
Joined: Friday 20 December 2013 7:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Android app

Post by wizzard72 »

In the switch section the dimmers are not working correctly. The are off and the app reports they are on and at full capacity.
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 »

wizzard72 wrote:In the switch section the dimmers are not working correctly. The are off and the app reports they are on and at full capacity.
I've that problem too.
andriej
Posts: 46
Joined: Tuesday 10 December 2013 22:27
Target OS: Linux
Domoticz version: beta
Contact:

Re: Android app

Post by andriej »

sebas wrote:A SSL certificate that is signed by yourself is still valid. Is just not signed by a trusted Certificate Authority. I've disabled the check for that. However the certificate does need to be for the domain you're accessing Domoticz on. So if you've not created a new certificate probably the domain name (no-ip address) is not the same domain as the ssl certificate is for. Creating a new certificate will solve that.
I've re-done the certificate for specially put-up domain. Still the same (Could not connect...)
In browser from the same phone everything works.
I hope it's not the problem that port (defined in 'port' section) is >5xxxx (high)?
Orange Pi (@ Debian) / MySensors Serial / GPIO / Custom Serial 433 MHz Transmitter (for plug switches and livolo wall switches) / JSON&Bash API scripts
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 »

andriej wrote:
sebas wrote:A SSL certificate that is signed by yourself is still valid. Is just not signed by a trusted Certificate Authority. I've disabled the check for that. However the certificate does need to be for the domain you're accessing Domoticz on. So if you've not created a new certificate probably the domain name (no-ip address) is not the same domain as the ssl certificate is for. Creating a new certificate will solve that.
I've re-done the certificate for specially put-up domain. Still the same (Could not connect...)
In browser from the same phone everything works.
I hope it's not the problem that port (defined in 'port' section) is >5xxxx (high)?
As long as it's less than 65535 it should be fine however ports above 49151 are Ephemeral ports so that might break things. Try setting one below 49151.
You don't have an error that's something like this: The identity of this website has not been verified. Server's certificate does not match the URL. in Chrome?

Maybe try this: https://www.startssl.com/. You can get a trusted certificate for free here.
Derik
Posts: 1602
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Android app

Post by Derik »

Maybe a bug?

A dimmer switch is getting back on.
While he is in domoticz off nicely?

And of course the lamp is off.
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
remb0
Posts: 499
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Android app

Post by remb0 »

what's next? do you have a roadmap?

what I miss:
- energie p1 cable is displayed but no values.
- the blue background earlier mentioned
- nice widgets? (maybe icons or text)
- android push notifications when a doorbell / door of something is open/on/off
- moving item order. when holding an item for x seconds
- open logs of an item (by holding for x seconds you can see historie.
- opening domoticz websites
- cam's
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 »

remb0 wrote:what's next? do you have a roadmap?

what I miss:
- energie p1 cable is displayed but no values.
- the blue background earlier mentioned
- nice widgets? (maybe icons or text)
- android push notifications when a doorbell / door of something is open/on/off
- moving item order. when holding an item for x seconds
- open logs of an item (by holding for x seconds you can see historie.
- opening domoticz websites
- cam's
+ multiple tabs for the several rooms
Gizmo
Posts: 8
Joined: Monday 11 November 2013 18:35
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Android app

Post by Gizmo »

Save diffrent connections also if you have more than one server to control would be nice.
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 »

remb0 wrote:what's next? do you have a roadmap?

what I miss:
- energie p1 cable is displayed but no values.
- the blue background earlier mentioned
- nice widgets? (maybe icons or text)
- android push notifications when a doorbell / door of something is open/on/off
- moving item order. when holding an item for x seconds
- open logs of an item (by holding for x seconds you can see historie.
- opening domoticz websites
- cam's
Well I'd like to add the weather part to it first so I got all the groups covered and I'm looking into the room support. Maybe also adding the dashboard.
Also there are still some device requests I need to add. I'll look into that p1 cable that's not showing values and the dimmer switch.

After that I wanted to start with the tablet design. I've got some ideas for that that I need to sketch out and see how they work out. That will take some more time to do.
Logs & Graphs, Widgets, NFC, Geofencing, cameras and notifications are also on the list but a bit further down. For the notifications I need help from the core developers as Domoticz needs to start pushing notifications to Google to get them to Dromotica.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest