lkempf / casambi-bt-hass

32 stars 12 forks source link

How to determine integration status #65

Closed stbuerger closed 8 months ago

stbuerger commented 8 months ago

Thanks a lot for this great job. When this integration works it is exactly what I was looking for to control my Occhio/Casambi lights. Unfortunately every now and then - hours or minutes - it disconnect or even stops. Running it with debug-log enabled doesn't give me a glue what was going wrong and how to deal with that. While it sometimes seems to recover by itself, when it completely stops I have to "re-load" it. Trying to automate this, I found that sometimes the re-load works immediately, sometimes the integration is "re-trying" itself a couple of times or it "fails to initialize". To not to reload it while it is still working/retrying, I would like to get an information about the current state/phase of the integration - like working, initializing, stopped. Is this possible ? How / where to look for ?

-sb

lkempf commented 8 months ago

The debug log contains some very detailed information about the current integration state. Can you post your debug logs so that I can determine where the integration fails?

stbuerger commented 8 months ago

Most probably I'm facing problems with the esp32 btproxy. Waiting for new board and will test again then.

stbuerger commented 8 months ago

OK - the integration now runs stable for 3+ days with bt-proxy on new esp32 hardware. I had 2x boards with stability problems on bt/wifi connection. So I no longer have that initial urgent need for a status information. I still think it would be a good idea that (every) integration exposes a clear status on its current state. But maybe that's more a general topic to be discussed and implemented on the ha-supervisor layer.