Page 103 of 120

Re: Domoticz app 2.0

Posted: Friday 08 May 2020 13:15
by jvdz
galadril wrote: Friday 08 May 2020 12:52 [Great you can remove the logincheck file then as well
Had done that already. I see it does still do the call to:
Request, GET /json.htm, Query:type=command&param=logincheck&username=&password=d41d8cd98f00b204e9800998ecf8427e
... but all does seem to work fine now. Will do some more testing and let you know in case I find other issues.
Cheers, Jos

In case you are interested, this is the conversation i see starting the APP and Switching one light ON and OFF.
Spoiler: show
192.168._Android -> 192.168.Domoticz Request, GET /json.htm, Query:type=command&param=logincheck&username=&password=d41d8cd98f00b204e9800998ecf8427e
192.168._Android -> 192.168.Domoticz Request, GET /json.htm, Query:type=command&param=getauth
192.168._Android <- 192.168.Domoticz Response, HTTP/1.1, Status: Ok, URL: /json.htm OK
192.168._Android <- 192.168.Domoticz Response, HTTP/1.1, Status: Ok, URL: /json.htm OK
192.168._Android -> 192.168.Domoticz Request, GET /json.htm, Query:type=command&param=getconfig
192.168._Android <- 192.168.Domoticz Response, HTTP/1.1, Status: Ok, URL: /json.htm OK
192.168._Android -> 192.168.Domoticz Request, GET /json.htm, Query:type=command&param=getconfig
192.168._Android -> 192.168.Domoticz Request, GET /json.htm, Query:type=users
192.168._Android <- 192.168.Domoticz Response, HTTP/1.1, Status: Ok, URL: /json.htm OK
192.168._Android <- 192.168.Domoticz Response, HTTP/1.1, Status: Ok, URL: /json.htm OK
192.168._Android -> 192.168.Domoticz Request, GET /json.htm, Query:type=users
192.168._Android -> 192.168.Domoticz Request, GET /json.htm, Query:type=command&param=deletemobiledevice&uuid=abc
192.168._Android <- 192.168.Domoticz Response, HTTP/1.1, Status: Ok, URL: /json.htm OK
192.168._Android <- 192.168.Domoticz Response, HTTP/1.1, Status: Ok, URL: /json.htm OK
192.168._Android -> 192.168.Domoticz Request, GET /json.htm, Query:type=command&param=addmobiledevice&uuid=abc&senderid=-snip-&name=SM-G9
192.168._Android <- 192.168.Domoticz Response, HTTP/1.1, Status: Ok, URL: /json.htm OK
192.168._Android -> 192.168.Domoticz Request, GET /json.htm, Query:type=plans
192.168._Android <- 192.168.Domoticz Response, HTTP/1.1, Status: Ok, URL: /json.htm OK
192.168._Android -> 192.168.Domoticz Request, GET /json.htm, Query:type=devices&filter=all&used=true&favorite=1&plan=2
192.168._Android <- 192.168.Domoticz Response, HTTP/1.1, Status: Ok, URL: /json.htm OK
192.168._Android -> 192.168.Domoticz Request, GET /json.htm, Query:type=command&param=switchlight&idx=413&switchcmd=On&passcode=
192.168._Android <- 192.168.Domoticz Response, HTTP/1.1, Status: Ok, URL: /json.htm OK
192.168._Android -> 192.168.Domoticz Request, GET /json.htm, Query:type=devices&filter=all&used=true&favorite=1&plan=2
192.168._Android <- 192.168.Domoticz Response, HTTP/1.1, Status: Ok, URL: /json.htm OK
192.168._Android -> 192.168.Domoticz Request, GET /json.htm, Query:type=command&param=switchlight&idx=413&switchcmd=Off&passcode=
192.168._Android <- 192.168.Domoticz Response, HTTP/1.1, Status: Ok, URL: /json.htm OK
192.168._Android -> 192.168.Domoticz Request, GET /json.htm, Query:type=devices&filter=all&used=true&favorite=1&plan=2
192.168._Android <- 192.168.Domoticz Response, HTTP/1.1, Status: Ok, URL: /json.htm OK

Re: Domoticz app 2.0

Posted: Friday 08 May 2020 14:26
by galadril
192.168._Android -> 192.168.Domoticz Request, GET /json.htm, Query:type=command&param=getconfig
192.168._Android -> 192.168.Domoticz Request, GET /json.htm, Query:type=command&param=getconfig
192.168._Android -> 192.168.Domoticz Request, GET /json.htm, Query:type=users
192.168._Android -> 192.168.Domoticz Request, GET /json.htm, Query:type=users

twice... hmmm

Re: Domoticz app 2.0

Posted: Friday 08 May 2020 15:02
by jvdz
galadril wrote: Friday 08 May 2020 14:26 twice... hmmm
yep... just checked and it does that indeed. There are actually multiple duplicate calls in de capture, but....
I have had it 2 times that when switching to the APP after having it closed by using the back key, the switching didn't work anymore and had to stop the APP and start it again.
So while trying to sort this out what the condition is, it seems that you have a race condition in the logic. The 2 initial API REST calls are:

Code: Select all

192.168._Android -> 192.168.Domoticz  Request, GET /json.htm, Query:type=command&param=getauth		
192.168._Android -> 192.168.Domoticz  Request, GET /json.htm, Query:type=command&param=logincheck&username=&password=d41d8cd98f00b204e9800998ecf8427e		
In case the getauth call returns last things work fine, but when returned first, the switches are disabled. So this happens when getauth gets (0xCE02) assigned in the below packet capture dump.
This are the packet capture details of the 3 capture sequences... 2 working and the last one failing.

Code: Select all

--- Start 1 -- working
192.168._Android	52740 (0xCE04)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=command&param=getauth		
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=command&param=logincheck&username=&password=d41d8cd98f00b204e9800998ecf8427e		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52740 (0xCE04)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=command&param=getconfig		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=command&param=getconfig		
192.168._Android	52740 (0xCE04)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=users		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52740 (0xCE04)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=users		
192.168._Android	52740 (0xCE04)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=command&param=deletemobiledevice&uuid=ebbc8ba28d52ded7		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52740 (0xCE04)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168._Android	52742 (0xCE06)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=plans		
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=command&param=addmobiledevice&uuid=ebbc8ba28d52ded7&senderid=-snip-&name=SM-G9		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52742 (0xCE06)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=devices&filter=all&used=true&favorite=1&plan=2		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=command&param=switchlight&idx=449&switchcmd=On&passcode=		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=devices&filter=all&used=true&favorite=1&plan=2		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=command&param=switchlight&idx=449&switchcmd=Off&passcode=		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=devices&filter=all&used=true&favorite=1&plan=2		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	

--- Start 2 -- working
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=command&param=logincheck&username=&password=d41d8cd98f00b204e9800998ecf8427e		
192.168._Android	52740 (0xCE04)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=command&param=getauth		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52740 (0xCE04)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=command&param=getconfig		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=command&param=getconfig		
192.168._Android	52740 (0xCE04)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=users		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52740 (0xCE04)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=users		
192.168._Android	52740 (0xCE04)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=command&param=deletemobiledevice&uuid=ebbc8ba28d52ded7		
192.168._Android	52742 (0xCE06)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=plans		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52740 (0xCE04)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52742 (0xCE06)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=command&param=addmobiledevice&uuid=ebbc8ba28d52ded7&senderid=-snip-&name=SM-G9		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=devices&filter=all&used=true&favorite=1&plan=2		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=command&param=switchlight&idx=449&switchcmd=On&passcode=		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=devices&filter=all&used=true&favorite=1&plan=2		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=command&param=switchlight&idx=449&switchcmd=Off&passcode=		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=devices&filter=all&used=true&favorite=1&plan=2		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	


--- Start 3 -- NOT working
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=command&param=getauth		
192.168._Android	52740 (0xCE04)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=command&param=logincheck&username=&password=d41d8cd98f00b204e9800998ecf8427e		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52740 (0xCE04)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=command&param=getconfig		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=command&param=getconfig		
192.168._Android	52740 (0xCE04)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=users		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52740 (0xCE04)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=users		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168._Android	52740 (0xCE04)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=command&param=deletemobiledevice&uuid=ebbc8ba28d52ded7		
192.168._Android	52742 (0xCE06)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=plans		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52740 (0xCE04)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52742 (0xCE06)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=command&param=addmobiledevice&uuid=ebbc8ba28d52ded7&senderid=-snip-&name=SM-G9		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=devices&filter=all&used=true&favorite=1&plan=2		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=devices&filter=all&used=true&favorite=1&plan=2		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	
192.168._Android	52738 (0xCE02)	192.168.Domoticz	8080 (0x1F90)	Request, GET /json.htm, Query:type=devices&filter=all&used=true&favorite=1&plan=2		
192.168.Domoticz	8080 (0x1F90)	192.168._Android	52738 (0xCE02)	Response, HTTP/1.1, Status: Ok, URL: /json.htm	OK	

I have been able to get this result now a couple of times with each time the same conclusion.

Jos

Re: Domoticz app 2.0

Posted: Friday 08 May 2020 16:23
by galadril
Its weird.. because i only the the getauth call on 1 place in the app.. and its only needed when the logincheck didn't returned the rights for a user..
That happens if you don't have a username/password specified for login.

I'm going to take some time to fix that, not just a quicky that could kill more than it fixes :D

Re: Domoticz app 2.0

Posted: Friday 08 May 2020 16:49
by jvdz
Correct... In the APP i have defined HTTP ipaddress Port and left the username and password empty.
The 2 API rest calls are made async as you can see in the dump.
Let me know when you like me to test anything and create the connection dump as shown.
I can test against these Domoticz releases: v2020.1 ; v3.8793 and v4.1062.
I am also reachable on Email in case that helps. jvdzande at yahoo....

Jos

Re: Domoticz app 2.0

Posted: Friday 08 May 2020 18:13
by RezaRose
I have bought the domoticz app for the geofence option. But it only tells me that i have arrived home. Not that I leave. The switch stays on to. Does not matter if set it on 20m or 200m.

Anyone ideas?

Re: Domoticz app 2.0

Posted: Friday 08 May 2020 18:17
by sammyke007
RezaRose wrote: Friday 08 May 2020 18:13 I have bought the domoticz app for the geofence option. But it only tells me that i have arrived home. Not that I leave. The switch stays on to. Does not matter if set it on 20m or 200m.

Anyone ideas?
Sounds like your Domoticz is not accessible from outside your home network.
Can you control devices when you're not at home (or turn off wifi and try to connect while being on data/3G/4G)? If you connect to Domoticz using a 192.168.... address, then it's only accessible from within your home network. That could be the reason you can't toggle as "Away" or "Off" as you are gone from your internal wifi by then and can't communicate with Domoticz.
Bring your Domoticz outside (external ip:8080 or :443 and port forwarding) or setup a VPN-connection to your home network.

Re: Domoticz app 2.0

Posted: Friday 08 May 2020 18:53
by RezaRose
sammyke007 wrote: Friday 08 May 2020 18:17
RezaRose wrote: Friday 08 May 2020 18:13 I have bought the domoticz app for the geofence option. But it only tells me that i have arrived home. Not that I leave. The switch stays on to. Does not matter if set it on 20m or 200m.

Anyone ideas?
Sounds like your Domoticz is not accessible from outside your home network.
Can you control devices when you're not at home (or turn off wifi and try to connect while being on data/3G/4G)? If you connect to Domoticz using a 192.168.... address, then it's only accessible from within your home network. That could be the reason you can't toggle as "Away" or "Off" as you are gone from your internal wifi by then and can't communicate with Domoticz.
Bring your Domoticz outside (external ip:8080 or :443 and port forwarding) or setup a VPN-connection to your home network.

Thanks I did not think of that! But I can access domoticz with my ddns and SSL port on 4g. And I can switch my lights etc. I just checked. When I switch from wifi to 4g then I get a message that I am home. Maybe that has something to do with it.

Re: Domoticz app 2.0

Posted: Friday 08 May 2020 19:42
by sammyke007
So in the Domoticz app > server settings: do you connect to your dyndns:443 over there? Or do you have another server address setup for your home network?

Are you able to use the app both while connected to your home network (wifi or VPN) and outside of your network (at work, ...)?

Re: Domoticz app 2.0

Posted: Friday 08 May 2020 21:02
by RezaRose
Yes.

I have two networks configured in the app. One for inside. 192.168 on 8080 and one for outside my network with ddns.

Re: Domoticz app 2.0

Posted: Friday 08 May 2020 21:03
by RezaRose
Yes.

I have two networks configured in the app. One for inside. 192.168 on 8080 and one for outside my network with ddns.

Re: Domoticz app 2.0

Posted: Saturday 09 May 2020 7:03
by dheuts
Thanks for the New app, Looking good. But Since the New App I have a problem on my iphone. I can turn switches on and off, but when I click the glass, nothing happens. Search is not opende. Also when I hold a device, nothing happens. I expected extra options like log.

Tried with the demo server, same problems. Also Tried to remove and reinstall a coupe of times. Even Tried the Newest version on Testflight.... Still the same problems.

Any idea how to fix this?

Re: Domoticz app 2.0

Posted: Saturday 09 May 2020 8:49
by sammyke007
dheuts wrote: Saturday 09 May 2020 7:03 Thanks for the New app, Looking good. But Since the New App I have a problem on my iphone. I can turn switches on and off, but when I click the glass, nothing happens. Search is not opende. Also when I hold a device, nothing happens. I expected extra options like log.

Tried with the demo server, same problems. Also Tried to remove and reinstall a coupe of times. Even Tried the Newest version on Testflight.... Still the same problems.

Any idea how to fix this?
This is the Android app topic :P
You're looking for this topic:
https://www.domoticz.com/forum/viewtopi ... 36&t=17025

Re: Domoticz app 2.0

Posted: Saturday 09 May 2020 8:52
by sammyke007
RezaRose wrote: Friday 08 May 2020 21:03 Yes.

I have two networks configured in the app. One for inside. 192.168 on 8080 and one for outside my network with ddns.
Reza, is it possible to configure only your ddns? This is not always an option because of NAT loopback (connecting to your home network using an external IP/DDNS from within your home network). I had to configure some settings in my Asus router, but that's how I do it and it's been working fine for a long time.

Re: Domoticz app 2.0

Posted: Saturday 09 May 2020 9:14
by galadril
Does anyone still have issues with devices not being able to toggle with the last version?

Re: Domoticz app 2.0

Posted: Saturday 09 May 2020 9:36
by sammyke007
I should have kept my mouth shut... Since the last 2 or 3 updates it appears that my Domoticz app forcecloses upon opening. Investigating... I didn't change any of my settings.

-Domoticz 2020.1 and latest 0.2.219 (7436)
-Started since 0.2.215 or so I think
-Demo is working
-App data wipe and cache wipe, starting with fresh config (not importing) is working. Might be the widgets, but I understand that this is not officialy supported anymore, so I will create my widgets again, no problem!

Re: Domoticz app 2.0

Posted: Saturday 09 May 2020 9:42
by jvdz
galadril wrote: Saturday 09 May 2020 9:14 Does anyone still have issues with devices not being able to toggle with the last version?
It still goes wrong here every other time I try.

Re: Domoticz app 2.0

Posted: Saturday 09 May 2020 9:45
by galadril
jvdz wrote: Saturday 09 May 2020 9:42
galadril wrote: Saturday 09 May 2020 9:14 Does anyone still have issues with devices not being able to toggle with the last version?
It still goes wrong here every other time I try.
It goes wrong on startup, or on toggle switches?
As i have really no issues here at my system..

Re: Domoticz app 2.0

Posted: Saturday 09 May 2020 9:58
by RezaRose
sammyke007 wrote: Saturday 09 May 2020 8:52

Reza, is it possible to configure only your ddns? This is not always an option because of NAT loopback (connecting to your home network using an external IP/DDNS from within your home network). I had to configure some settings in my Asus router, but that's how I do it and it's been working fine for a long time.
I will try that today!

Re: Domoticz app 2.0

Posted: Saturday 09 May 2020 10:54
by jvdz
galadril wrote: Saturday 09 May 2020 9:45
jvdz wrote: Saturday 09 May 2020 9:42
galadril wrote: Saturday 09 May 2020 9:14 Does anyone still have issues with devices not being able to toggle with the last version?
It still goes wrong here every other time I try.
It goes wrong on startup, or on toggle switches?
As i have really no issues here at my system..
I described the scenario in my long post with the dumps. So each time I have the App start from scratch by totally going out using the back key each time.
I start the app, got into a room and press the on and then the off button. The captures describe the difference.
I can imagine that some might not see any issue as it look like a race condition at startup retrieving the users rights with the 2 described calls.