setcolor results in openurl 0.0.0.0:80 [solved with workarround]

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

ravaoo
Posts: 39
Joined: Friday 14 October 2022 10:46
Target OS: NAS (Synology & others)
Domoticz version: 2024-7
Location: Nederland
Contact:

Re: setcolor results in openurl 0.0.0.0:80

Post by ravaoo »

Kedi wrote: Monday 25 March 2024 11:40 What's the output of

Code: Select all

sudo docker ps -a
when you ssh into your NAS
it should be something like

Code: Select all

0f788fe90201   domoticz/domoticz:latest             "docker-entrypoint.s…"   45 hours ago    Up 45 hours             443/tcp, 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp
Special IP 0.0.0.0:<port> should be present.
Output of

Code: Select all

73529c86a201 domoticz/domoticz:latest "docker-entrypoint.s…" 30 seconds ago Up 28 seconds 443/tcp, 8080/tcp, 0.0.0.0:8082->80/tcp, :::8082->80/tcp domoticz
Running latest BETA on on Docker (Container Manager) in Synology NAS using zwave_js_ui with mqtt. Getting started with homebridge.

Living in an automated house is a survival but it is worth it
User avatar
waltervl
Posts: 5847
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: setcolor results in openurl 0.0.0.0:80

Post by waltervl »

You could try to add 127.0.0.* in the Domoticz trusted network settings.
Perhaps also add localhost.
Also be sure you do not have spaces in the trusted network list of IP's
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Kedi
Posts: 575
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: setcolor results in openurl 0.0.0.0:80

Post by Kedi »

What docker version are you running?

Code: Select all

sudo docker --version
I have version 20 and version 25 running. An upgrade from version 25 to 26 gave some problems with my Raspberry Pi4B (64 bits), so I reverted back to 25.
Logic will get you from A to B. Imagination will take you everywhere.
Kedi
Posts: 575
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: setcolor results in openurl 0.0.0.0:80

Post by Kedi »

I ran netstat -tulpn inside the container and I got this response.
25.03.2024_18.53.54_REC.png
25.03.2024_18.53.54_REC.png (15.84 KiB) Viewed 447 times
Perhaps you could check if it is somewhat the same.
If you do not have netstat available, install it inside the container with:

Code: Select all

apt-get install net-tools
Logic will get you from A to B. Imagination will take you everywhere.
ravaoo
Posts: 39
Joined: Friday 14 October 2022 10:46
Target OS: NAS (Synology & others)
Domoticz version: 2024-7
Location: Nederland
Contact:

Re: setcolor results in openurl 0.0.0.0:80

Post by ravaoo »

Kedi wrote: Monday 25 March 2024 18:38 What docker version are you running?

Code: Select all

sudo docker --version
I have version 20 and version 25 running. An upgrade from version 25 to 26 gave some problems with my Raspberry Pi4B (64 bits), so I reverted back to 25.
i run version : Docker version 20.10.23, build 876964a (is part of container manager on synology nas)
Running latest BETA on on Docker (Container Manager) in Synology NAS using zwave_js_ui with mqtt. Getting started with homebridge.

Living in an automated house is a survival but it is worth it
ravaoo
Posts: 39
Joined: Friday 14 October 2022 10:46
Target OS: NAS (Synology & others)
Domoticz version: 2024-7
Location: Nederland
Contact:

Re: setcolor results in openurl 0.0.0.0:80

Post by ravaoo »

I cant install net-tools. Maybe this is related to my problem
Running latest BETA on on Docker (Container Manager) in Synology NAS using zwave_js_ui with mqtt. Getting started with homebridge.

Living in an automated house is a survival but it is worth it
Kedi
Posts: 575
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: setcolor results in openurl 0.0.0.0:80

Post by Kedi »

You should be able to install net-tools inside the container, because I use the same, and it was no problem with my container.
Search for: docker bash into container to know how. e.g. sudo docker exec -it <mycontainer> bash
I also have in one of my setups Domoticz running in Docker on my Synology NAS.
Logic will get you from A to B. Imagination will take you everywhere.
User avatar
waltervl
Posts: 5847
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: setcolor results in openurl 0.0.0.0:80

Post by waltervl »

Again, what are your trusted network settings? If not correct you get the same error....
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
ravaoo
Posts: 39
Joined: Friday 14 October 2022 10:46
Target OS: NAS (Synology & others)
Domoticz version: 2024-7
Location: Nederland
Contact:

Re: setcolor results in openurl 0.0.0.0:80

Post by ravaoo »

waltervl wrote: Tuesday 26 March 2024 16:02 Again, what are your trusted network settings? If not correct you get the same error....
I tried the folowing settings:
172.20.0.*
0.0.0.0
172.20.0.*,127.0.0.*
127.0.0.*
172.20.0.*,127.0.0.*,0.0.0.0,local
local
local,LOCAL
172.20.0.*,127.0.0.*,0.0.0.0,local,LOCAL
also <blank>
All with the same error
Running latest BETA on on Docker (Container Manager) in Synology NAS using zwave_js_ui with mqtt. Getting started with homebridge.

Living in an automated house is a survival but it is worth it
ravaoo
Posts: 39
Joined: Friday 14 October 2022 10:46
Target OS: NAS (Synology & others)
Domoticz version: 2024-7
Location: Nederland
Contact:

Re: setcolor results in openurl 0.0.0.0:80

Post by ravaoo »

I don't understand wat is the problem but found a way around it by using the Hue API.

Code: Select all

	domoticz.openURL({
        url = 'https://10.1.2.52/api/xxx/lights/17/state',
				method = 'PUT',
				postData = { on = true, sat = 254 , bri = 254 , hue = 1000 },
				callback = 'return', 
			})
I now can change color of my lamp. I made a color tabel to choose the right hue value.
Running latest BETA on on Docker (Container Manager) in Synology NAS using zwave_js_ui with mqtt. Getting started with homebridge.

Living in an automated house is a survival but it is worth it
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest