New iOS App for domoticz

Moderator: leecollings

safi78
Posts: 204
Joined: Thursday 05 September 2013 15:39
Target OS: Linux
Domoticz version: LastBeta
Contact:

Re: New iOS App for domoticz

Post by safi78 »

digimate wrote:What could be (done) wrong?
I don't know, you aren't very 'verbose' ;)

You try to connect to your public IP, correct port on the outside, mapped to the correct (probably 8080) to the inside? Can you connect with a browser from the outside world?

I configured 2 servers in the app, which 'switch' automagically with geofencing. One for the private ip, one for the public ip.

I do the port-forwarding in my UPC-router, and 'new' forwards only seem to work after I configure the mapping, then reboot my router (yeah, nice...)
homebridge, rfxcom, zwave, nest, applamp, hue, debian, apple, mysensors, netatmo, fibaro, synology, foscam, otherz
digimate
Posts: 19
Joined: Tuesday 02 February 2016 20:20
Target OS: Raspberry Pi / ODroid
Domoticz version: lastbeta
Contact:

Re: New iOS App for domoticz

Post by digimate »

@Sander: Thanks for your reply.

Right now I can only connect with a local ip address.
When I use my WAN ip-address (or DNSS name) I can't.

I have no connect problems/issues with the (similar) Pilot app (iPhone), so no problems with the local or public ip-address.
I have no connect problems/issues by using a browser (iPhone/iPad/macbook) to connect with the local or public ip-address to domoticz (@synology: port 8084).

I have no problems with other devices (like my Synology, ip-camera's, and so on) which needs port forwarding.

When I try to add a new server (named Thuis) and with that try to connect by using the public ip-address the app continues to 'say': 'Kan geen verbinding maken met Thuis', so I can't connect with correct public ip-address, correct port (8084) and correct credentials. When I do save this settings the app crashes again and again. To solve this I have to delete the app and re-install it.

As said it works with the local ip-address and of course same data to log-on.

Once I got an error:
Could not connect to Thuis
De bewerking kan niet worden voltooid. Response status was unacceptable: 401
Synology DS716+. Domotica devices (on about 30): KaKu (and other 433MHz devices), Z-Wave, Mi-Light, Xiaomi.
safi78
Posts: 204
Joined: Thursday 05 September 2013 15:39
Target OS: Linux
Domoticz version: LastBeta
Contact:

Re: New iOS App for domoticz

Post by safi78 »

Hmmm that's weird indeed. Do you use Basic-Auth as well? That fixed the 401 for me?
homebridge, rfxcom, zwave, nest, applamp, hue, debian, apple, mysensors, netatmo, fibaro, synology, foscam, otherz
safi78
Posts: 204
Joined: Thursday 05 September 2013 15:39
Target OS: Linux
Domoticz version: LastBeta
Contact:

Re: New iOS App for domoticz

Post by safi78 »

Or some settings in the ip-ranges in domoticz that dont require authentication? Had a lot of fun with that once
homebridge, rfxcom, zwave, nest, applamp, hue, debian, apple, mysensors, netatmo, fibaro, synology, foscam, otherz
mfranken
Posts: 35
Joined: Saturday 15 November 2014 14:28
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Amsterdam, the Netherlands
Contact:

Re: New iOS App for domoticz

Post by mfranken »

The issues with authentication started a couple of days ago (after commit https://github.com/domoticz/domoticz/co ... 70319e2ef4).

A number of users are having this issue (including me). Reverting back solves the issue. I will investigate the problem.

I am using LoginBased auth with HTTPS (real cert).

I saw

Code: Select all

Error: [web:8443] missing SSL DH parameters from file .... 
in my log

and then

Code: Select all

Error: [web:8443] Failed authentication attempt, ignoring client request (remote address: ....)
Raspberry, RFX, Zwave, JeeNodes, MySensors, OTGW, Domotix iPhone App
digimate
Posts: 19
Joined: Tuesday 02 February 2016 20:20
Target OS: Raspberry Pi / ODroid
Domoticz version: lastbeta
Contact:

Re: New iOS App for domoticz

Post by digimate »

A number of users are having this issue (including me). Reverting back solves the issue. I will investigate the problem.
@mfranken: Thanks in advance!
What is the preferred/best way to logon with the domotix app? With the website-security account (works only with option Basic-Auth) or with the user account (Instellingen | Meer opties | Gebruikersinstellingen)??

@Sander: Thanks for your help! Despite still some errors in the log, the trick 'using Basic-Auth' did it for me! :)
Synology DS716+. Domotica devices (on about 30): KaKu (and other 433MHz devices), Z-Wave, Mi-Light, Xiaomi.
mfranken
Posts: 35
Joined: Saturday 15 November 2014 14:28
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Amsterdam, the Netherlands
Contact:

Re: New iOS App for domoticz

Post by mfranken »

Both methods should work, I prefer LoginBased with 'website-security account'
Raspberry, RFX, Zwave, JeeNodes, MySensors, OTGW, Domotix iPhone App
cgaudry
Posts: 8
Joined: Thursday 14 May 2015 0:50
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Rambouillet, France
Contact:

Re: New iOS App for domoticz

Post by cgaudry »

mfranken wrote:The issues with authentication started a couple of days ago (after commit https://github.com/domoticz/domoticz/co ... 70319e2ef4).

A number of users are having this issue (including me). Reverting back solves the issue. I will investigate the problem.

I am using LoginBased auth with HTTPS (real cert).

I saw

Code: Select all

Error: [web:8443] missing SSL DH parameters from file .... 
in my log

and then

Code: Select all

Error: [web:8443] Failed authentication attempt, ignoring client request (remote address: ....)

What is the issue exactly ?
Did you change the -ssl**** arguments to start domoticz ?
For you, what is the version of domoticz that works and the one that does not work ?
cgaudry
Posts: 8
Joined: Thursday 14 May 2015 0:50
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Rambouillet, France
Contact:

Re: New iOS App for domoticz

Post by cgaudry »

Dear all,

The error code 401 seems to be the HTTP status code 401 Unauthorized.
Domoticz replies HTTP 401 Unauthorized if your credentials are missing or erroneous, or the authentication request does not respect the Domoticz API.

Domoticz v2.3941 works using the default ssl arguments and Domotix v1.1.0. It also works when I use custom ssl arguments.
DomotiX uses the Login page API to login to the Domoticz server by send the request "/json.htm?param=logincheck&rememberme=true&type=command" :

Code: Select all

pi@raspberrypi ~/domoticz_test_2 $ sudo ./domoticz_test_2 -sslwww 10443
2016-03-09 23:51:07.941  Domoticz V3.4931 (c)2012-2016 GizMoCuz
2016-03-09 23:51:07.942  Build Hash: 8ede143-modified, Date: 2016-03-09 16:44:24
2016-03-09 23:51:07.942  System: Raspberry Pi
2016-03-09 23:51:07.942  Startup Path: /home/pi/domoticz_test_2/
2016-03-09 23:51:08.007  Sunrise: 07:16:00 SunSet:18:45:00
2016-03-09 23:51:08.007  EventSystem: reset all events...
2016-03-09 23:51:08.022  Active notification subsystems: (0/11)
2016-03-09 23:51:08.024  [web:8080] create server using settings : 'server_settings[is_secure_=false, listening_address='::', listening_port='8080']'
2016-03-09 23:51:08.025  WebServer(HTTP) started on address: :: with port 8080
2016-03-09 23:51:08.032  [web:10443] create ssl_server using ssl_server_settings : ssl_server_settings['server_settings[is_secure_=true, listening_address='::', listening_port='10443']', ssl_method='sslv23', certificate_chain_file_path='./server_cert.pem', ca_cert_file_path='./server_cert.pem', cert_file_path=./server_cert.pem', private_key_file_path='./server_cert.pem', private_key_pass_phrase='', options='default_workarounds,no_sslv2,single_dh_use', tmp_dh_file_path='./server_cert.pem', verify_peer=false, verify_fail_if_no_peer_cert=false, verify_file_path='']
2016-03-09 23:51:08.039  [web:10443] 'BEGIN DH PARAMETERS' found in file ./server_cert.pem
2016-03-09 23:51:08.040  WebServer(SSL) started on address: :: with port 10443
2016-03-09 23:51:08.045  Proxymanager started.
2016-03-09 23:51:08.048  Starting shared server on: :::10144
2016-03-09 23:51:08.048  TCPServer: shared server started...
2016-03-09 23:51:08.049  RxQueue: queue worker started...
2016-03-09 23:51:10.050  Domoticz Internal: Started
2016-03-09 23:51:10.051  EventSystem: reset all events...
2016-03-09 23:51:10.053  EventSystem: reset all device statuses...
2016-03-09 23:51:10.055  EventSystem: Started
2016-03-09 23:51:17.076  Incoming connection from: DOMOTIX_IP_ADDR
2016-03-09 23:51:17.269  [web:10443] no password (remote address: DOMOTIX_IP_ADDR)
2016-03-09 23:51:17.271  ::ffff:DOMOTIX_IP_ADDR -> "GET /json.htm?param=logincheck&password=d41d8cd98f00b204e9800998ecf8427e&rememberme=true&type=command&username= HTTP/1.1" 200 24
2016-03-09 23:51:17.386  [web:10443] no password (remote address: DOMOTIX_IP_ADDR)
2016-03-09 23:51:17.387  ::ffff:DOMOTIX_IP_ADDR -> "GET /json.htm?param=logincheck&password=d41d8cd98f00b204e9800998ecf8427e&rememberme=true&type=command&username= HTTP/1.1" 200 24
2016-03-09 23:51:17.391  [web:10443] no password (remote address: DOMOTIX_IP_ADDR)
2016-03-09 23:51:17.392  ::ffff:DOMOTIX_IP_ADDR -> "GET /json.htm?param=getauth&type=command HTTP/1.1" 200 95
2016-03-09 23:51:17.474  [web:10443] no password (remote address: DOMOTIX_IP_ADDR)
2016-03-09 23:51:17.475  ::ffff:DOMOTIX_IP_ADDR -> "GET /json.htm?param=getauth&type=command HTTP/1.1" 200 95
2016-03-09 23:51:17.483  [web:10443] no password (remote address: DOMOTIX_IP_ADDR)
2016-03-09 23:51:17.497  ::ffff:DOMOTIX_IP_ADDR -> "GET /json.htm?type=settings HTTP/1.1" 200 1254
2016-03-09 23:51:17.560  [web:10443] no password (remote address: DOMOTIX_IP_ADDR)
To access DomotiCZ without crashing DomotiX you only need valid credentials (empty user or password works if Domoticz allows it) and at least one switch.
jphermans
Posts: 1
Joined: Sunday 13 March 2016 7:55
Target OS: OS X
Domoticz version:
Contact:

Re: New iOS App for domoticz

Post by jphermans »

On my iPhone (5S) the app always crashes. Does not matter if i use a login/password or not.
I am using iOS 9.3 beta 6! Somebody that can help to solve the problem?

http://youtu.be/oI9ZP51ivYU
jeey
Posts: 3
Joined: Thursday 03 March 2016 22:20
Target OS: Linux
Domoticz version:
Contact:

Re: New iOS App for domoticz

Post by jeey »

Just bought the app, and noticed that it doesn't show Usage for Powermeters in dimmers and such.

Is this normal ?

The app says No Utilities found, but if i view the domoticz webui it lists all my meters.
mfranken
Posts: 35
Joined: Saturday 15 November 2014 14:28
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Amsterdam, the Netherlands
Contact:

Re: New iOS App for domoticz

Post by mfranken »

The 401 issue was a bug in Domoticz that has been fixed by gizmocuz
Raspberry, RFX, Zwave, JeeNodes, MySensors, OTGW, Domotix iPhone App
mfranken
Posts: 35
Joined: Saturday 15 November 2014 14:28
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Amsterdam, the Netherlands
Contact:

Re: New iOS App for domoticz

Post by mfranken »

HI JP,

Send me a PM or an email to [email protected] to help us resolve your issue
jphermans wrote:On my iPhone (5S) the app always crashes. Does not matter if i use a login/password or not.
I am using iOS 9.3 beta 6! Somebody that can help to solve the problem?

http://youtu.be/oI9ZP51ivYU
Raspberry, RFX, Zwave, JeeNodes, MySensors, OTGW, Domotix iPhone App
mfranken
Posts: 35
Joined: Saturday 15 November 2014 14:28
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Amsterdam, the Netherlands
Contact:

Re: New iOS App for domoticz

Post by mfranken »

Hi jeey,

Meters should be visible in the Usage tab. Send me a PM or an email to [email protected] to help us resolve your issue
jeey wrote:Just bought the app, and noticed that it doesn't show Usage for Powermeters in dimmers and such.

Is this normal ?

The app says No Utilities found, but if i view the domoticz webui it lists all my meters.
Raspberry, RFX, Zwave, JeeNodes, MySensors, OTGW, Domotix iPhone App
safi78
Posts: 204
Joined: Thursday 05 September 2013 15:39
Target OS: Linux
Domoticz version: LastBeta
Contact:

Re: New iOS App for domoticz

Post by safi78 »

Hi mfranken,

I'm interested in the 'disappearence of the Youless'-usage meters as well.

Like stated before, I have two (one for gas, one for power) that used to be 'there'.

New update made them vanish, can I help in any way?
homebridge, rfxcom, zwave, nest, applamp, hue, debian, apple, mysensors, netatmo, fibaro, synology, foscam, otherz
mfranken
Posts: 35
Joined: Saturday 15 November 2014 14:28
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Amsterdam, the Netherlands
Contact:

Re: New iOS App for domoticz

Post by mfranken »

This issue is known and has been fixed by a new version that's currently pending AppStore review.
safi78 wrote:Hi mfranken,

I'm interested in the 'disappearence of the Youless'-usage meters as well.

Like stated before, I have two (one for gas, one for power) that used to be 'there'.

New update made them vanish, can I help in any way?
Raspberry, RFX, Zwave, JeeNodes, MySensors, OTGW, Domotix iPhone App
simon_rb
Posts: 612
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: New iOS App for domoticz

Post by simon_rb »

Hi, app looks good. Any chance of an Apple Watch App?

Cheers
safi78
Posts: 204
Joined: Thursday 05 September 2013 15:39
Target OS: Linux
Domoticz version: LastBeta
Contact:

Re: New iOS App for domoticz

Post by safi78 »

Yeay! iPad support :)

Would it be possible to also support 'landscape mode' ? (My ipad on the wall is positioned like that) :)

And, I still get two Youlesses for power (while one of them is my gas-meter). Anything I'm doing wrong?

Cheers!

Sander
homebridge, rfxcom, zwave, nest, applamp, hue, debian, apple, mysensors, netatmo, fibaro, synology, foscam, otherz
mfranken
Posts: 35
Joined: Saturday 15 November 2014 14:28
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Amsterdam, the Netherlands
Contact:

Re: New iOS App for domoticz

Post by mfranken »

Hi Sander,

Landscape support is coming up! The Youless does not distinguish between gas and energy, so no way to tell the difference.
If you want me to take a closer look, send me your JSON output from domoticz.

cheers,
Michael
safi78 wrote:Yeay! iPad support :)

Would it be possible to also support 'landscape mode' ? (My ipad on the wall is positioned like that) :)

And, I still get two Youlesses for power (while one of them is my gas-meter). Anything I'm doing wrong?

Cheers!

Sander
Raspberry, RFX, Zwave, JeeNodes, MySensors, OTGW, Domotix iPhone App
safi78
Posts: 204
Joined: Thursday 05 September 2013 15:39
Target OS: Linux
Domoticz version: LastBeta
Contact:

Re: New iOS App for domoticz

Post by safi78 »

mfranken wrote:Landscape support is coming up!
Great! Looking forward to it, this is really hurting my neck ;)
mfranken wrote:The Youless does not distinguish between gas and energy, so no way to tell the difference.
If you want me to take a closer look, send me your JSON output from domoticz.
Already did that couple of months/weeks ago, somewhere here in this thread...

Thanks for the great work :)

EDIT: here it is ;) viewtopic.php?f=36&t=5052&start=100#p60065
homebridge, rfxcom, zwave, nest, applamp, hue, debian, apple, mysensors, netatmo, fibaro, synology, foscam, otherz
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest