I want to counter the number of restarts of ESPHome devices. Perhaps it could be done with the counter in Home Assistant. But I need an event as well. Is there an event that is triggered when ESPhome disconnects or starts?