Domoticz app 2.0 Topic is solved

Moderator: leecollings

User avatar
MarcelMAH
Posts: 53
Joined: Friday 04 December 2015 23:35
Target OS: Linux
Domoticz version: v3.8025
Location: Goes, Netherlands
Contact:

Re: Domoticz app 2.0

Post by MarcelMAH »

jvdz wrote: Wednesday 13 May 2020 9:36
galadril wrote: Wednesday 13 May 2020 8:42 Thats probably why the latest logincheck url has all the data in the POST body instead of query parameters....
If this is really the case then I would strongly advice not to use the "old" /logincheck at all and remove it from the APP, as that is a real security problem!
...and thank for adding the Basic Auth back as that is still used by many as it seems. 8-)

Jos
No, that would break al lot of older installs... he put it back in to make them work again.
Running Domoticz on Ubuntu 16.04 on VMware with RFXCOM - RFXtrx433 and Aeotec Z-Stick Gen5
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Domoticz app 2.0

Post by jvdz »

MarcelMAH wrote: Wednesday 13 May 2020 9:40 No, that would break all lot of older installs... he put it back in to make them work again.
I don't know why that would break older installations (yet, but maybe @galadril can help me here) as they can happily work with BasicAuth and get the Authorization with the GetAuth API rest call.
I honestly do not ever want my Hashed Userid and Passwords be send in a clear text url over the internet as that is a real security risk!
For the record: I am the master in running old version (v3.8793 ; v4.1062) as I am of the generation: "If it ain't broke, don't fix it".

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
User avatar
galadril
Posts: 824
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Domoticz app 2.0

Post by galadril »

jvdz wrote: Wednesday 13 May 2020 9:47
MarcelMAH wrote: Wednesday 13 May 2020 9:40 No, that would break all lot of older installs... he put it back in to make them work again.
I don't know why that would break older installations (yet, but maybe @galadril can help me here) as they can happily work with BasicAuth and get the Authorization with the GetAuth API rest call.
I honestly do not ever want my Hashed Userid and Passwords be send in a clear text url over the internet as that is a real security risk!
For the record: I am the master in running old version (v3.8793 ; v4.1062) as I am of the generation: "If it ain't broke, don't fix it".
I am going to the POST /logincheck.. but i need to think of a strategy first, so I dont' get the issues that i had before :D
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
sdmg
Posts: 8
Joined: Friday 09 February 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz app 2.0

Post by sdmg »

sdmg wrote: Sunday 10 May 2020 11:29
sdmg wrote: Sunday 10 May 2020 10:51
galadril wrote: Saturday 09 May 2020 20:34

I've build a new version and jvdz assisted me with testing, it looks to be fixed.
So within 2hours, there should be a new version in the app store v0.2.220

Let me know!
This morning I installed the latest version 0.2.220 and at least it still doesn't work. Before if it worked on plans and not on switches, now neither of them.
When I activate the switch in the app it is activated in domoticz but in the app it appears off, only if I slide to refresh the screen it is activated.

I'll keep testing.
A greeting.
After deleting the settings the following happens:

On the switch screen it doesn't work it just changes when we refresh.
The pop-up window also appears indicating the change of the switch but it has not changed in the app.

On the plans if it works screen, the pop-up window indicating the switch change does not appear on this screen.

On the dashboard screen if it works and also the pop-up window appears indicating the change of the switch.

Greetings and thank you.

Attached video with the problem I have.

https://drive.google.com/file/d/127JfbX ... h5Oj4/view

A greeting.
Kasvand
Posts: 24
Joined: Wednesday 20 September 2017 15:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz app 2.0

Post by Kasvand »

Is there any way to make the app work again with the previous version of Domoticz? I've been trying for days to get the latest build working again but it seems impossible... Every night the whole system seems to crash and all I can do is reboot the system. After that I need to go trhough a lot of trouble to get monit and domoticz back online. It's simply a disaster! The previous build was working perfectly. But now my entire smart home is unstable as hell making it totally useless... So I really want to do a rollback to hte previous version of Domoticz. But I use the app quite a lot... So, what to do??
User avatar
MarcelMAH
Posts: 53
Joined: Friday 04 December 2015 23:35
Target OS: Linux
Domoticz version: v3.8025
Location: Goes, Netherlands
Contact:

Re: Domoticz app 2.0

Post by MarcelMAH »

Kasvand wrote: Thursday 14 May 2020 23:50 Is there any way to make the app work again with the previous version of Domoticz? I've been trying for days to get the latest build working again but it seems impossible... Every night the whole system seems to crash and all I can do is reboot the system. After that I need to go trhough a lot of trouble to get monit and domoticz back online. It's simply a disaster! The previous build was working perfectly. But now my entire smart home is unstable as hell making it totally useless... So I really want to do a rollback to hte previous version of Domoticz. But I use the app quite a lot... So, what to do??
The app is working again for older versions. I'm running v3.8730...
Running Domoticz on Ubuntu 16.04 on VMware with RFXCOM - RFXtrx433 and Aeotec Z-Stick Gen5
kniazio
Posts: 198
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: Domoticz app 2.0

Post by kniazio »

For me, the application works without problems on the version V3.7243
User avatar
galadril
Posts: 824
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Domoticz app 2.0

Post by galadril »

Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
User avatar
galadril
Posts: 824
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Domoticz app 2.0

Post by galadril »

Kasvand wrote: Thursday 14 May 2020 23:50 Is there any way to make the app work again with the previous version of Domoticz? I've been trying for days to get the latest build working again but it seems impossible... Every night the whole system seems to crash and all I can do is reboot the system. After that I need to go trhough a lot of trouble to get monit and domoticz back online. It's simply a disaster! The previous build was working perfectly. But now my entire smart home is unstable as hell making it totally useless... So I really want to do a rollback to hte previous version of Domoticz. But I use the app quite a lot... So, what to do??
You could create a test user for me on your system and send me the details, to [email protected]
Ill test against your system then..

Just to check, you are on the latest android app version right..?
v0.2.223 (7499) is the current latest
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
Kasvand
Posts: 24
Joined: Wednesday 20 September 2017 15:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz app 2.0

Post by Kasvand »

galadril wrote: Friday 15 May 2020 11:01
Kasvand wrote: Thursday 14 May 2020 23:50 Is there any way to make the app work again with the previous version of Domoticz? I've been trying for days to get the latest build working again but it seems impossible... Every night the whole system seems to crash and all I can do is reboot the system. After that I need to go trhough a lot of trouble to get monit and domoticz back online. It's simply a disaster! The previous build was working perfectly. But now my entire smart home is unstable as hell making it totally useless... So I really want to do a rollback to hte previous version of Domoticz. But I use the app quite a lot... So, what to do??
You could create a test user for me on your system and send me the details, to [email protected]
Ill test against your system then..

Just to check, you are on the latest android app version right..?
v0.2.223 (7499) is the current latest
Awesome! I'm currently tryinh to fix the latest Domoticz version... One last and final attempt... If that doesn't work I'll roll back and if the app doesn't work I'll get in touch with you. Ty!
User avatar
galadril
Posts: 824
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Domoticz app 2.0

Post by galadril »

FYI

I've released a Domoticz Plug-In app for Tasker, download it now from the app store:
https://play.google.com/store/apps/deta ... icz.tasker

Forum thread:
https://www.domoticz.com/forum/viewtopi ... 31#p247531
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Domoticz app 2.0

Post by waaren »

galadril wrote: Wednesday 13 May 2020 8:43 For all users that are having issues with Basic Auth being removed.. a new hybrid version is coming (v0.2.221)
Basic auth is working again for that version.. but it prefers the session cookie basic auth.

I hope that this solves some issues for you guys
Some users do see unexpected log messages "Checkauthtoken session id not found" . See this Forum topic . Could this be related to the recent modifications in the app ?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
User avatar
galadril
Posts: 824
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Domoticz app 2.0

Post by galadril »

waaren wrote: Friday 22 May 2020 11:00 Some users do see unexpected log messages "Checkauthtoken session id not found" . See this Forum topic . Could this be related to the recent modifications in the app ?
It could be.. to handle backwards compatibilty, i've added like 3 types of fallback for authorization that i check..

first >
POST /logincheck (which is the most secure, but you need on of the latest domoticz version for that)

Then if that fails:
GET /logincheck with parameters

else
Basic Auth


If people see the weird logs, they can fix it by updating their Domoticz system version
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
User avatar
heggink
Posts: 972
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Domoticz app 2.0

Post by heggink »

Being on the latest beta (since yesterday), I still get these checkauthtoken errors...

Sent from phone.

Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Domoticz app 2.0

Post by jvdz »

Haven't figured out the scenario yet when this happens and have tested on my 2 "old" Domoticz version and the latest Prod&Beta versions and can't get it to trigger that error.
Strange thing is that @FireWizard reported getting the error while the information shown seems to suggest the SessionId was in the database shortly before the error was shown: https://www.domoticz.com/forum/viewtopi ... 07#p248580

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
User avatar
heggink
Posts: 972
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Domoticz app 2.0

Post by heggink »

My wife uses the pilot so on her iPhone. I need to disable that to see if that's an issue as well...

Sent from phone.

Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Domoticz app 2.0

Post by jvdz »

galadril wrote: Monday 25 May 2020 11:10 Then if that fails:
GET /logincheck with parameters
I still am against EVER trying to send the UserName and MD5 Hashed Password over the Internet as this is a serious Security risk!
This really needs to be taken out and only try ! and as fallback the BasicAuth method!
We should never support insecure authentication methods even when they were implemented in the past in Domoticz.
EDIT: It actually seems not needed at all to try as it is only used in the scenario where Domoticz is set to BasicAuth, so you only need to use BasicAuth as Fallback as far as I can see.

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
GerKortenbach
Posts: 8
Joined: Wednesday 02 May 2018 22:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

Re: Domoticz app 2.0

Post by GerKortenbach »

I am now on version 0.2.224 (7535) of the Domoticz app. After the problems of approx. 2 weeks ago everything worked fine again until the latest update (0.2.224). When opening the app and trying to operate one of the switches I get an error message saying "U heeft niet de juiste rechten voor deze actie" (you do not have the correct rights for this action). At first I thought I had a unusable app again, but by accident I discovered that if I close the app and immediately re-open it again, it works fine again. If you close the app and wait for a couple of minutes, the problem is back again. So now I have an app which only works with a workaround. It is annoying, but I can at least still use the app. Does anyone know what the problem behind this strange behaviour is? Any chance it gets corrected in the near future?

Ger.
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Domoticz app 2.0

Post by jvdz »

I know many different Domoticz versions and App setups are tested and working fine, so could you share the specifics of your setup like:
Domoticz:
  • Which version do you use?
  • Setting for Website Protection: BasicAuth/LoginPage
  • Setting for Local Networks:
App server connection settings:
  • HTTP/HTTPS
  • Have you filled in the UserName/Password?
  • Are you using a separate config for Local Wifi SSID's?
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
GerKortenbach
Posts: 8
Joined: Wednesday 02 May 2018 22:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

Re: Domoticz app 2.0

Post by GerKortenbach »

Thanks for your reply jvdz.

I am using Domoticz version 3.8153.
Website Protection is set at Login Page
Settings for Local Networks: 127.0.0.*;192.168.1.*

AppServer Connections:
HTTPS
Username and Password are filled in
I am using a separate config for Local WiFi SSID's.

All of these settings were checked approx 3 weeks ago, when after an update of the App it did not work anymore. Alle settings were correct at that time. The App only started working again after several updates of the App and without any remaining issues as as far as I could check. A couple of days before March 25 there has been at least one more update of the App, which I think caused the problem as I have it today, being that I cannot operate any switch anymore until I cloose the App and immediately re-open it again. Then I can operate any switch I want without problems. After a couple of minutes the problem comes back though. Please note that before the problems of approx 3 weeks ago, everything regarding the App worked fine from the beginning, never had any problem. The problems only started after the first update of the app 3 weeks ago.
By the way, I have checked both on Local WiFi and 4G, in both cases I have exactly the same problem.

Ger.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest