ZBMINIR2/MINI-ZBD - Detach relay mode with state

Hello Sonoff,

I have a lot of ZBMINIR2 and will buy more MINI-ZBD, but for some cases I wish to use the “Detach relay mode” in a way that I can trigger some automations (in Home Assistant, Zigbee2MQTT).

Now I have an event zigbee2mqtt/my_zigbee_device/action which gives me a toggle value I can listen to which is somewhat okay but it would be just the best if I have the closed or open state available as part of the event.

Even better if it exposes a separate binary sensor when “Detach relay mode” is on.

Bests,