Page 1 of 1

color temperature switch.

Posted: Tuesday 15 December 2020 18:30
by OedzesG
Im looking for a dummy switch with only dimmer en colortemp. setting.
The only options when adding hardware is with RGBWW.

Am i missing something?

I know it is possible, becouse i have this device in Zigbee2Mqtt plugin.

Re: color temperature switch.

Posted: Tuesday 15 December 2020 21:15
by waaren
OedzesG wrote: Tuesday 15 December 2020 18:30 Im looking for a dummy switch with only dimmer en colortemp. setting.
The only options when adding hardware is with RGBWW.

Am i missing something?

I know it is possible, becouse i have this device in Zigbee2Mqtt plugin.
Thx for reporting. There seems not to be a standard way yet. I will create a PR for it but until the PR is merged into Beta you can do it with

Method 1:

In your browser address bar:

Code: Select all

http://<domoticz IP:domoticz port>/json.htm?type=createdevice&idx=<idx of your dummy hardware>&sensorname=<name of the new device>&sensormappedtype=0xF108
Method 2:
Define a virtual device as switch in the GUI
Write down the created <idx>

Code: Select all

sudo service domoticz stop
cd <domoticz dir>
sudo cp domoticz.db domoticz.keep # just to be sure
sudo sqlite3 domoticz.db
sqlite> update devicestatus set subtype = 8, type = 241, switchType = 7 where id = <idx>;
.quit
sudo service domoticz start

Re: color temperature switch.

Posted: Wednesday 16 December 2020 11:05
by OedzesG
Method 1:

In your browser address bar:
Thnx @waaren, this one did the job..

Re: color temperature switch.

Posted: Wednesday 16 December 2020 11:35
by waaren
OedzesG wrote: Wednesday 16 December 2020 11:05
Method 1:

In your browser address bar:
this one did the job..
WW Switch type now available in virtual device picklist (Beta V2020.2 build 12742)