However… it does not get triggered when Home Assistant Host is going to restart. I couldn’t find a restart event for the platform homeassistant. Surely there must be a way to instigate an automation if Home Assistant host is supposed to reboot (for example when Home Assistant OS is restarting to get an update.
You’re welcome. That’s why I replied, to provide you with more insight into the events reported prior to shutdown (i.e. there’s more available than what the homeassistant trigger detects).