zigbee2MQTT experts - how to automate refresh

Does anyone know how to replicate the refresh button in zigbee2MQTT in a Home Assistant automation or Mqtt command?

An Mqtt xxxx/get or xxxx/action do not successfully wake up the mains powered device.

But, every time I press the highlighted button it springs back into life.

It is a consistent issue with the sonoff presence sensors, 99% work great then just go into a sleep state every day or so.

It has the latest fw, Home Assistant is on most up to date 2025.12

Would love to automate the refresh option

I have asked this before but I did not get a response that works so trying again.

Thanks

I think I have figured it out

A xxxx/get with a payload of occupancy seems to be working…

You gave your own solution, could you share some more details please? I have a similar issue with an unresponsive device.