Aqara SP-EUC01 auto ON after reconnect

Hello,
have few Aqara SP-EUC01 (with zigbee2mqtt), everything works well, the only issue I face is that after electricity loss or disconnection/reconnecting from electricity, it stays in OFF state, no matter if it was ON before.
So I’d like to add some kind of automation or something to switch it ON on reconnect or somehow else make HA ensure it is ON.
Of course, it is needed only for some of these devices, for example, I use one for other automation like if TV is “on” and happens this then do that. I do ensure that TV is “on” if power usage of TV is greater than 1W. So actually I use only power meter capability and don’t need the switch. So it would be great I could make HA ensure that this switch is always ON.

Are there any recommendations?
One more thing to consider, for example, if power is lost for RaspPI running HA too when it will boot up, the switch will already be in OFF state, so there will be no state change at that moment.
Thanks!

1 Like