Dashticz not working need help

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
sailmich
Posts: 235
Joined: Wednesday 17 February 2016 22:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Germany
Contact:

Dashticz not working need help

Post by sailmich »

Happy new year!
I'm not sure if it is a bug in domoticz, dashticz or something wrong with my RPi4
I run domoticz beta and dashticz beta on the same RPi 4 for months. After an update of domoticz in the last days I got "error for more help visit Dashticz v3 documentation" on my wall tablet. I usually work with domoticz on my phone, after trying open dashticz on my phone I got the same fault. I tried also open dashticz on my notebook with firefox. Sometimes dashticz get open sometimes not. I checked with developer console in firefox this delivers an error at logincheck. Could this be the cause?
Domoticz and dashticz are on newest beta. RPi 4 is updated too.
Bildschirmfoto vom 2025-01-01 11-58-39-obfuscated.png
Bildschirmfoto vom 2025-01-01 11-58-39-obfuscated.png (42.83 KiB) Viewed 295 times
Any help appreciated.
Lokonli
Posts: 2271
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz not working need help

Post by Lokonli »

sailmich wrote: Wednesday 01 January 2025 12:51 Happy new year!
I'm not sure if it is a bug in domoticz, dashticz or something wrong with my RPi4
I run domoticz beta and dashticz beta on the same RPi 4 for months. After an update of domoticz in the last days I got "error for more help visit Dashticz v3 documentation" on my wall tablet. I usually work with domoticz on my phone, after trying open dashticz on my phone I got the same fault. I tried also open dashticz on my notebook with firefox. Sometimes dashticz get open sometimes not. I checked with developer console in firefox this delivers an error at logincheck. Could this be the cause?
Domoticz and dashticz are on newest beta. RPi 4 is updated too.
Bildschirmfoto vom 2025-01-01 11-58-39-obfuscated.png
Any help appreciated.
If you've updated from an older Domoticz version then this probably is caused by changes in Domoticz authentication mechanisms.

In Domoticz you have to add the IP address, or subnet, of your Dashticz notebook to Domoticz->Settings->Security->Trusted network.

Or add the correct Domoticz user name and password to your Dashticz CONFIG.js.

You also have to update Dashticz to a recent version (latest master or beta will work)
sailmich
Posts: 235
Joined: Wednesday 17 February 2016 22:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Germany
Contact:

Re: Dashticz not working need help

Post by sailmich »

In Domoticz you have to add the IP address, or subnet, of your Dashticz notebook to Domoticz->Settings->Security->Trusted network.

Or add the correct Domoticz user name and password to your Dashticz CONFIG.js.

You also have to update Dashticz to a recent version (latest master or beta will work)
Hello Lokonli,
thx für answering, but all of this I already have before the issue appered. It's in the trusted network, user name and password are in CONFIG.js and dashticz is newest version.
pquinqu
Posts: 2
Joined: Wednesday 01 January 2025 19:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: France
Contact:

Re: Dashticz not working need help

Post by pquinqu »

Hi, this is m'y first post here.
I had the same issue few days ago.
Into the debugger, I noticed a timeout on the initial loading of Dashticz, when requesting all domoticz devices with a web socket connection in domoticz_api.is.
Setting enable_websocket to false in the config section of the CONFIG.js file fixed the issue for me.
It seems that a parseFloat on the Domoticz version enable websockets and this doesn't work in my nginx docker conf.
Hope that help. Have a nice year
Phil
Lokonli
Posts: 2271
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz not working need help

Post by Lokonli »

Can you post the log info (user messages) from DevTools?
User avatar
waltervl
Posts: 5376
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Dashticz not working need help

Post by waltervl »

Lokonli wrote: Wednesday 01 January 2025 20:03 Can you post the log info (user messages) from DevTools?
Warning, in latest beta the API backward compatibility code has been removed. Perhaps this is causing some issues.....
https://github.com/domoticz/domoticz/co ... dfa0c48375
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
pquinqu
Posts: 2
Joined: Wednesday 01 January 2025 19:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: France
Contact:

Re: Dashticz not working need help

Post by pquinqu »

waltervl wrote: Wednesday 01 January 2025 21:21
Lokonli wrote: Wednesday 01 January 2025 20:03 Can you post the log info (user messages) from DevTools?
Warning, in latest beta the API backward compatibility code has been removed. Perhaps this is causing some issues.....
https://github.com/domoticz/domoticz/co ... dfa0c48375
Hi lokonli, waltervl,
Can you consider my post above. I fixed the issue with config["enable_websocket"]=false in the CONFIG.js dashticz file.
It seems that Dashticz try to establish a websocket connection to Domoticz after parsing 2024.7 domoticz version, which enables websockets.
The promise fails in timeout as it's in pending state in domoticz_api.js.
I am not fluent in js, but I guess this is the issue.
Say me if I'm wrong
Phil
Lokonli
Posts: 2271
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz not working need help

Post by Lokonli »

pquinqu wrote: Wednesday 01 January 2025 21:59
waltervl wrote: Wednesday 01 January 2025 21:21
Lokonli wrote: Wednesday 01 January 2025 20:03 Can you post the log info (user messages) from DevTools?
Warning, in latest beta the API backward compatibility code has been removed. Perhaps this is causing some issues.....
https://github.com/domoticz/domoticz/co ... dfa0c48375
Hi lokonli, waltervl,
Can you consider my post above. I fixed the issue with config["enable_websocket"]=false in the CONFIG.js dashticz file.
It seems that Dashticz try to establish a websocket connection to Domoticz after parsing 2024.7 domoticz version, which enables websockets.
The promise fails in timeout as it's in pending state in domoticz_api.js.
I am not fluent in js, but I guess this is the issue.
Say me if I'm wrong
Phil
Because of a recent Domoticz change indeed the websocket interface in Dashticz is broken.

Work around as posted by Phil is to add the following to CONFIG.js:

Code: Select all

config["enable_websocket"]=false
I'll analyze the issue.
sailmich
Posts: 235
Joined: Wednesday 17 February 2016 22:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Germany
Contact:

Re: Dashticz not working need help

Post by sailmich »

Thank you very much to all of you! It's working with the work around.
Cheers
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 0 guests