koying / openrgb_ha

OpenRGB integration for Home Assistant
110 stars 18 forks source link

Support for automatic reconnecting to openrgb #19

Open duniecdawid opened 2 years ago

duniecdawid commented 2 years ago

Hello ;)

I have HA on raspberry pi which controls RGB on separate PC. It works very well until the pc is restarted. When it happens HA loses connection to OpenRGB and doesn't start to work immediately, not untill few hours pass.

I tried reloading integration but it couses re-adding of entities which in turn, messes up automations.

Is is possible to alter to integration to make it reconnect faster or is there any workaround for this? Thanks in advance :)

Aldopez commented 2 years ago

I have a similar problem +1. But maybe is more a bug at the OpenRGB side because the SDK keep showing an active connection even when there isn't

Aldopez commented 2 years ago

anything on this? this bug make it unusable with homeassistant

koying commented 2 years ago

I basically use the integration exactly for this use case: change the RGB colors once my main PC wakes up, and it works for me.

Aldopez commented 2 years ago

What version of OpenRGB an OS are you using?

duniecdawid commented 2 years ago

It's unraid container with OpenRGB from this repository: https://github.com/P3R-CO/openrgb-container It contains OpenRGB with version 0.71

P.S. Restarting HomeAssistant solves the issue, but restarting only integration - doesn't