planbnet / livisi_unofficial

Unofficial fork of the home assistant livisi integration without dependencies on the abandoned aiolivisi lib
Apache License 2.0
34 stars 4 forks source link

fix sensors keep unavailable state #104

Closed DanielHabenicht closed 3 months ago

DanielHabenicht commented 3 months ago

Because the entity _attr_available is set to false when the plugin is loaded subsequent updates (when a window is opened or closed) are not visible as the property is not set back to true. This resolves the issue by updating it too.

This is a fix for the problem I mentioned in #92

DanielHabenicht commented 3 months ago

I think this also applies to the other Entities I added in the second commit. At least for HVAC entities, I already experienced it once.

DanielHabenicht commented 3 months ago

Would it be possible to setup a beta release for the develop Branch? I already looked it up but couldn't find the documentation on HACS.

This way it would be easier to test before a proper release.

planbnet commented 3 months ago

I tried to publish a "pre-release" on github: https://github.com/planbnet/livisi_unofficial/releases/tag/1.10.0 But it looks like HACS simply pulls this as the latest release...

edit: This works exactly as I expected. So to try out 1.10.0, you need to enable "show beta versions" until i remove the pre-release status on github.

olli711 commented 3 months ago

Hi,

Better not install? I am eagerly waiting for the binary sensors😅

planbnet commented 3 months ago

I have the development version running for a few days now without problems. I'd say give it a try.

olli711 commented 3 months ago

Perfect. I will try it. I'm curious to see how it goes