Without changing the Items / rules, multiple log items would now appear for every physical button click, thus implying that the “received update” got fired multiple times.
I suspect the cause is that there are multiple channels using the same stateTopic.
My expected behaviour would be that it only gets fired once, since only one MQTT message was received for every physical click.
You can test this by simply publishing a JSON message to mqtt as such {"click":"single"}
There are two channels each subscribing to the same topic. Each channel gets triggered. Therefore 2 log entries. Why is that a problem?
Also with zigbee2mqtt payloads, the JSON structure is not always the same, so if there is no $.action in the JSON the second channel will pop an error.
so there should just be one entry, one event, the item being updated once only, not multiple times.
Yes, really sure.
The more number of channels I have subscribing to the same stateTopic, the crazier it gets, i.e. the more number of times the rule gets fired for just one mqtt message.