Hi,
I have a Zigbee bridge that sends MQTT topics from devices, which I process on LM. In one particular case, I want to connect two devices — a button and a relay — so that one can switch the other. I’ve created a mapping, and in the script for the button, I write to the group address (GA) that is mapped to the relay.
However, this action doesn’t work (i.e. triggering a mapping rule from within another mapping rule). I suspect this is to prevent processing loops.
Is there a way to make this work without creating a proxy GA for the button and using an event script to write to the relay GA?
Example config in MQTT Client:
zigbee/relay (on/off) -> 1/0/0 (bit)
zigbee/relay/set (on/off) <- 1/0/0 (bit)
zigbee/button (single/double) -> if (action=="single") then grp.write('1/0/0', true) end
I have a Zigbee bridge that sends MQTT topics from devices, which I process on LM. In one particular case, I want to connect two devices — a button and a relay — so that one can switch the other. I’ve created a mapping, and in the script for the button, I write to the group address (GA) that is mapped to the relay.
However, this action doesn’t work (i.e. triggering a mapping rule from within another mapping rule). I suspect this is to prevent processing loops.
Is there a way to make this work without creating a proxy GA for the button and using an event script to write to the relay GA?
Example config in MQTT Client:
zigbee/relay (on/off) -> 1/0/0 (bit)
zigbee/relay/set (on/off) <- 1/0/0 (bit)
zigbee/button (single/double) -> if (action=="single") then grp.write('1/0/0', true) end