Giter Club home page Giter Club logo

Comments (13)

sandos avatar sandos commented on May 23, 2024

I am seeing a very similar behaviour, I have not looked at it very deeply: but I can see the high-level graphs that it does stop logging at similar intervals, and I could see that it complained about CRC during the entire period:

image
image

How likely is this to be hass-AMS itself? I have a hard time seeing this as anything other than a bug in the meter itself or at least the module in the meter.

Would be interesting to try decode even after a CRC error, and trying to detect which field looks "off", to try find what is causing the CRC error. This method assumes though that we can infer likely from unlikely values for every data field.

from hass-ams.

sandos avatar sandos commented on May 23, 2024

Whoops. It turns out I am not using aidon_se but kaifa_se.

So maybe a bug in the code after all, or an otherwise really weird coincidence. :)

Are you by any chance using this dongle:

image

from hass-ams.

Bo1jo avatar Bo1jo commented on May 23, 2024

Sorry for late resonse!

Yes, I'm using one of those. I have also tried with:
image
but with the same data read error.

from hass-ams.

turbokongen avatar turbokongen commented on May 23, 2024

I have been looking into this with my Kamstrup meter. Although I get crc errors and wrong packet sizes, I cannot find any pattern in the errors with my meter. I have a experimental branch you could try: serialimp
Here I have disabled the blocking of wrongful crc and size packages, and just try to decode anyway. It will issue a debug message, but just try to decode anyway. It will also present a debug message if it fails to decode completely. I use the adapter from that First picture.

from hass-ams.

Bo1jo avatar Bo1jo commented on May 23, 2024

Thanks! I'll try the new branch! At a first impression it seems to be working (I think), se below. Will take a while to know though, since the error appeared randomly before.

2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams] Last FRAME_FLAG detected, return queue for decoding= [162, 67, 65, 8, 131, 19, 133, 235, 230, 231, 0, 15, 64, 0, 0, 0, 0, 1, 27, 2, 2, 9, 6, 0, 0, 1, 0, 0, 255, 9, 12, 7, 229, 12, 21, 2, 21, 42, 30, 255, 128, 0, 255, 2, 3, 9, 6, 1, 0, 1, 7, 0, 255, 6, 0, 0, 10, 209, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 2, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 3, 7, 0, 255, 6, 0, 0, 5, 147, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 4, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 31, 7, 0, 255, 16, 0, 37, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 51, 7, 0, 255, 16, 0, 43, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 71, 7, 0, 255, 16, 0, 51, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 32, 7, 0, 255, 18, 9, 59, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 52, 7, 0, 255, 18, 9, 57, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 72, 7, 0, 255, 18, 9, 55, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 21, 7, 0, 255, 6, 0, 0, 3, 30, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 22, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 23, 7, 0, 255, 6, 0, 0, 1, 25, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 24, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 41, 7, 0, 255, 6, 0, 0, 3, 180, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 42, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 43, 7, 0, 255, 6, 0, 0, 1, 211, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 44, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 61, 7, 0, 255, 6, 0, 0, 3, 252, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 62, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 63, 7, 0, 255, 6, 0, 0, 2, 145, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 64, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 1, 8, 0, 255, 6, 2, 1, 95, 146, 2, 2, 15, 0, 22, 30, 2, 3, 9, 6, 1, 0, 2, 8, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 30, 2, 3, 9, 6, 1, 0, 3, 8, 0, 255, 6, 0, 154, 29, 83, 2, 2, 15, 0, 22, 32, 2, 3, 9, 6, 1, 0, 4, 8, 0, 255, 6, 0, 52, 245, 131, 2, 2, 15, 0, 22, 32, 49, 162, 126]
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Invalid header CRC check. Try to decode anyway. DUMP:[162, 67, 65, 8, 131, 19, 133, 235, 230, 231, 0, 15, 64, 0, 0, 0, 0, 1, 27, 2, 2, 9, 6, 0, 0, 1, 0, 0, 255, 9, 12, 7, 229, 12, 21, 2, 21, 42, 30, 255, 128, 0, 255, 2, 3, 9, 6, 1, 0, 1, 7, 0, 255, 6, 0, 0, 10, 209, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 2, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 3, 7, 0, 255, 6, 0, 0, 5, 147, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 4, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 31, 7, 0, 255, 16, 0, 37, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 51, 7, 0, 255, 16, 0, 43, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 71, 7, 0, 255, 16, 0, 51, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 32, 7, 0, 255, 18, 9, 59, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 52, 7, 0, 255, 18, 9, 57, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 72, 7, 0, 255, 18, 9, 55, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 21, 7, 0, 255, 6, 0, 0, 3, 30, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 22, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 23, 7, 0, 255, 6, 0, 0, 1, 25, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 24, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 41, 7, 0, 255, 6, 0, 0, 3, 180, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 42, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 43, 7, 0, 255, 6, 0, 0, 1, 211, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 44, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 61, 7, 0, 255, 6, 0, 0, 3, 252, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 62, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 63, 7, 0, 255, 6, 0, 0, 2, 145, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 64, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 1, 8, 0, 255, 6, 2, 1, 95, 146, 2, 2, 15, 0, 22, 30, 2, 3, 9, 6, 1, 0, 2, 8, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 30, 2, 3, 9, 6, 1, 0, 3, 8, 0, 255, 6, 0, 154, 29, 83, 2, 2, 15, 0, 22, 32, 2, 3, 9, 6, 1, 0, 4, 8, 0, 255, 6, 0, 52, 245, 131, 2, 2, 15, 0, 22, 32, 49, 162, 126]
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams] data read from port=[162, 67, 65, 8, 131, 19, 133, 235, 230, 231, 0, 15, 64, 0, 0, 0, 0, 1, 27, 2, 2, 9, 6, 0, 0, 1, 0, 0, 255, 9, 12, 7, 229, 12, 21, 2, 21, 42, 30, 255, 128, 0, 255, 2, 3, 9, 6, 1, 0, 1, 7, 0, 255, 6, 0, 0, 10, 209, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 2, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 3, 7, 0, 255, 6, 0, 0, 5, 147, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 4, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 31, 7, 0, 255, 16, 0, 37, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 51, 7, 0, 255, 16, 0, 43, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 71, 7, 0, 255, 16, 0, 51, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 32, 7, 0, 255, 18, 9, 59, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 52, 7, 0, 255, 18, 9, 57, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 72, 7, 0, 255, 18, 9, 55, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 21, 7, 0, 255, 6, 0, 0, 3, 30, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 22, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 23, 7, 0, 255, 6, 0, 0, 1, 25, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 24, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 41, 7, 0, 255, 6, 0, 0, 3, 180, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 42, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 43, 7, 0, 255, 6, 0, 0, 1, 211, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 44, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 61, 7, 0, 255, 6, 0, 0, 3, 252, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 62, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 63, 7, 0, 255, 6, 0, 0, 2, 145, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 64, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 1, 8, 0, 255, 6, 2, 1, 95, 146, 2, 2, 15, 0, 22, 30, 2, 3, 9, 6, 1, 0, 2, 8, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 30, 2, 3, 9, 6, 1, 0, 3, 8, 0, 255, 6, 0, 154, 29, 83, 2, 2, 15, 0, 22, 32, 2, 3, 9, 6, 1, 0, 4, 8, 0, 255, 6, 0, 52, 245, 131, 2, 2, 15, 0, 22, 32, 49, 162, 126]
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] list_type is 2
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] meter_date_time, OBIS:[0, 0, 1, 0, 0, 255], Index:(23, 29), Type:9 Double OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] meter_date_time, [0, 0, 1, 0, 0, 255], 2021, 12, 21, Tuesday, 21, 42, 30, 2021-12-21-21-42-42-30
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_import, OBIS:[1, 0, 1, 7, 0, 255], Index:(47, 53), Type:6 Double OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 2769, Index:(54, 58)
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_export, OBIS:[1, 0, 2, 7, 0, 255], Index:(68, 74), Type:6 Double OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 0, Index:(75, 79)
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_import, OBIS:[1, 0, 3, 7, 0, 255], Index:(89, 95), Type:6 Double OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 1427, Index:(96, 100)
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_export, OBIS:[1, 0, 4, 7, 0, 255], Index:(110, 116), Type:6 Double OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 0, Index:(117, 121)
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_import_l1, OBIS:[1, 0, 21, 7, 0, 255], Index:(245, 251), Type:6 Single OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 798 Index:(252, 256)
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_export_l1, OBIS:[1, 0, 22, 7, 0, 255], Index:(266, 272), Type:6 Single OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 0 Index:(273, 277)
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_import_l1, OBIS:[1, 0, 23, 7, 0, 255], Index:(287, 293), Type:6 Single OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 281 Index:(294, 298)
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_export_l1, OBIS:[1, 0, 24, 7, 0, 255], Index:(308, 314), Type:6 Single OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 0 Index:(315, 319)
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_import_l2, OBIS:[1, 0, 41, 7, 0, 255], Index:(329, 335), Type:6 Single OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 948 Index:(336, 340)
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_export_l2, OBIS:[1, 0, 42, 7, 0, 255], Index:(350, 356), Type:6 Single OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 0 Index:(357, 361)
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_import_l2, OBIS:[1, 0, 43, 7, 0, 255], Index:(371, 377), Type:6 Single OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 467 Index:(378, 382)
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_export_l2, OBIS:[1, 0, 44, 7, 0, 255], Index:(392, 398), Type:6 Single OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 0 Index:(399, 403)
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_import_l3, OBIS:[1, 0, 61, 7, 0, 255], Index:(413, 419), Type:6 Single OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 1020 Index:(420, 424)
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_export_l3, OBIS:[1, 0, 62, 7, 0, 255], Index:(434, 440), Type:6 Single OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 0 Index:(441, 445)
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_import_l3, OBIS:[1, 0, 63, 7, 0, 255], Index:(455, 461), Type:6 Single OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 657 Index:(462, 466)
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_export_l3, OBIS:[1, 0, 64, 7, 0, 255], Index:(476, 482), Type:6 Single OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 0 Index:(483, 487)
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_current_l1, OBIS:[1, 0, 31, 7, 0, 255], Index:(131, 137), Type:16 Double OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 16/18: 3.7, Index:(138, 140)
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_current_l2, OBIS:[1, 0, 51, 7, 0, 255], Index:(150, 156), Type:16 Double OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 16/18: 4.3, Index:(157, 159)
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_current_l3, OBIS:[1, 0, 71, 7, 0, 255], Index:(169, 175), Type:16 Double OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 16/18: 5.1, Index:(176, 178)
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_voltage_l1, OBIS:[1, 0, 32, 7, 0, 255], Index:(188, 194), Type:18 Double OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 16/18: 236.3, Index:(195, 197)
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_voltage_l2, OBIS:[1, 0, 52, 7, 0, 255], Index:(207, 213), Type:18 Double OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 16/18: 236.1, Index:(214, 216)
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_voltage_l3, OBIS:[1, 0, 72, 7, 0, 255], Index:(226, 232), Type:18 Double OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 16/18: 235.9, Index:(233, 235)
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_energy_import, OBIS:[1, 0, 1, 8, 0, 255], Index:(497, 503), Type:6 Double OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 33644.434, Index:(504, 508)
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_energy_export, OBIS:[1, 0, 2, 8, 0, 255], Index:(518, 524), Type:6 Double OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 0.0, Index:(525, 529)
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_energy_import, OBIS:[1, 0, 3, 8, 0, 255], Index:(539, 545), Type:6 Double OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 10100.051, Index:(546, 550)
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_energy_export, OBIS:[1, 0, 4, 8, 0, 255], Index:(560, 566), Type:6 Double OBIS
2021-12-21 21:42:32 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 3470.723, Index:(567, 571)
2021-12-21 21:42:33 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_import
2021-12-21 21:42:33 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_export
2021-12-21 21:42:33 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_import
2021-12-21 21:42:33 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_export
2021-12-21 21:42:33 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_import_l1
2021-12-21 21:42:33 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_export_l1
2021-12-21 21:42:33 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_import_l1
2021-12-21 21:42:33 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_export_l1
2021-12-21 21:42:33 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_import_l2
2021-12-21 21:42:33 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_export_l2
2021-12-21 21:42:33 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_import_l2
2021-12-21 21:42:33 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_export_l2
2021-12-21 21:42:33 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_import_l3
2021-12-21 21:42:33 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_export_l3
2021-12-21 21:42:33 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_import_l3
2021-12-21 21:42:33 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_export_l3
2021-12-21 21:42:33 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_current_l1
2021-12-21 21:42:33 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_current_l2
2021-12-21 21:42:33 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_current_l3
2021-12-21 21:42:33 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_voltage_l1
2021-12-21 21:42:33 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_voltage_l2
2021-12-21 21:42:33 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_voltage_l3
2021-12-21 21:42:33 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_energy_import
2021-12-21 21:42:33 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_energy_export
2021-12-21 21:42:33 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_energy_import
2021-12-21 21:42:33 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_energy_export

from hass-ams.

Bo1jo avatar Bo1jo commented on May 23, 2024

I still seem to have a problem and the sensors aren't updated:

2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams] Last FRAME_FLAG detected, return queue for decoding= [162, 67, 65, 8, 131, 19, 133, 235, 230, 231, 0, 15, 64, 0, 0, 0, 0, 1, 27, 2, 2, 9, 6, 0, 0, 1, 0, 0, 255, 9, 12, 7, 229, 12, 22, 3, 18, 20, 10, 255, 128, 0, 255, 2, 3, 9, 6, 1, 0, 1, 7, 0, 255, 6, 0, 0, 10, 169, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 2, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 3, 7, 0, 255, 6, 0, 0, 5, 132, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 4, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 31, 7, 0, 255, 16, 0, 43, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 51, 7, 0, 255, 16, 0, 42, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 71, 7, 0, 255, 16, 0, 46, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 32, 7, 0, 255, 18, 9, 28, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 52, 7, 0, 255, 18, 9, 44, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 72, 7, 0, 255, 18, 9, 38, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 21, 7, 0, 255, 6, 0, 0, 3, 159, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 22, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 23, 7, 0, 255, 6, 0, 0, 1, 87, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 24, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 41, 7, 0, 255, 6, 0, 0, 3, 78, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 42, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 43, 7, 0, 255, 6, 0, 0, 2, 5, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 44, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 61, 7, 0, 255, 6, 0, 0, 3, 173, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 62, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 63, 7, 0, 255, 6, 0, 0, 2, 33, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 64, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 1, 8, 0, 255, 6, 2, 2, 47, 193, 2, 2, 15, 0, 22, 30, 2, 3, 9, 6, 1, 0, 2, 8, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 30, 2, 3, 9, 6, 1, 0, 3, 8, 0, 255, 6, 0, 154, 126]
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Invalid header CRC check. Try to decode anyway. DUMP:[162, 67, 65, 8, 131, 19, 133, 235, 230, 231, 0, 15, 64, 0, 0, 0, 0, 1, 27, 2, 2, 9, 6, 0, 0, 1, 0, 0, 255, 9, 12, 7, 229, 12, 22, 3, 18, 20, 10, 255, 128, 0, 255, 2, 3, 9, 6, 1, 0, 1, 7, 0, 255, 6, 0, 0, 10, 169, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 2, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 3, 7, 0, 255, 6, 0, 0, 5, 132, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 4, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 31, 7, 0, 255, 16, 0, 43, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 51, 7, 0, 255, 16, 0, 42, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 71, 7, 0, 255, 16, 0, 46, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 32, 7, 0, 255, 18, 9, 28, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 52, 7, 0, 255, 18, 9, 44, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 72, 7, 0, 255, 18, 9, 38, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 21, 7, 0, 255, 6, 0, 0, 3, 159, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 22, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 23, 7, 0, 255, 6, 0, 0, 1, 87, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 24, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 41, 7, 0, 255, 6, 0, 0, 3, 78, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 42, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 43, 7, 0, 255, 6, 0, 0, 2, 5, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 44, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 61, 7, 0, 255, 6, 0, 0, 3, 173, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 62, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 63, 7, 0, 255, 6, 0, 0, 2, 33, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 64, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 1, 8, 0, 255, 6, 2, 2, 47, 193, 2, 2, 15, 0, 22, 30, 2, 3, 9, 6, 1, 0, 2, 8, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 30, 2, 3, 9, 6, 1, 0, 3, 8, 0, 255, 6, 0, 154, 126]
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams] data read from port=[162, 67, 65, 8, 131, 19, 133, 235, 230, 231, 0, 15, 64, 0, 0, 0, 0, 1, 27, 2, 2, 9, 6, 0, 0, 1, 0, 0, 255, 9, 12, 7, 229, 12, 22, 3, 18, 20, 10, 255, 128, 0, 255, 2, 3, 9, 6, 1, 0, 1, 7, 0, 255, 6, 0, 0, 10, 169, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 2, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 3, 7, 0, 255, 6, 0, 0, 5, 132, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 4, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 31, 7, 0, 255, 16, 0, 43, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 51, 7, 0, 255, 16, 0, 42, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 71, 7, 0, 255, 16, 0, 46, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 32, 7, 0, 255, 18, 9, 28, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 52, 7, 0, 255, 18, 9, 44, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 72, 7, 0, 255, 18, 9, 38, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 21, 7, 0, 255, 6, 0, 0, 3, 159, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 22, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 23, 7, 0, 255, 6, 0, 0, 1, 87, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 24, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 41, 7, 0, 255, 6, 0, 0, 3, 78, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 42, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 43, 7, 0, 255, 6, 0, 0, 2, 5, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 44, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 61, 7, 0, 255, 6, 0, 0, 3, 173, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 62, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 63, 7, 0, 255, 6, 0, 0, 2, 33, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 64, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 1, 8, 0, 255, 6, 2, 2, 47, 193, 2, 2, 15, 0, 22, 30, 2, 3, 9, 6, 1, 0, 2, 8, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 30, 2, 3, 9, 6, 1, 0, 3, 8, 0, 255, 6, 0, 154, 126]
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] list_type is 2
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] meter_date_time, OBIS:[0, 0, 1, 0, 0, 255], Index:(23, 29), Type:9 Double OBIS
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] meter_date_time, [0, 0, 1, 0, 0, 255], 2021, 12, 22, Wednesday, 18, 20, 10, 2021-12-22-18-20-20-10
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_import, OBIS:[1, 0, 1, 7, 0, 255], Index:(47, 53), Type:6 Double OBIS
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 2729, Index:(54, 58)
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_export, OBIS:[1, 0, 2, 7, 0, 255], Index:(68, 74), Type:6 Double OBIS
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 0, Index:(75, 79)
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_import, OBIS:[1, 0, 3, 7, 0, 255], Index:(89, 95), Type:6 Double OBIS
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 1412, Index:(96, 100)
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_export, OBIS:[1, 0, 4, 7, 0, 255], Index:(110, 116), Type:6 Double OBIS
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 0, Index:(117, 121)
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_import_l1, OBIS:[1, 0, 21, 7, 0, 255], Index:(245, 251), Type:6 Single OBIS
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 927 Index:(252, 256)
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_export_l1, OBIS:[1, 0, 22, 7, 0, 255], Index:(266, 272), Type:6 Single OBIS
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 0 Index:(273, 277)
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_import_l1, OBIS:[1, 0, 23, 7, 0, 255], Index:(287, 293), Type:6 Single OBIS
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 343 Index:(294, 298)
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_export_l1, OBIS:[1, 0, 24, 7, 0, 255], Index:(308, 314), Type:6 Single OBIS
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 0 Index:(315, 319)
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_import_l2, OBIS:[1, 0, 41, 7, 0, 255], Index:(329, 335), Type:6 Single OBIS
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 846 Index:(336, 340)
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_export_l2, OBIS:[1, 0, 42, 7, 0, 255], Index:(350, 356), Type:6 Single OBIS
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 0 Index:(357, 361)
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_import_l2, OBIS:[1, 0, 43, 7, 0, 255], Index:(371, 377), Type:6 Single OBIS
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 517 Index:(378, 382)
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_export_l2, OBIS:[1, 0, 44, 7, 0, 255], Index:(392, 398), Type:6 Single OBIS
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 0 Index:(399, 403)
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_import_l3, OBIS:[1, 0, 61, 7, 0, 255], Index:(413, 419), Type:6 Single OBIS
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 941 Index:(420, 424)
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_export_l3, OBIS:[1, 0, 62, 7, 0, 255], Index:(434, 440), Type:6 Single OBIS
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 0 Index:(441, 445)
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_import_l3, OBIS:[1, 0, 63, 7, 0, 255], Index:(455, 461), Type:6 Single OBIS
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 545 Index:(462, 466)
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_export_l3, OBIS:[1, 0, 64, 7, 0, 255], Index:(476, 482), Type:6 Single OBIS
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 0 Index:(483, 487)
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_current_l1, OBIS:[1, 0, 31, 7, 0, 255], Index:(131, 137), Type:16 Double OBIS
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 16/18: 4.3, Index:(138, 140)
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_current_l2, OBIS:[1, 0, 51, 7, 0, 255], Index:(150, 156), Type:16 Double OBIS
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 16/18: 4.2, Index:(157, 159)
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_current_l3, OBIS:[1, 0, 71, 7, 0, 255], Index:(169, 175), Type:16 Double OBIS
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 16/18: 4.6, Index:(176, 178)
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_voltage_l1, OBIS:[1, 0, 32, 7, 0, 255], Index:(188, 194), Type:18 Double OBIS
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 16/18: 233.2, Index:(195, 197)
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_voltage_l2, OBIS:[1, 0, 52, 7, 0, 255], Index:(207, 213), Type:18 Double OBIS
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 16/18: 234.8, Index:(214, 216)
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_voltage_l3, OBIS:[1, 0, 72, 7, 0, 255], Index:(226, 232), Type:18 Double OBIS
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 16/18: 234.2, Index:(233, 235)
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_energy_import, OBIS:[1, 0, 1, 8, 0, 255], Index:(497, 503), Type:6 Double OBIS
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 33697.729, Index:(504, 508)
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_energy_export, OBIS:[1, 0, 2, 8, 0, 255], Index:(518, 524), Type:6 Double OBIS
2021-12-22 18:20:09 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 0.0, Index:(525, 529)
2021-12-22 18:20:09 WARNING (Thread-3) [custom_components.ams] Something went wrong: <class 'IndexError'>

Seems I always get a message "invalid header CRC check" and "invalid packet size", even when the sensors are updated correctly:

2021-12-22 18:19:57 DEBUG (Thread-3) [custom_components.ams] Last FRAME_FLAG detected, return queue for decoding= [162, 67, 65, 8, 131, 19, 133, 235, 230, 231, 0, 15, 64, 0, 0, 0, 0, 1, 27, 2, 2, 9, 6, 0, 0, 1, 0, 0, 255, 9, 12, 7, 229, 12, 22, 3, 18, 20, 0, 255, 128, 0, 255, 2, 3, 9, 6, 1, 0, 1, 7, 0, 255, 6, 0, 0, 10, 167, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 2, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 3, 7, 0, 255, 6, 0, 0, 5, 126]
2021-12-22 18:19:57 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Invalid header CRC check. Try to decode anyway. DUMP:[162, 67, 65, 8, 131, 19, 133, 235, 230, 231, 0, 15, 64, 0, 0, 0, 0, 1, 27, 2, 2, 9, 6, 0, 0, 1, 0, 0, 255, 9, 12, 7, 229, 12, 22, 3, 18, 20, 0, 255, 128, 0, 255, 2, 3, 9, 6, 1, 0, 1, 7, 0, 255, 6, 0, 0, 10, 167, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 2, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 3, 7, 0, 255, 6, 0, 0, 5, 126]
2021-12-22 18:19:57 DEBUG (Thread-3) [custom_components.ams] data read from port=[162, 67, 65, 8, 131, 19, 133, 235, 230, 231, 0, 15, 64, 0, 0, 0, 0, 1, 27, 2, 2, 9, 6, 0, 0, 1, 0, 0, 255, 9, 12, 7, 229, 12, 22, 3, 18, 20, 0, 255, 128, 0, 255, 2, 3, 9, 6, 1, 0, 1, 7, 0, 255, 6, 0, 0, 10, 167, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 2, 7, 0, 255, 6, 0, 0, 0, 0, 2, 2, 15, 0, 22, 27, 2, 3, 9, 6, 1, 0, 3, 7, 0, 255, 6, 0, 0, 5, 126]
2021-12-22 18:19:57 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] list_type is 2
2021-12-22 18:19:57 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] meter_date_time, OBIS:[0, 0, 1, 0, 0, 255], Index:(23, 29), Type:9 Double OBIS
2021-12-22 18:19:57 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] meter_date_time, [0, 0, 1, 0, 0, 255], 2021, 12, 22, Wednesday, 18, 20, 00, 2021-12-22-18-20-20-00
2021-12-22 18:19:57 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_import, OBIS:[1, 0, 1, 7, 0, 255], Index:(47, 53), Type:6 Double OBIS
2021-12-22 18:19:57 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 2727, Index:(54, 58)
2021-12-22 18:19:57 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_export, OBIS:[1, 0, 2, 7, 0, 255], Index:(68, 74), Type:6 Double OBIS
2021-12-22 18:19:57 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 0, Index:(75, 79)
2021-12-22 18:19:57 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_import, OBIS:[1, 0, 3, 7, 0, 255], Index:(89, 95), Type:6 Double OBIS
2021-12-22 18:19:57 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 1406, Index:(96, 100)
2021-12-22 18:19:58 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_import
2021-12-22 18:19:58 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_export
2021-12-22 18:19:58 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_import
2021-12-22 18:19:58 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_export
2021-12-22 18:19:58 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_import_l1
2021-12-22 18:19:58 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_export_l1
2021-12-22 18:19:58 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_import_l1
2021-12-22 18:19:58 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_export_l1
2021-12-22 18:19:58 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_import_l2
2021-12-22 18:19:58 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_export_l2
2021-12-22 18:19:58 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_import_l2
2021-12-22 18:19:58 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_export_l2
2021-12-22 18:19:58 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_import_l3
2021-12-22 18:19:58 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_export_l3
2021-12-22 18:19:58 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_import_l3
2021-12-22 18:19:58 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_export_l3
2021-12-22 18:19:58 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_current_l1
2021-12-22 18:19:58 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_current_l2
2021-12-22 18:19:58 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_current_l3
2021-12-22 18:19:58 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_voltage_l1
2021-12-22 18:19:58 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_voltage_l2
2021-12-22 18:19:58 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_voltage_l3
2021-12-22 18:19:58 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_energy_import
2021-12-22 18:19:58 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_energy_export
2021-12-22 18:19:58 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_energy_import
2021-12-22 18:19:58 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_energy_export
2021-12-22 18:19:59 DEBUG (Thread-3) [custom_components.ams] Last FRAME_FLAG detected, return queue for decoding= [17, 2, 2, 15, 0, 22, 32, 2, 3, 9, 6, 1, 0, 4, 8, 0, 255, 6, 0, 52, 246, 230, 2, 2, 15, 0, 22, 32, 20, 240, 126]
2021-12-22 18:19:59 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Invalid packet size 31. Try to decode anyway. DUMP: [17, 2, 2, 15, 0, 22, 32, 2, 3, 9, 6, 1, 0, 4, 8, 0, 255, 6, 0, 52, 246, 230, 2, 2, 15, 0, 22, 32, 20, 240, 126]
2021-12-22 18:19:59 DEBUG (Thread-3) [custom_components.ams] data read from port=[17, 2, 2, 15, 0, 22, 32, 2, 3, 9, 6, 1, 0, 4, 8, 0, 255, 6, 0, 52, 246, 230, 2, 2, 15, 0, 22, 32, 20, 240, 126]
2021-12-22 18:19:59 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] list_type is 52
2021-12-22 18:19:59 WARNING (Thread-3) [custom_components.ams] Something went wrong: <class 'KeyError'>

from hass-ams.

frankiboy1 avatar frankiboy1 commented on May 23, 2024

This seems to be a problem with the way packets are fetched from the serial buffer. A packet of data, or frame, starts with a byte value 126 and end with a byte value 126. If any of data in the frame contains the value 126, hass-ams will terminate the frame early. This means the current packet will be invalid, the next packet will be invalid (as it does not start with 126) and potentially this can influence several packets in the future as the frame building is out of sync.

The worst case is probably the case where most significant bits of active energy import (or any of the other cumulative values) are encoded as 126. This will cause the frame to be prematurely terminated for a long time. This could last for several years.

from hass-ams.

turbokongen avatar turbokongen commented on May 23, 2024

@Bo1jo I missed one line in the base code. Please download the latest serialimp, and try again.
@frankiboy1 This is a forbidden value in the protocol. Refer to ISO/IEC 13239. To make it short, the transmitting device replaces that value with another.

from hass-ams.

frankiboy1 avatar frankiboy1 commented on May 23, 2024

I must admit I have not read the protocol specification. But it looks like the same is the case for Kaifa. I did some testing, where I decoded the packet size in the read_bytes function. Then output both the decoded value and the actual value based on the FRAME_FLAGs. All failing packets where too short compared to the encoded packet size, and all were followed by another invalid packet with the remaining bytes from the previous packet.

So if the decoded packet size was 60, I could get one invalid packet of size 40 followed by another invalid packet of size 20.

I've uploaded a PR which uses the encoded packet size in addition to the FRAME_FLAG. Without my changes, 5-10% of the packets were invalid. And 1 or 2 of the hourly packets were missing every day. With my changes, I have not seen any invalid packets.

from hass-ams.

turbokongen avatar turbokongen commented on May 23, 2024

@frankiboy1 I will put your PR into my system and test with my kamstrup meter. 👍

from hass-ams.

Bo1jo avatar Bo1jo commented on May 23, 2024

I have tested the new serialimp AND the PR from @frankiboy1 for about 24 hours (with two separate HA installations/USB-dongels reading data from the same Aidon-meter.

The serialimp have so far about 300+ invalid packages and the PR 0. So the PR seems to be working fine with Aidon_se.

from hass-ams.

highzeth avatar highzeth commented on May 23, 2024

Similar experience with kaifa_no, many invalid packets and 2-3 hourly packets missed due to it. After applying the PR from @frankiboy1, over 24 hours and 0 invalid packets.

from hass-ams.

turbokongen avatar turbokongen commented on May 23, 2024

Indeed, the PR work better than my code. Also confirmed with my Kamstrup meter. I will merge and release. Thank you @frankiboy1 for resolving this issue 💯

from hass-ams.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.