-
Notifications
You must be signed in to change notification settings - Fork 10
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
Scale value problem for cumulative data #43
Comments
Are you able to provide raw sample data from MQTT topic? |
@StarkJohan Are you able to provide raw sample data from MQTT topic? |
Sorry for not getting back to you on this Tore. I've had to prioritize other things. I would be able to provide data but I've been using AmsToMqttBridge which has been spot on for the hourly data for 4-5 weeks at this point. As it "just works" (after a few code adjustments to fit my needs, e.g. the above mentioned scale values) I will have to return to help you get this sorted at a later date. |
@toreamun Just installed. What an amazing integration! I am also getting incorrectly scalead cumulative values. It would be correct with a scaling of 0.1. Everything else is scaled properly. |
I do have the same issue. How can I help to solve this? |
@eribi Here is a the workaround I am using: Add the following to your configuration.yaml:
|
@toreamun Here's a snippet of a hex dump of the hourly data packet over MQTT from Kamstrup_V0001:
|
With the default config dialog scale value of 1 all sensors report correctly (power, current, voltage) except the cumulative values that in my case would need a scale value of 0.1. E.g. the meter has used 38062 kWh in total (as read on the display) but the "Cumulative hourly active import energy (A+) (Q1+Q4)" reports 380620 kWh. As this is the sensor I would like to use as the total consumption for the Energy dashboard in HA this setup does not currently work for this meter.
Not sure what the best solution would be but if the meter reports "incorrect" values maybe more than one scale value is needed in the configuration dialog? I.e. one general scale value and one for the cumulative measurements?
For now I've changed the scale values in sensor.py to fit my needs as a workaround.
The text was updated successfully, but these errors were encountered: