Initial power state of ZHA device - zha_event on device reconnection

Hey everyone,
I have a couple of aqara lamps and some Sonoff basic zigbee switches attached to lamps that are also connected to physical wall switches.
I would like to have the lamps turn on when I turn the physical switch on.

Right now the behavior is to remember the previous state.
ie. if the zigbee switch is powered and is on, after i turn off and on the wall switch it will light the lamp.
If it was off when i hit the wall switch, it will remain off after disconnection.

Is there some way to program the switch for this behavior locally?
Or, alternatively, is there some zha_event that will trigger upon device reconnection? So i can have an automation turn them on after powerloss. (the zha_event listener does not show something when i flip the switch and the device reconnects)

Thank you.

1 Like

Romantic bump, along with extra info/quesiton:

I am using a sonoff zb bridge flashed with tasmota as coordinator.

Does Zigbee2MQTT work this gateway?
And does Z2M support the kind of functionality mentioned above?