False state change for Aqara door in NodeRed on HA restart

I’ve got nodered, HA, mqtt and zigbee2mqtt running in containers on unraid. On a daily basis, HA restarts during a scheduled backup.

I’m having an issue with the Aqara door sensor (zigbee2mqtt) triggering a state change in node red sending notifications that the door has opened.

But the door has been open the whole time. Is there anything I can do to guard against this? Each one of these “Was opened” in the image below is just HA container restarts.