FreshlyBrewedCode / hacs-homee

a Home Assistant custom component to integrate the homee smart home platform
MIT License
17 stars 6 forks source link

Reloading the 1.5.0 integration disables all Homee entities in Homeassistant. HA needs restart to get them re-enabled. #15

Closed mesistostefre closed 1 year ago

mesistostefre commented 1 year ago

Reloading the 1.5.0 integration disables all Homee entities in Homeassistant. HA needs restart to get them re-enabled.

Homee integration 1.5.0 HA Core 2022.10.2 HA Supervisor 2022.10.0

Type of problem

Version

1.5.0

Detailed description

FreshlyBrewedCode commented 1 year ago

Could it be that the Homee integration does not finish reloading properly? Could you check if e.g. the homee.set_value service is available after the reload? Also are there any errors in the HA logs?

mesistostefre commented 1 year ago

Sorry, was on the road… yes, service is available after reload and I can execute it.

What I did: developes tab/services/ : select “home: set_value” and enter “value: 42” to be the service data. When I execute the call, I get the green check mark in return. Still, all entities are disabled.

mesistostefre commented 1 year ago

But I do see an entry in the logs which I must have overlooked before. The entry is not because of me executing the service, but instead gets created when I trigger the reload of the integration:

“Error unloading entry homee @ (xxx.xxx.xxx.xx) for climate 19:15:55 – (FEHLER) helpers/entity_component.py – “

The details are: “ Logger: homeassistant.config_entries Source: helpers/entity_component.py:175 First occurred: 19:04:04 (7 occurrences) Last logged: 19:15:55

PS: xxx.xxx.xxx.xx is the IP address of homee

Stklingner commented 1 year ago

I'll watch out for this when I get around to fixing the sensor commits this weekend

Stklingner commented 1 year ago

@mesistostefre - this has been patched in now; would you try it again when you get the chance, please?

mesistostefre commented 1 year ago

Congratulations: you fixed it!

Upgraded to 2.0.1, reloading the integration works as well. A few sensors, switches, and lights got lost, but re-appeared under a new name, basically with an "_2" attached.n Other switches and lights just survived. So, after adjusting the automations to use the new entities, all is nice and well.

Thanks again, great job!

Problem I have now: I do not see how i can drop you a treat ... or at least a coffee... :-(

FreshlyBrewedCode commented 1 year ago

Closed by #17, Fixed in 2.0.0