alex3305 / home-assistant-addons

Alex's Home Assistant Add-ons
https://alex3305.github.io/home-assistant-docs/
MIT License
47 stars 29 forks source link

Reload supervsior after secrets update #26

Open alex3305 opened 3 years ago

alex3305 commented 3 years ago

The supervisor needs to be reloaded after the secrets have been updated.

github-actions[bot] commented 2 years ago

Stale issue.

SVNKoch commented 1 year ago

This can be achived by calling the homeassistant.reload_core_config service. But I sadly don't know how to do that from an addon.

SVNKoch commented 1 year ago

Workaround: Weload the config everytime the addon stops.

alias: Reload Secrets after Bitwarden Generation
description: ""
trigger:
  - type: not_running
    platform: device
    device_id: 1e8c808a37b6924dcd32b8f5275e07dd
    entity_id: binary_sensor.bitwarden_secrets_for_home_assistant_running
    domain: binary_sensor
condition: []
action:
  - service: homeassistant.reload_core_config
    data: {}
mode: single

For this to work, the 'Running' Sensor has to be enabled for this addon. Go to Settings > Devices > Bitwarden secrets for Home Assistant > Sensors > Running > Advanced Options > Enable

alex3305 commented 1 year ago

Thanks for your input @SVNKoch. IMHO this issue shouldn't be closed. So I've re-opened.