Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plant component produces warnings if one of the subvalues isn't known yet #130

Closed
hmmbob opened this issue Jan 5, 2024 · 4 comments
Closed

Comments

@hmmbob
Copy link
Contributor

hmmbob commented Jan 5, 2024

The Plant component produces warnings if one of the subvalues isn't known yet, i.e. after reboot of HA.

Not sure how to fix?

2024-01-04 20:57:17.059 WARNING (MainThread) [custom_components.plant] Sensor sensor.dracaena_air_humidity has device class 'humidity', state class 'measurement' unit '%' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'unknown' (<class 'str'>)
2024-01-04 20:57:18.088 WARNING (MainThread) [custom_components.plant] Sensor sensor.dracaena_air_humidity has device class 'humidity', state class 'measurement' unit '%' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'unknown' (<class 'str'>)
2024-01-04 20:57:20.245 WARNING (MainThread) [custom_components.plant] Sensor sensor.dracaena_air_humidity has device class 'humidity', state class 'measurement' unit '%' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'unknown' (<class 'str'>)
2024-01-04 20:57:21.357 WARNING (MainThread) [custom_components.plant] Sensor sensor.dracaena_air_humidity has device class 'humidity', state class 'measurement' unit '%' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'unknown' (<class 'str'>)
2024-01-04 20:57:22.426 WARNING (MainThread) [custom_components.plant] Sensor sensor.dracaena_air_humidity has device class 'humidity', state class 'measurement' unit '%' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'unknown' (<class 'str'>)
2024-01-04 20:57:24.639 WARNING (MainThread) [custom_components.plant] Sensor sensor.dracaena_air_humidity has device class 'humidity', state class 'measurement' unit '%' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'unknown' (<class 'str'>)
2024-01-04 20:57:25.784 WARNING (MainThread) [custom_components.plant] Sensor sensor.dracaena_air_humidity has device class 'humidity', state class 'measurement' unit '%' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'unknown' (<class 'str'>)
2024-01-04 20:57:26.980 WARNING (MainThread) [custom_components.plant] Sensor sensor.dracaena_air_humidity has device class 'humidity', state class 'measurement' unit '%' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'unknown' (<class 'str'>)
@Olen
Copy link
Owner

Olen commented Jan 5, 2024

This should be fixed in the latest beta.
Please test it, and if it works OK, I'll make a release.

@hmmbob
Copy link
Contributor Author

hmmbob commented Jan 5, 2024

Sorry, forgot to mention that I am running beta 2

(Which runs completely fine further)

@Olen
Copy link
Owner

Olen commented Jan 5, 2024

Hmok...
I think it's pretty silly of HA to warn about their own "unknown" and "unavailble" statuses for numerical sensors. I have done pretty much everything I can think of to replace those with None whenever I see them, but some might still be missing.
Also, it will keep on warning if you restart HA and it has previously been "unknown" because it will recover the "unknown" state, and there is just no way to fix that, as far as I have found.
So my advice for now is to just ignore these, and fix, replace or remove the source sensors to get rid of them.

@hmmbob
Copy link
Contributor Author

hmmbob commented Jan 5, 2024

Copy all, thanks!

@hmmbob hmmbob closed this as completed Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants