Page 1 of 1

Control the ESP from a Domoticz based home system

Posted: Tuesday 18 May 2021 6:06
by kaizmoto1489
hello

Re: Control the ESP from a Domoticz based home system

Posted: Tuesday 18 May 2021 8:49
by PatrickSt91
Maybe this helps?

https://www.domoticz.com/wiki/Domoticz_ ... emperature


Specify RGB and brightness (optional)
RGB as hexadecimal number, RRGGBB without prefix (no 0x or #)
/json.htm?type=command&param=setcolbrightnessvalue&idx=99&hex=RRGGBB&brightness=100&iswhite=false

Cheers,
Patrick

Re: Control the ESP from a Domoticz based home system

Posted: Tuesday 18 May 2021 14:17
by waltervl
You cannot place an RGB value from the rgb switch directly in the script url.

There are 2 ways to control color of your led strip:
1. Make a virtual selector switch with preset colors and send this to your ESP.
2. Make an RGB switch and use a DzVents script to pick up the color and send it to your ESP.

For more info see for example:
https://www.twoenter.nl/blog/en/domotic ... -domoticz/

Edit: In the dutch version of this blog user twoenter also mentions the DzVents script https://www.twoenter.nl/blog/domoticz/r ... -domoticz/