I seem to have an issue where the first use of wireless remote switches doesn’t get sent to Home Assistant via zigbee2MQTT, or Home Assistant doesn’t receive the correct message. My devices are mainly IKEA modules of different types, and they all exhibit the same issue. I should point out that the Sonoff wireless remotes that I have do the same thing.
Running MQTT Explorer I can see the message being transmitted by Zigbee2MQTT but homeseer does not respond to it. If I press the button again, it runs the automation.
The activity log in Home Assistant shows this when I press the ON button for the first time after a period of time not using the switch. This only appears in the activity log when the automation doesn’t respond to the first press.

It is as if the switch is sleeping and only sends a wake message but Zigbee2MQTT sends out the correct message with the action topic with payload ON.
This is what I see with MQTT Explorer on the first press.
IKEASW4 = {"action":"on","battery":null,"identify":null,"linkquality":134,"update":{"installed_version":33816598,"latest_version":33816598,"state":"idle"}}
availability = {"state":"online"}
action = on
UPDATE BEFORE I POSTED THE ABOVE
I setup NodeRed to listen for the zigbee2mqtt message and this was received. NodeRed is running on the same PC as Home Assistant and Zigbee2MQTT
{"action":"on","battery":null,"identify":null,"linkquality":142,"update":{"installed_version":33816598,"latest_version":33816598,"state":"idle"}}
Payload received and shown by MQTT Explorer
{
"action": "on",
"battery": null,
"identify": null,
"linkquality": 142,
"update": {
"installed_version": 33816598,
"latest_version": 33816598,
"state": "idle"
}
}
And again, nothing in the Home Assistant activity log or response to the press. Second press works. ![]()


