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
SML checksum error since merge of #5250 #4803
Comments
Same problem here. |
Same here with German Smart Meter and IR Reader. Worked nearly 8 months without any issue. Now with 202308 nothing. |
same here |
Is there a way to go back just for the SML component? |
same problem here. |
same here after update |
Workaround posted here from @Skeletitor (thanks a lot): |
I think esphome/esphome#4798 is the one to blame. Unfortunately, I really don't know how to fix this besides reverting everything. Maybe @Mat931 can have a look? |
Found the problem. I forgot to subtract 2 from the buffer length when calculating the checksum. Can you add this to your config and try if it works? external_components:
- source: github://pr#5271
components: [sml]
refresh: always |
It works. Log output feels a bit slower. And there are some Warnings.
|
Seems to be working for me, too. I do not see any warnings on my end. Logging with level DEBUG is enabled. |
Okay: I'll take a look at my config. |
Thank you very much for fixing the issue!
I also get these warnings. But I have them in other ESPHome components that do not use sml, too.
I would guess that these warnings do have some other cause. |
Confirmed as well, works |
The warnings might be because I changed the lookup table used in the CRC calculation to a smaller (512 bytes -> 64 bytes) but slightly slower one. This only affects the ESP8266 since the ESP32 has hardware acceleration for calculating CRCs. |
The PR fixing will be in 2023.8.1 |
The problem
I initially reported a bug regarding the values of my DWS7412.2.G2 meter not being decoded correctly (#4494). Since the merge of Fix 24 bit signed integer parsing in sml parser #5250, ESPHome shows checksum errors which causes no data to be extracted anymore.
Which version of ESPHome has the issue?
2023.8.0
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2023.8.2
What platform are you using?
ESP8266
Board
Wemos D1 Mini
Component causing the issue
sml
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: