color temperature switch.

Moderator: leecollings

Post Reply
OedzesG
Posts: 106
Joined: Monday 11 March 2019 0:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

color temperature switch.

Post 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.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: color temperature switch.

Post 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
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
OedzesG
Posts: 106
Joined: Monday 11 March 2019 0:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: color temperature switch.

Post by OedzesG »

Method 1:

In your browser address bar:
Thnx @waaren, this one did the job..
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: color temperature switch.

Post 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)
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest