Arbuzov / hass-broadlink-ac-mqtt

Home Assistant broadlink MQTT addon repository
Apache License 2.0
30 stars 7 forks source link

Devices become unavailable after HA restart #4

Open southwestflavorz opened 2 years ago

southwestflavorz commented 2 years ago

When I restart HA, the devices become unavailable. The only way to get them back working is to restart the add-on.

rumunn95 commented 2 years ago

same issue

southwestflavorz commented 2 years ago

I'm bypassing the issue for now by writing an automation that restarts the addon 30 seconds after HA starts.

rumunn95 commented 2 years ago

I'm bypassing the issue for now by writing an automation that restarts the addon 30 seconds after HA starts.

Can you share your automation?

southwestflavorz commented 2 years ago

Of course, basically the automation waits 30 seconds after home assistant starts up, then it restarts the add-on. With this method, I haven't had an issue with devices becoming unavailable.

alias: Automation - Restart Aircon Add-on At Startup description: "" trigger:

Arbuzov commented 2 years ago

Actually I restart it more frequently cause there are some issues at the original source codes:

alias: Air driver restart
description: ""
trigger:
  - platform: time_pattern
    minutes: "1"
condition: []
action:
  - service: hassio.addon_restart
    data:
      addon: e9fb2284_broadlink-ac-mqtt
mode: single