-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Unit of measurement lost when "stacking" average sensors #143
Comments
I could not repeat your bug: everything works correctly with your config. Tested on the latest version of HA. Please check that your source sensors are working correctly. Perhaps, to identify the cause of the error, the enabled debugging mode is useful: https://github.com/Limych/ha-average#troubleshooting If you find an error in my code, please post logs with this error here. |
For me it gets lost even without any stacking. I have a value coming from node-red with unit EUR/MWh, and then randomly the EUR/MWh unit is lost. This happens after every restart of HA. Seems like if there is even one value where it receives "0" or "unavailable" then the unit is just deleted. How about just adding a setting to the sensor where it is possible to specify the unit??? Anyway, for now I am doing the average calculation in Node RED, so that I can specify the units. |
@ Limych Any ideas? |
This issue appears to has reappeared in the latest release (assuming it was ever fixed?) Update: looks like this could have been an issue for some time and its only on updating to HA 2024.10 that the repair prompt was raised. |
Describe the bug
I'm using this sensor to average my temperatures. E.g. i have several sensors in my living room which are averaged to a single value. This value (sensor) is used as an input to calculate (average again) the temperature of the first floor. When i do so, the sensor of the averaged temp in the first floor has no unit of measurement.
Configuration.yaml
Expected behavior
Keep the unit of measurement.
The text was updated successfully, but these errors were encountered: