Zigbee2mqtt: when ping fails, shouldn't the device be unavailable?

I’ve just set up a few devices with zigbee2mqtt.
I have three smart bulbs which work correctly, except their state when cut off from power. I use the smart bulbs with a regular wall switch, I just want to set brightness/Kelvin when the bulbs are switched on depending on the time of the day.
The problem is that when I cut power, home assistant still believes they are on, so when I switch on the power there is no state change and the automations are not started.
I see that every minute an unsuccessful ping is reported.

Is there a way to mark the device unavailable when a number of subsequent ping attempts are unseccessful?

Thanks