Why doesn't HA show the device connected via zigbee and Zigbee2MQTT?

I have a 4-button switch connected to HA via zigbee: Tuya TS0044 control via MQTT | Zigbee2MQTT Tuya TS0044 control via MQTT | Zigbee2MQTT
Everything worked fine for 2 years and recently stopped working.
I removed the switch from zigbee2mqtt, paired it again.
In Zigbee2mqtt everything works fine, pressing each button is displayed in the Zigbee2Mqtt panel but there is no switch on the HA device list.
If I go to HA->Developer Tools->Device STATES the device is not on the list.
I also checked MQTT Explorer and the data reaches the MQTT broker:
in the branch: zigbee2mqtt/Switch-4-pos I have:
{

“battery”: 100,*
“last_seen”: “2025-02-16T21:14:03.781Z”,*
“linkquality”: 255,*
“voltage”: 3000*
}

and when I press a button, the status also appears:

zigbee2mqtt/Switch-4-pos/action
1_single

but why doesn’t HA show it?

Assuming you upgraded your Z2M to 2.*:

Specifically:

1 Like

My Zigbee2MQTT version is 2.1.1-1 and I understand issue about actions but shouldn’t it show device state and entities Switch-4-pos?
{

“battery”: 100,*
“last_seen”: “2025-02-16T21:14:03.781Z”,*
“linkquality”: 255,*
“voltage”: 3000*
}

When you did that, did you also update the name and make sure to select “Update Home Assistant entities” (or something similar).

If you didn’t, HA is still referring to the switch by the default random bunch of numbers.

You want to turn on “Home Assistant legacy action sensors” inside Zigbee2MQTT, the new events are really bad, one of the admins even opened a WTF thread about them.

1 Like

Cyberbeni,
would you like to point us to this issue?
While new triggers work ok to me, I’m curious what might be the cons of this approach.

1 Like

There is also a possibility for people to set it up in a way that triggers it after a HA restart.

That was a problem. I had disabled “legacy” and “experimental” options at Zigbee2MQTT->Settinges->Home Assistant Integrations
:+1:
Thanks

Yes, I always remember to have “Update Home Assistant entities” enabled when rename devices.
It was different problem caused by new method of maintaining buttons event at new version od Zigbee2MQTT (since 2.0).
Cyberbeni and my replies resolve this problem.

Thank you.
It seems I don’t experience those issues because I solely use the NodeRed for automations.