etsach / espmilighthub-domoticz

Domoticz Plugin for controlling the ESP Milight Hib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DiscoMode + Brigthness

poudenes opened this issue · comments

Hi,

I discover that when you want use setDiscoMode() in combination with .dimTo() this not work.
It sends only the setDiscoMode() command to Milight Hub. I checked and it is possible to do this in 1 command

root@raspberrypi:~# mosquitto_pub -h 127.0.0.1 -p 1883 -u poudenes -P XXXXX -t "milight/0xAAAF/rgb_cct/0" -m '{"state":"ON",'mode': 0, 'brightness': 1}'
root@raspberrypi:~# mosquitto_pub -h 127.0.0.1 -p 1883 -u poudenes -P XXXXX -t "milight/0xAAAF/rgb_cct/0" -m '{"state":"ON",'mode': 0, 'brightness': 255}'

De person behind dzVents confirm me that this will also send to MQTT with dzVents, but maybe the plugin don't support this yet.