This is based on this Feature Request Topic 231940 tited “Add service integration.reload”. It’s a long read, but good info. Basically it describes attempts to reload an integration that has not loaded; this can now be done with Developer Tools > Services & details from the above post.
SUMMARY: I use the below locelave card to enter an entity from an integration I want to reload, and the below script to make the service call to reload it.
NOTE: 1st I tested this in “Developer tools > Services” using ‘sensor.processor_use’, from System Monitor Integration, with:
service: homeassistant.reload_config_entry
target: {}
data:
entity_id: sensor.processor_use
…and it correctly reloaded the integration successful with a green ✓
Lovelace card:
I use this lovelace card and an input_text helper and call the script:
entity: input_text.entity_information
name: 'Entity ID:'
tap_action:
action: call-service
service: script.reload_integration
data:
entity: input_text.entity_information
hold_action:
action: more-info
BTW: I select the icon of the input_text helper to execute the script.
Script: script.reload_integration:
And I use this script to call the service:
alias: Reload Integration
sequence:
- service: notify.persistent_notification
metadata: {}
data:
message: Parameter was {{ states('input_text.entity_information') }}
enabled: true
- service: homeassistant.reload_config_entry
target: {}
data:
entry_id: "{{ states('input_text.entity_information') }}"
mode: single
I got the following ERROR message:
The above returns this error: “Error running action Unknown error”
Any help solving this would be appreaciated.