Improve Home Assistant integration #477
Replies: 3 comments 5 replies
-
The "whole hour" payload from Kamstrup comes in between two "normal" 10-second-interval payloads, it does not replace one of them. If I understand your proposal correctly, you want to send accumulated energy estimated by the amsreader a few seconds before whole hour to "compensate" for potentially missing message (with "wrong" timestamp) that arrives shortly after whole hour. Should be technically feasible - but could there be a drawback doing that? I'm not using HA, so those of you using HA need to consider if there might be a pitfall here. |
Beta Was this translation helpful? Give feedback.
-
I'm thinking that sending this "calculated accumulated sum" every 5 or 10 minutes would work better, not only just before the full hour as this also might be lost. Should one measurement be missed with this higher frequency for some reason (HA reboot, errors, whatever) the data would only be 5 or 10 minutes off. This would bo totally acceptable, especially considering we're 1h off today. A problem that could arise is that the calculated sum is slightly higher at the end of the hour than the actual reported value recieved from the meter a few minutes later. As far as I know this would throw a log warning in HA but no worse than that. Can't see any real issues on the HA side. I haven't studied the AMSReader sources but calculating total energy from the "live" 10s reports should be fairly accurate and probably not to tricky to implement. |
Beta Was this translation helpful? Give feedback.
-
This firmware will only send "real" data when it arrives, except for the realtime data which is calculated. There could be a extra sensor sending the calculated total kwh reading every time it is updated. This sensor may not be reliable though, so I'm not sure it is a good idea |
Beta Was this translation helpful? Give feedback.
-
I'm looking to once and for all get the Home Assistant energy dashboard to work as intended. I'm not sure about how to solve the problem so I thought a discussion/q&a might be a good way to go about it.
My kamstrup meter reports the total consumption once an hour, just after the hour as most meters seems to do. This brings a few issues.
As far as I can tell these issues can only be resolved by more frequent reporting of the "Accumulated active import". I might be wrong on this but I can't really see any better solution.
Would it be possible to get more frequent reporting from AMSReader? I know that such "in between" reports would be calculated values but they should be more than accurate enough to improve the current HA situation vastly.
At this point everything is one hour off and in some cases two hours off (when the hourly report drops out).
Looking forward to your input on this.
Beta Was this translation helpful? Give feedback.
All reactions