Page 1 of 1

RGB Selector dont work by me.

Posted: Saturday 13 February 2021 19:22
by salopette
Hello, I am trying to create a selector for the colors of the lamp, but it always gives an error.

If I enter the addresses in the browser, it is switched correctly, but it does not work in the Selectror switch.
Can anyone help me further?

Re: RGB Selector dont work by me.

Posted: Wednesday 17 February 2021 17:31
by salopette
can someone please help me?

Re: RGB Selector dont work by me.

Posted: Wednesday 17 February 2021 18:39
by waaren
salopette wrote: Wednesday 17 February 2021 17:31 can someone please help me?
You need 3 /// when using it like this.

So something like

Code: Select all

http:///dz:8084/json.htm?type=command&param=setcolbrightnessvalue&idx=3481&color={%22m%22:3,%22t%22:0,%22r%22:255,%22g%22:91,%22b%22:85,%22cw%22:0,%22ww%22:0}&brightness=3

Re: RGB Selector dont work by me.

Posted: Wednesday 17 February 2021 18:47
by salopette
Hi, I don't quite understand!
I take the link for the color / brightness change from Chrome in develop mode.

Code: Select all

2021-02-17 18:51:03.306 Status: User: salopette (IP: 83.135.91.243) initiated a switch command (11917/Sauna-Color/Set Level)
2021-02-17 18:51:03.517 Error: Error opening url: http://192.168.178.37:8089/json.htm?type=command&param=setcolbrightnessvalue&idx=486&color={%22m%22:3,%22t%22:0,%22r%22:255,%22g%22:137,%22b%22:0,%22cw%22:0,%22ww%22:0}&brightness=100
2021-02-17 18:51:06.017 Dummy: Light/Switch (Sauna-Color)
2021-02-17 18:51:06.007 Status: User: salopette (IP: 83.135.91.243) initiated a switch command (11917/Sauna-Color/Set Level)
2021-02-17 18:51:06.248 Error: Error opening url: http://192.168.178.37:8089/json.htm?type=command&param=setcolbrightnessvalue&idx=486&color={%22m%22:3,%22t%22:0,%22r%22:255,%22g%22:137,%22b%22:0,%22cw%22:0,%22ww%22:0}&brightness=100
2021-02-17 18:51:07.588 Dummy: Light/Switch (Sauna-Color)
2021-02-17 18:51:07.580 Status: User: salopette (IP: 83.135.91.243) initiated a switch command (11917/Sauna-Color/Set Level)
2021-02-17 18:51:07.819 Error: Error opening url: http://192.168.178.37:8089/json.htm?type=command&param=setcolbrightnessvalue&idx=486&color={%22m%22:3,%22t%22:0,%22r%22:255,%22g%22:137,%22b%22:0,%22cw%22:0,%22ww%22:0}&brightness=100
2021-02-17 18:51:09.259 Dummy: Light/Switch (Sauna-Color)
2021-02-17 18:51:09.246 Status: User: salopette (IP: 83.135.91.243) initiated a switch command (11917/Sauna-Color/Set Level)
2021-02-17 18:51:09.463 Error: Error opening url: http://192.168.178.37:8089/json.htm?type=command&param=setcolbrightnessvalue&idx=486&color={%22m%22:3,%22t%22:0,%22r%22:255,%22g%22:137,%22b%22:0,%22cw%22:0,%22ww%22:0}&brightness=100
2021-02-17 18:51:10.738 Dummy: Light/Switch (Sauna-Color)
2021-02-17 18:51:10.730 Status: User: salopette (IP: 83.135.91.243) initiated a switch command (11917/Sauna-Color/Set Level)
2021-02-17 18:51:10.949 Error: Error opening url: http://192.168.178.37:8089/json.htm?type=command&param=setcolbrightnessvalue&idx=486&color={%22m%22:3,%22t%22:0,%22r%22:255,%22g%22:137,%22b%22:0,%22cw%22:0,%22ww%22:0}&brightness=100

Re: RGB Selector dont work by me.

Posted: Wednesday 17 February 2021 19:37
by waaren
salopette wrote: Wednesday 17 February 2021 18:47 Hi, I don't quite understand!
Not much to understand. Just add the extra /
selector.png
selector.png (38.44 KiB) Viewed 434 times