Aqara Smoke Detector

Hello, I purchased an Aqara smoke detector connected through ZHA.

I apologize in advance if something I say it isn’t accurate, I’m newbie on this

Everything is updated to the latest firmware version. And the smoke detector works fine (I force the alarm for example by forcing smoke close to it). My problem is that if I run any action from HA, although it executes, for example, running the alarm or setting Mute, the device becomes unavailable in HA, and I had to remove it an pair it again. (Reconfiguration does not work either)

Any clue about what might be happening?

Thanks in advance

PS: I have like other 15 devices connected working without issues

Got the same issue. Aqara smoke detector joins and interviews successfully and all entities are visible in HA, then about 24 hours after the initial join, it goes offline and is unavailable until I re-pair. Repeated the process multiple times with no change. About 20 other Aqara and Tuya devices remain joined to the network with no issues, its just this device.

I’m not using an Aqara hub, i’m using a Sonoff 3.0 USB Zigbee dongle and the smoke detector is about 4 feet away from it so it isnt due to a lack of signal.

Fixed via the automation provided by Saint below. Mine has now been online 24 hours which it never made before.