remote_homeassistant icon indicating copy to clipboard operation
remote_homeassistant copied to clipboard

Data stops coming to main instance whenever I reboot/rebuild/restart containers of remote HA instances.

Open hugalafutro opened this issue 2 years ago • 2 comments

Hi, I have 1 main HA and 2 remote instances. Whenever I rebuild/update/restart any of the remote instances, the main instance will stop pulling data from them despite the integration claiming it is connected. This is corroborated by all the graphs from remote devices getting stuck at the last recorded value.

The only fix is to go to Settings/Integrations and click each remote instance and reload the integration manually at which point the sensors jump to their correct current values and start pulling any updates as expected.

Thanks for any advice.

hugalafutro avatar Jan 10 '23 08:01 hugalafutro

Same issue here, four months later. Is anyone still monitoring this integration?

gourdo1 avatar May 04 '23 18:05 gourdo1

a dirty workaround

I created a webhook on remote instances that triggers on HA startup image

inside configuration.yaml

shell_command:
  call_remote: curl -X POST http://192.168.1.227:8123/api/webhook/helper-ha-restart-QveMyq9Rdl-mGkOgdU1nfJFp

then on main instance you need to find Config entry ID of the remote_ha integration on main instance: Settings / Integration / click on the device(s) under Remote Home Assistant, then click on the Remote Home Assistant in top left corner under Device Info again and look into the URL bar, you will see the config entry id at the end:

http://192.168.1.227:8123/config/integrations/integration/remote_homeassistant#config_entry=8fbf0cf2da7c2477c0e6b909dc38258b

and then on main instance make an automation that listen for the webhook and reloads the integration when receiving it: image

hugalafutro avatar Aug 19 '23 08:08 hugalafutro