turbokongen / hass-AMS

Custom component reading AMS through MBus adapter into HomeAssistant
42 stars 10 forks source link

Random data read error, aidon_se #67

Closed Bo1jo closed 2 years ago

Bo1jo commented 2 years ago

I get an data read error every 1-2 weeks. It last for 0.5-2 hours, and then everything works fine again. The error from the log:

2021-11-28 21:13:53 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Invalid frame CRC check 2021-11-28 21:13:53 DEBUG (Thread-3) [custom_components.ams] failed package: [126, 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, 11, 28, 0, 21, 13, 50, 255, 128, 0, 255, 2, 3, 9, 6, 1, 0, 1, 7, 0, 255, 6, 0, 0, 3, 44, 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, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 4, 7, 0, 255, 6, 0, 0, 0, 131, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 31, 7, 0, 255, 16, 0, 14, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 51, 7, 0, 255, 16, 0, 9, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 71, 7, 0, 255, 16, 0, 20, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 32, 7, 0, 255, 18, 9, 42, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 52, 7, 0, 255, 18, 9, 45, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 72, 7, 0, 255, 18, 9, 31, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 21, 7, 0, 255, 6, 0, 0, 0, 216, 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, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 24, 7, 0, 255, 6, 0, 0, 1, 7, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 41, 7, 0, 255, 6, 0, 0, 0, 196, 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, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 44, 7, 0, 255, 6, 0, 0, 0, 122, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 61, 7, 0, 255, 6, 0, 0, 1, 141, 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, 1, 5, 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, 1, 234, 139, 119, 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, 145, 147, 151, 2, 2, 15, 0, 22, 32, 2, 3, 9, 6, 1, 0, 4, 8, 0, 255, 6, 0, 52, 126] 2021-11-28 21:13:53 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Invalid packet size 10 2021-11-28 21:13:53 DEBUG (Thread-3) [custom_components.ams] failed package: [251, 2, 2, 15, 0, 22, 32, 238, 139, 126]

2021-11-28 21:14:03 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Invalid frame CRC check 2021-11-28 21:14:03 DEBUG (Thread-3) [custom_components.ams] failed package: [126, 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, 11, 28, 0, 21, 14, 0, 255, 128, 0, 255, 2, 3, 9, 6, 1, 0, 1, 7, 0, 255, 6, 0, 0, 3, 46, 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, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 4, 7, 0, 255, 6, 0, 0, 0, 132, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 31, 7, 0, 255, 16, 0, 14, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 51, 7, 0, 255, 16, 0, 9, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 71, 7, 0, 255, 16, 0, 20, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 32, 7, 0, 255, 18, 9, 42, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 52, 7, 0, 255, 18, 9, 46, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 72, 7, 0, 255, 18, 9, 34, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 21, 7, 0, 255, 6, 0, 0, 0, 217, 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, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 24, 7, 0, 255, 6, 0, 0, 1, 13, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 41, 7, 0, 255, 6, 0, 0, 0, 195, 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, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 44, 7, 0, 255, 6, 0, 0, 0, 122, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 61, 7, 0, 255, 6, 0, 0, 1, 142, 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, 1, 5, 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, 1, 234, 139, 119, 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, 145, 147, 151, 2, 2, 15, 0, 22, 32, 2, 3, 9, 6, 1, 0, 4, 8, 0, 255, 6, 0, 52, 126] 2021-11-28 21:14:03 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Invalid packet size 10 2021-11-28 21:14:03 DEBUG (Thread-3) [custom_components.ams] failed package: [251, 2, 2, 15, 0, 22, 32, 88, 227, 126]

The error keeps repeating itself every 10th second (every data-read). Until suddenly everything works fine again:

2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams] data read from port=[126, 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, 11, 28, 0, 21, 14, 10, 255, 128, 0, 255, 2, 3, 9, 6, 1, 0, 1, 7, 0, 255, 6, 0, 0, 3, 45, 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, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 4, 7, 0, 255, 6, 0, 0, 0, 132, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 31, 7, 0, 255, 16, 0, 14, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 51, 7, 0, 255, 16, 0, 9, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 71, 7, 0, 255, 16, 0, 20, 2, 2, 15, 255, 22, 33, 2, 3, 9, 6, 1, 0, 32, 7, 0, 255, 18, 9, 48, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 52, 7, 0, 255, 18, 9, 43, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 72, 7, 0, 255, 18, 9, 25, 2, 2, 15, 255, 22, 35, 2, 3, 9, 6, 1, 0, 21, 7, 0, 255, 6, 0, 0, 0, 217, 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, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 24, 7, 0, 255, 6, 0, 0, 1, 15, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 41, 7, 0, 255, 6, 0, 0, 0, 195, 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, 0, 0, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 44, 7, 0, 255, 6, 0, 0, 0, 122, 2, 2, 15, 0, 22, 29, 2, 3, 9, 6, 1, 0, 61, 7, 0, 255, 6, 0, 0, 1, 142, 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, 1, 4, 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, 1, 234, 139, 132, 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, 145, 147, 151, 2, 2, 15, 0, 22, 32, 2, 3, 9, 6, 1, 0, 4, 8, 0, 255, 6, 0, 52, 127, 1, 2, 2, 15, 0, 22, 32, 68, 28, 126] 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] list_type is 27 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] meter_date_time, OBIS:[0, 0, 1, 0, 0, 255], Index:(24, 30), Type:9 Double OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] meter_date_time, [0, 0, 1, 0, 0, 255], 2021, 11, 28, None, 21, 14, 10, 2021-11-28-21-14-14-10 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_import, OBIS:[1, 0, 1, 7, 0, 255], Index:(48, 54), Type:6 Double OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 813, Index:(55, 59) 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_export, OBIS:[1, 0, 2, 7, 0, 255], Index:(69, 75), Type:6 Double OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 0, Index:(76, 80) 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_import, OBIS:[1, 0, 3, 7, 0, 255], Index:(90, 96), Type:6 Double OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 0, Index:(97, 101) 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_export, OBIS:[1, 0, 4, 7, 0, 255], Index:(111, 117), Type:6 Double OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 132, Index:(118, 122) 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_import_l1, OBIS:[1, 0, 21, 7, 0, 255], Index:(246, 252), Type:6 Single OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 217 Index:(253, 257) 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_export_l1, OBIS:[1, 0, 22, 7, 0, 255], Index:(267, 273), Type:6 Single OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 0 Index:(274, 278) 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_import_l1, OBIS:[1, 0, 23, 7, 0, 255], Index:(288, 294), Type:6 Single OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 0 Index:(295, 299) 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_export_l1, OBIS:[1, 0, 24, 7, 0, 255], Index:(309, 315), Type:6 Single OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 271 Index:(316, 320) 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_import_l2, OBIS:[1, 0, 41, 7, 0, 255], Index:(330, 336), Type:6 Single OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 195 Index:(337, 341) 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_export_l2, OBIS:[1, 0, 42, 7, 0, 255], Index:(351, 357), Type:6 Single OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 0 Index:(358, 362) 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_import_l2, OBIS:[1, 0, 43, 7, 0, 255], Index:(372, 378), Type:6 Single OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 0 Index:(379, 383) 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_export_l2, OBIS:[1, 0, 44, 7, 0, 255], Index:(393, 399), Type:6 Single OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 122 Index:(400, 404) 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_import_l3, OBIS:[1, 0, 61, 7, 0, 255], Index:(414, 420), Type:6 Single OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 398 Index:(421, 425) 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_power_export_l3, OBIS:[1, 0, 62, 7, 0, 255], Index:(435, 441), Type:6 Single OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 0 Index:(442, 446) 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_import_l3, OBIS:[1, 0, 63, 7, 0, 255], Index:(456, 462), Type:6 Single OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 260 Index:(463, 467) 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_power_export_l3, OBIS:[1, 0, 64, 7, 0, 255], Index:(477, 483), Type:6 Single OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value single OBIS type 6: 0 Index:(484, 488) 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_current_l1, OBIS:[1, 0, 31, 7, 0, 255], Index:(132, 138), Type:16 Double OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 16/18: 1.4, Index:(139, 141) 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_current_l2, OBIS:[1, 0, 51, 7, 0, 255], Index:(151, 157), Type:16 Double OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 16/18: 0.9, Index:(158, 160) 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_current_l3, OBIS:[1, 0, 71, 7, 0, 255], Index:(170, 176), Type:16 Double OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 16/18: 2.0, Index:(177, 179) 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_voltage_l1, OBIS:[1, 0, 32, 7, 0, 255], Index:(189, 195), Type:18 Double OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 16/18: 235.2, Index:(196, 198) 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_voltage_l2, OBIS:[1, 0, 52, 7, 0, 255], Index:(208, 214), Type:18 Double OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 16/18: 234.7, Index:(215, 217) 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_voltage_l3, OBIS:[1, 0, 72, 7, 0, 255], Index:(227, 233), Type:18 Double OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 16/18: 232.9, Index:(234, 236) 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_energy_import, OBIS:[1, 0, 1, 8, 0, 255], Index:(498, 504), Type:6 Double OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 32148.356, Index:(505, 509) 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_active_energy_export, OBIS:[1, 0, 2, 8, 0, 255], Index:(519, 525), Type:6 Double OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 0.0, Index:(526, 530) 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_energy_import, OBIS:[1, 0, 3, 8, 0, 255], Index:(540, 546), Type:6 Double OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 9540.503, Index:(547, 551) 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] ams_reactive_energy_export, OBIS:[1, 0, 4, 8, 0, 255], Index:(561, 567), Type:6 Double OBIS 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams.parsers.aidon_se] Value double OBIS type 6: 3440.385, Index:(568, 572) 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams] miss_attrs=[] 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams] Got 26 new devices from the serial 2021-11-28 21:14:13 DEBUG (Thread-3) [custom_components.ams] DUMP {'ams_active_power_import': {'state': 813, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.1.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}, 'ams_active_power_export': {'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.2.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}, 'ams_reactive_power_import': {'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.3.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}, 'ams_reactive_power_export': {'state': 132, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.4.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}, 'ams_active_power_import_l1': {'state': 217, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.21.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}, 'ams_active_power_export_l1': {'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.22.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}, 'ams_reactive_power_import_l1': {'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.23.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}, 'ams_reactive_power_export_l1': {'state': 271, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.24.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}, 'ams_active_power_import_l2': {'state': 195, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.41.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}, 'ams_active_power_export_l2': {'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.42.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}, 'ams_reactive_power_import_l2': {'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.43.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}, 'ams_reactive_power_export_l2': {'state': 122, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.44.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}, 'ams_active_power_import_l3': {'state': 398, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.61.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}, 'ams_active_power_export_l3': {'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.62.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}}, 'ams_reactive_power_import_l3': {'state': 260, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.63.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}, 'ams_reactive_power_export_l3': {'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.64.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}}, 'ams_current_l1': {'state': 1.4, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.31.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'A', 'icon': 'mdi:current-ac'}}, 'ams_current_l2': {'state': 0.9, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.51.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'A', 'icon': 'mdi:current-ac'}}, 'ams_current_l3': {'state': 2.0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.71.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'A', 'icon': 'mdi:current-ac'}}, 'ams_voltage_l1': {'state': 235.2, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.32.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}}, 'ams_voltage_l2': {'state': 234.7, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.52.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}}, 'ams_voltage_l3': {'state': 232.9, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.72.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}}, 'ams_active_energy_import': {'state': 32148.356, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.1.8.0.255', 'meter_serial': '00', 'unit_of_measurement': 'kWh', 'icon': 'mdi:gauge', 'meter_date_time': '2021-11-28-21-14-14-10', 'device_class': 'energy', 'state_class': 'total_increasing'}}, 'ams_active_energy_export': {'state': 0.0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.2.8.0.255', 'meter_serial': '00', 'unit_of_measurement': 'kWh', 'icon': 'mdi:gauge', 'meter_date_time': '2021-11-28-21-14-14-10', 'device_class': 'energy', 'state_class': 'total_increasing'}}, 'ams_reactive_energy_import': {'state': 9540.503, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.3.8.0.255', 'meter_serial': '00', 'unit_of_measurement': 'kVAr', 'icon': 'mdi:gauge', 'meter_date_time': '2021-11-28-21-14-14-10', 'device_class': 'energy'}}, 'ams_reactive_energy_export': {'state': 3440.385, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.4.8.0.255', 'meter_serial': '00', 'unit_of_measurement': 'kVAr', 'icon': 'mdi:gauge', 'meter_date_time': '2021-11-28-21-14-14-10', 'device_class': 'energy'}}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_import 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_active_power_import DUMP sensor_states {'name': 'ams_active_power_import', 'state': 813, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.1.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_export 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_active_power_export DUMP sensor_states {'name': 'ams_active_power_export', 'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.2.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_import 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_reactive_power_import DUMP sensor_states {'name': 'ams_reactive_power_import', 'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.3.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_export 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_reactive_power_export DUMP sensor_states {'name': 'ams_reactive_power_export', 'state': 132, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.4.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_import_l1 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_active_power_import_l1 DUMP sensor_states {'name': 'ams_active_power_import_l1', 'state': 217, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.21.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_export_l1 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_active_power_export_l1 DUMP sensor_states {'name': 'ams_active_power_export_l1', 'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.22.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_import_l1 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_reactive_power_import_l1 DUMP sensor_states {'name': 'ams_reactive_power_import_l1', 'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.23.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_export_l1 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_reactive_power_export_l1 DUMP sensor_states {'name': 'ams_reactive_power_export_l1', 'state': 271, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.24.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_import_l2 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_active_power_import_l2 DUMP sensor_states {'name': 'ams_active_power_import_l2', 'state': 195, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.41.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_export_l2 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_active_power_export_l2 DUMP sensor_states {'name': 'ams_active_power_export_l2', 'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.42.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_import_l2 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_reactive_power_import_l2 DUMP sensor_states {'name': 'ams_reactive_power_import_l2', 'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.43.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_export_l2 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_reactive_power_export_l2 DUMP sensor_states {'name': 'ams_reactive_power_export_l2', 'state': 122, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.44.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_import_l3 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_active_power_import_l3 DUMP sensor_states {'name': 'ams_active_power_import_l3', 'state': 398, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.61.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_power_export_l3 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_active_power_export_l3 DUMP sensor_states {'name': 'ams_active_power_export_l3', 'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.62.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'W', 'icon': 'mdi:gauge'}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_import_l3 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_reactive_power_import_l3 DUMP sensor_states {'name': 'ams_reactive_power_import_l3', 'state': 260, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.63.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_power_export_l3 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_reactive_power_export_l3 DUMP sensor_states {'name': 'ams_reactive_power_export_l3', 'state': 0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.64.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'VAr', 'icon': 'mdi:gauge'}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_current_l1 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_current_l1 DUMP sensor_states {'name': 'ams_current_l1', 'state': 1.4, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.31.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'A', 'icon': 'mdi:current-ac'}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_current_l2 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_current_l2 DUMP sensor_states {'name': 'ams_current_l2', 'state': 0.9, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.51.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'A', 'icon': 'mdi:current-ac'}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_current_l3 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_current_l3 DUMP sensor_states {'name': 'ams_current_l3', 'state': 2.0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.71.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'A', 'icon': 'mdi:current-ac'}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_voltage_l1 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_voltage_l1 DUMP sensor_states {'name': 'ams_voltage_l1', 'state': 235.2, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.32.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_voltage_l2 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_voltage_l2 DUMP sensor_states {'name': 'ams_voltage_l2', 'state': 234.7, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.52.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_voltage_l3 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_voltage_l3 DUMP sensor_states {'name': 'ams_voltage_l3', 'state': 232.9, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.72.7.0.255', 'meter_serial': '00', 'unit_of_measurement': 'V', 'icon': 'mdi:flash'}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_energy_import 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_active_energy_import DUMP sensor_states {'name': 'ams_active_energy_import', 'state': 32148.356, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.1.8.0.255', 'meter_serial': '00', 'unit_of_measurement': 'kWh', 'icon': 'mdi:gauge', 'meter_date_time': '2021-11-28-21-14-14-10', 'device_class': 'energy', 'state_class': 'total_increasing'}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_active_energy_export 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_active_energy_export DUMP sensor_states {'name': 'ams_active_energy_export', 'state': 0.0, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.2.8.0.255', 'meter_serial': '00', 'unit_of_measurement': 'kWh', 'icon': 'mdi:gauge', 'meter_date_time': '2021-11-28-21-14-14-10', 'device_class': 'energy', 'state_class': 'total_increasing'}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_energy_import 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_reactive_energy_import DUMP sensor_states {'name': 'ams_reactive_energy_import', 'state': 9540.503, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.3.8.0.255', 'meter_serial': '00', 'unit_of_measurement': 'kVAr', 'icon': 'mdi:gauge', 'meter_date_time': '2021-11-28-21-14-14-10', 'device_class': 'energy'}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Updating sensor ams_reactive_energy_export 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Init ams_reactive_energy_export DUMP sensor_states {'name': 'ams_reactive_energy_export', 'state': 3440.385, 'attributes': {'meter_manufacturer': 'AIDON_H0001', 'meter_type': 'RF2-system module Integrated HAN', 'obis_code': '1.0.4.8.0.255', 'meter_serial': '00', 'unit_of_measurement': 'kVAr', 'icon': 'mdi:gauge', 'meter_date_time': '2021-11-28-21-14-14-10', 'device_class': 'energy'}} 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Trying to add 26 sensors: [<Entity ams_active_power_import_00: 813>, <Entity ams_active_power_export_00: 0>, <Entity ams_reactive_power_import_00: 0>, <Entity ams_reactive_power_export_00: 132>, <Entity ams_active_power_import_l1_00: 217>, <Entity ams_active_power_export_l1_00: 0>, <Entity ams_reactive_power_import_l1_00: 0>, <Entity ams_reactive_power_export_l1_00: 271>, <Entity ams_active_power_import_l2_00: 195>, <Entity ams_active_power_export_l2_00: 0>, <Entity ams_reactive_power_import_l2_00: 0>, <Entity ams_reactive_power_export_l2_00: 122>, <Entity ams_active_power_import_l3_00: 398>, <Entity ams_active_power_export_l3_00: 0>, <Entity ams_reactive_power_import_l3_00: 260>, <Entity ams_reactive_power_export_l3_00: 0>, <Entity ams_current_l1_00: 1.4>, <Entity ams_current_l2_00: 0.9>, <Entity ams_current_l3_00: 2.0>, <Entity ams_voltage_l1_00: 235.2>, <Entity ams_voltage_l2_00: 234.7>, <Entity ams_voltage_l3_00: 232.9>, <Entity ams_active_energy_import_00: 32148.356>, <Entity ams_active_energy_export_00: 0.0>, <Entity ams_reactive_energy_import_00: 9540.503>, <Entity ams_reactive_energy_export_00: 3440.385>] 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_active_power_import 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_active_power_export 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_reactive_power_import 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_reactive_power_export 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_active_power_import_l1 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_active_power_export_l1 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_reactive_power_import_l1 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_reactive_power_export_l1 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_active_power_import_l2 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_active_power_export_l2 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_reactive_power_import_l2 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_reactive_power_export_l2 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_active_power_import_l3 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_active_power_export_l3 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_reactive_power_import_l3 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_reactive_power_export_l3 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_current_l1 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_current_l2 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_current_l3 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_voltage_l1 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_voltage_l2 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] Skipping restore state for ams_voltage_l3 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] The old state 32141.27 was set more then 60 minutes ago 2021-11-28 17:34:13.228203+00:00, ignoring it. 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] The old state 0.0 was set more then 60 minutes ago 2021-11-24 10:59:24.518393+00:00, ignoring it. 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] The old state 9538.33 was set more then 60 minutes ago 2021-11-28 17:32:13.800559+00:00, ignoring it. 2021-11-28 21:14:13 DEBUG (MainThread) [custom_components.ams.sensor] The old state 3440.125 was set more then 60 minutes ago 2021-11-28 17:34:13.229466+00:00, ignoring it.

Any clues on what might cause this error?

sandos commented 2 years ago

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.

sandos commented 2 years ago

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

Bo1jo commented 2 years ago

Sorry for late resonse!

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

turbokongen commented 2 years ago

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.

Bo1jo commented 2 years ago

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

Bo1jo commented 2 years ago

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) [customcomponents.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) [customcomponents.ams] Something went wrong: <class 'KeyError'>

frankiboy1 commented 2 years ago

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.

turbokongen commented 2 years ago

@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.

frankiboy1 commented 2 years ago

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.

turbokongen commented 2 years ago

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

Bo1jo commented 2 years ago

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.

highzeth commented 2 years ago

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.

turbokongen commented 2 years ago

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 💯