I am looking for a way to receive, preferably by email, when an integration doesnt load for any reason.
I have one integration that almost never loads properly after a power failure, and sometimes after an internet outage. (No help on the integrations page yet.) It almost always works when i tap “reload”. An alert would be helpful so i can manually fix it.
Using the homeassistant.start as a trigger, make an automation that delays for a minute or 2, then restarts the integration.
Pick an entity the integration provides and trigger off that. Here’s how I reload a restful sensor that often fails:
- id: 2801a42c-9d0c-4c54-ae6e-e5cfb32e866c
alias: 'Fix solar forecast rest sensor'
triggers:
- trigger: state
entity_id: sensor.solcast_forecast_data
to: unknown
for:
minutes: 5
actions:
- action: rest.reload
- action: notify.telegram_alert
data:
title: '☀️ <b>Solar Forecast Update</b>'
message: >
Solar forecast manually updated
Forecast is {{ states('sensor.solcast_forecast') }}