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
Android app sensor unit keeps changing back and forth #4224
Comments
This is a peculiar bug, because the unit is always supposed to be android/app/src/main/java/io/homeassistant/companion/android/sensors/NotificationSensorManager.kt Line 56 in 48ac703
Is this the only sensor where you encounter this, or does this also happen to other sensors? I wonder if this is related to home-assistant/core#83716, where core losing the state class also breaks the unit of measurement used for statistics producing the error from your screenshot 🤔 |
@jpelgrom Nope. I have only seen the issue with the notification_count sensor exclusively so far. It doesn't happen daily, only from time to time. |
To add more info, today I noticed a slightly different but still related warning in the log.
|
Just checked my HA core logs and I am also seeing the original error now.
I do not see the new error. I am not sure if this is an app bug but we probably need a core developer to help us here. |
I haven't seen this error for a couple months now. |
Home Assistant Android app version(s): 2024.1.5-full
Android version(s): 11 and 13
Device model(s): Poco X3 NFC & Xiaomi 12 Lite
Home Assistant version:
Core 2024.2.3
Supervisor 2024.02.0
Operating System 11.5
Frontend 20240207.1
Last working Home Assistant release (if known): It's been happening for at least 1 month if not longer, across the latest updates.
Description of problem, include YAML if issue is related to notifications:
I've kept getting warnings in the logs about sensors from our phones (different device models, both Android) changing units. I have gone into Dev tools and fixed the issue several times, but it keeps appearing sort of regularly every few days. It's always the sensors relating to the notification count.
In this case I guess (from the log) it seems to be notifications becoming 0, and the unit changes? Just guessing, not sure and haven't manually tested.
It's been happening over several HA core updates. I was waiting for it to eventually not come back after fixing, but it returns. I don't think it's related to recent updates.
Companion App Logs:
Screenshot or video of problem:
Additional information:
Coming from here
The text was updated successfully, but these errors were encountered: