-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
"The unit of measurement of some entities has changed" warning messages #1403
Comments
I have the same problem, it also occurs when the column is turned on by the integration Wallbox Legrand Green Up 059006 |
The repair should disappear if you delete the old long-term statistics (if you don't need them from those entities). |
If I delete the warning saying that the unit has been changed from 'var' to 'kW', at the next reboot I have a warning saying the unit has been changed from 'kW' to 'var'... |
You can try updating the logic here: ocpp/custom_components/ocpp/sensor.py Line 152 in a55913c
with SensorDeviceClass.REACTIVE_ENERGY
|
I created a PR to fix at least the power reactive sensors, maybe you can review if it'S fine from your perspective @drc38. |
Yeah, looks like I was looking at a fork that did not get merged by the devs. See my suggestion on energy in your PR. It's odd they added reactive power without adding reactive energy.... It should stop the warning by not giving it a device class. |
Hello
Describe the bug
Everytime I restart Home Assistant, I have 2 messages saying the unit of measurement of 2 entities have changed:
(Sorry it is in French. It is saying "The unit of sensor.charger2_power_reactive_import has changed" and "The unit of sensor.charger2_energy_reactive_export_register has changed"
If I click on one message, I get this:
In English it means:
The same warning can be found in the logs:
It is not a blocking issue, but it is annoying to have to open these messages everytime I have to reboot HA (after an update, after a configuration change...)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Nothing
Screenshots
See above
Desktop:
Additional context
I think this issue might be linked to the charger. In fact, I have two chargers connected to my HA:
I only have the issue with "charger2" (as seen on the screenshots)
To have 2 chargers on the same HA I used two instances of the OCPP integration listening to different ports, like this:
I guess this is the good way to do, no?
I will put the log file in attachment.
home-assistant_ocpp_2024-11-24T16-52-05.376Z.log
The text was updated successfully, but these errors were encountered: