This may be useful. In the 2024 version of HA Core, I use the following automation to restart an integration when a certain error pops up (search for the integration entity_id in the file .storage/core.config_entries
in the config directory:
- alias: "91004 - Samsung FamilyHub Integration error"
trigger:
platform: event
event_type: system_log_event
event_data:
level: ERROR
logger: custom_components.samsung_familyhub_fridge.api
condition:
condition: template
value_template: '{{ "Unexpected error fetching File ID refresher data:" in trigger.event.data.message[0] }}'
action:
service: homeassistant.reload_config_entry
data:
entry_id: ***