Hope there is someone out here how can help me with updating switches from MQTT domoticz in.
I succeed connecting Domoticz with MQTT, also with dummy devices to gave my control to my light group.
But for some light groups i not only use Domoticz but also the philips HUE remote dimmer.
The binding is happening in the Zigbee2mqtt frontend (web ui) this all works amazing!
But after changing the state with the remote dimmer, the dummy state in Domoticz is not up to date.
I tried in node-red to let the group trigger a flow and send then the correct "new" data back to Domoticz, but when the dummy is updating it also activates the flow for controling the group.. so i smash everything in a loop...


Also i tried to use the uservariables and then with dzvents update the dummy switch and thinking maybe i could use .siltent() but i guess becouse node-red is outsite of domoticz .siltent is not working and the loop started again.
So every solution to update the switch without trigger would be wonderfull!!!
The 2nd question is about converting values.
The Domoticz dummy uses:
0 - 100% for brightness
0 - 255 for color_temp
node red uses:
0 - 255 for brightness
0 * 500 for color_temp
at the moment i succeed with this:
Code: Select all
{msg.payload = {"state": "ON",
"brightness": msg.payload.Level*2.55,
"color_temp": msg.payload.Color.ww*1.96};
thnx in advance!!