home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.26k stars 30.6k forks source link

Adding a new Mold Helper requires Restart to display values #129023

Open andyfrei opened 1 week ago

andyfrei commented 1 week ago

The problem

Is that intended? Everytime you add a new Mold-Helper (not the config) you have to restart Home Assistant in order to get it calculated? Other helpers added by the UI are there after a browser refresh so I'm assuming this is not what a helper added via UI should work like, but I may miss something here. If it is intended the documentation should state that more clear.

What version of Home Assistant Core has the issue?

core-2024.10.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Mold Indicator

Link to integration documentation on our website

https://www.home-assistant.io/integrations/mold_indicator

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

After a restart of Home Assistant all works as expected

home-assistant[bot] commented 1 week ago

mold_indicator documentation mold_indicator source

gjohansson-ST commented 1 week ago

That seems odd and has not been the case for all the tests. Anything in the logs? Are the sensors it's based on available and usable? Same if you wait a bit longer?

andyfrei commented 1 week ago

Hi @gjohansson-ST Just figured out that even changing a calibrationfaktor of an existing mold sensor makes the sensor unavailable. What do you mean by "a bit longer" = ?

Just changed a calibration faktor now and created a new dummy one aswell, reporting aswell "not available" currently. Will report later on the behaviour.

gjohansson-ST commented 1 week ago

It should make it unavailable but only for a short period until it collected all the information again (as it reloads). I was just thinking if you wait half a minute and then refresh your screen or if it really never comes back until you restart HA completely. I could not reproduce myself as when I create them I get it unavailable, I press F5 to refresh my browser, then I see it working perfectly reporting ok.

andyfrei commented 1 week ago

So its more then 5mins ago now for the creation and the clibration factor change, they both report still unavailable, even after a browser refresh aswell in the developer tools.

gjohansson-ST commented 1 week ago

Yes, I understood you incorrectly. I see it too that it's not reporting but stays unavailable. I will look into it.

gjohansson-ST commented 4 days ago

I can confirm there is a problem in the last release but it's anyhow solved in dev. Not sure what's really the fix as there are some adjustments made in dev. It will however be fixed with 2024.11.0 coming soon. So I'll let the issue remain open and hopefully you can confirm with next release that it's now working as intended.

andyfrei commented 3 days ago

Ok, great to hear. I will check once a stable version is out and let you know.

From: G Johansson @.> Sent: Sunday, October 27, 2024 5:17 PM To: home-assistant/core @.> Cc: Andy Frei @.>; Author @.> Subject: Re: [home-assistant/core] Adding a new Mold Helper requires Restart to display values (Issue #129023)

I can confirm there is a problem in the last release but it's anyhow solved in dev. Not sure what's really the fix as there are some adjustments made in dev. It will however be fixed with 2024.11.0 coming soon. So I'll let the issue remain open and hopefully you can confirm with next release that it's now working as intended.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/129023#issuecomment-2440084311 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AIKS4EX6GYBCMTLBJU3E2JTZ5T7XTAVCNFSM6AAAAABQOGGAXCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBQGA4DIMZRGE . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AIKS4EUMLNJAT4JTZ4OD4C3Z5T7XTA5CNFSM6AAAAABQOGGAXCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUROC5VO.gif Message ID: @. @.> >