UtilitechAS / amsreader-firmware

ESP8266 and ESP32 compatible firmware to read, interpret and publish data to MQTT from smart electrical meters, both DLMS and DSMR is supported
Other
389 stars 73 forks source link

Upgraded from 2.1.17 to 2.2.12 now bad mqtt data #517

Closed ACrazyConcept closed 1 year ago

ACrazyConcept commented 1 year ago

Describe the bug After I upgraded to 2.2.12 it did seem to work for a few minutes. Then it started getting "bad" data and the web interface is sometimes not responsive. I then tried to unplug and plug it in again and it did not get connected at all for a while. I have now managed to get response and retrieve some debugging data.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Hardware information:

Relevant firmware information:

Additional context Add any other context about the problem here.

image

*** Remote debug - over telnet - for ESP32 - version 3.0.5
* Host name: ams-cf58 IP:10.0.0.238 Mac address:58:CF:79:A3:FE:88
* Free Heap RAM: 119132
* ESP SDK version: v4.4.3
******************************************************
* Commands:
    ? or help -> display these help of commands
    q -> quit (close this connection)
    m -> display memory available
    v -> set debug level to verbose
    d -> set debug level to debug
    i -> set debug level to info
    w -> set debug level to warning
    e -> set debug level to errors
    s -> set debug silence on/off
    l -> show debug level
    t -> show time (millis)
    profiler:
      p      -> show time between actual and last message (in millis)
      p min  -> show only if time is this minimal
      P time -> set debug level to profiler
    c -> show colors
    filter:
          filter <string> -> show only debugs with this
          nofilter        -> disable the filter

* Please type the command and press enter to execute.(? or h for this help)
***
(D) Serving /data.json over http...
(D) Serving /data.json over http...
(V) (unwrapData)(C0) HDLC frame:
(V) 7E A1 3B 41  03 13 C8 F6  E6 E7 00 DB  08 4B 41 4D
(V) 45 01 C7 F0  F9 82 01 22  30 00 3A 24  31 2C C1 1B
(V) 2A E7 55 AA  8D 99 AC 0C  58 F1 B2 D1  FA F6 A1 CC
(V) C7 42 68 5F  F7 DA 23 F0  32 80 0B F1  AD 3A 53 6F
(V) 23 B6 A0 66  10 9E 99 0D  F1 88 99 D7  0E 9D B7 27
(V) 5B 3E 8D 67  0D 9E 06 B0  FA 39 C6 9B  FF 97 DE 74
(V) 25 0B 6D 2A  C6 C8 64 97  90 A0 48 71  2D 46 AC 57
(V) 32 25 57 83  FC 58 4E 5E  D8 61 3C 11  E9 F3 30 1D
(V) D5 56 B5 10  F4 B4 C1 2E  05 64 4B 13  95 39 49 C3
(V) D6 61 D9 1E  D4 CC 94 68  FF B0 02 6A  D2 36 09 76
(V) AB 99 6E C9  85 A8 61 C7  28 D1 9C FF  06 AD 99 AD
(V) 4D 37 2D 85  21 34 F5 FE  24 7A CF 78  A5 9C 47 EC
(V) 8D 66 1D 89  4B 5F 6E 6B  4A D8 2D 7D  D8 3A DA B1
(V) 54 01 A1 8D  D4 08 C0 D8  57 6F 32 3D  68 03 C4 47
(V) A5 5D 3A 91  7C 14 47 5C  9D 96 22 6D  75 0D BA 6B
(V) D7 00 80 4C  09 6D A8 BA  6F 57 33 1D  65 AE 1A 2F
(V) F3 5E D5 3F  C5 42 4D DF  EA 4B 8D E5  AA 98 6C BB
(V) 7B 20 A8 A6  B4 B7 E8 63  7D 85 B0 C8  CC 35 D0 EA
(V) ED 15 C6 EC  A2 71 7B B5  2D A1 77 32  66 FF 04 1B
(V) EE 46 85 F7  0B A1 92 D5  4D 16 AC EB  7E
(V) (unwrapData)(C0) LLC frame:
(V) E6 E7 00 DB  08 4B 41 4D  45 01 C7 F0  F9 82 01 22
(V) 30 00 3A 24  31 2C C1 1B  2A E7 55 AA  8D 99 AC 0C
(V) 58 F1 B2 D1  FA F6 A1 CC  C7 42 68 5F  F7 DA 23 F0
(V) 32 80 0B F1  AD 3A 53 6F  23 B6 A0 66  10 9E 99 0D
(V) F1 88 99 D7  0E 9D B7 27  5B 3E 8D 67  0D 9E 06 B0
(V) FA 39 C6 9B  FF 97 DE 74  25 0B 6D 2A  C6 C8 64 97
(V) 90 A0 48 71  2D 46 AC 57  32 25 57 83  FC 58 4E 5E
(V) D8 61 3C 11  E9 F3 30 1D  D5 56 B5 10  F4 B4 C1 2E
(V) 05 64 4B 13  95 39 49 C3  D6 61 D9 1E  D4 CC 94 68
(V) FF B0 02 6A  D2 36 09 76  AB 99 6E C9  85 A8 61 C7
(V) 28 D1 9C FF  06 AD 99 AD  4D 37 2D 85  21 34 F5 FE
(V) 24 7A CF 78  A5 9C 47 EC  8D 66 1D 89  4B 5F 6E 6B
(V) 4A D8 2D 7D  D8 3A DA B1  54 01 A1 8D  D4 08 C0 D8
(V) 57 6F 32 3D  68 03 C4 47  A5 5D 3A 91  7C 14 47 5C
(V) 9D 96 22 6D  75 0D BA 6B  D7 00 80 4C  09 6D A8 BA
(V) 6F 57 33 1D  65 AE 1A 2F  F3 5E D5 3F  C5 42 4D DF
(V) EA 4B 8D E5  AA 98 6C BB  7B 20 A8 A6  B4 B7 E8 63
(V) 7D 85 B0 C8  CC 35 D0 EA  ED 15 C6 EC  A2 71 7B B5
(V) 2D A1 77 32  66 FF 04 1B  EE 46 85 F7  0B A1 92 D5
(V) 4D 16
(V) (unwrapData)(C0) GCM frame:
(V) DB 08 4B 41  4D 45 01 C7  F0 F9 82 01  22 30 00 3A
(V) 24 31 0F 00  00 00 00 0C  07 E7 04 06  04 0D 31 32
(V) FF 80 00 80  02 25 0A 0E  4B 61 6D 73  74 72 75 70
(V) 5F 56 30 30  30 31 09 06  01 01 01 08  00 FF 06 00
(V) 14 A5 25 09  06 01 01 02  08 00 FF 06  00 00 00 00
(V) 09 06 01 01  03 08 00 FF  06 00 00 30  E1 09 06 01
(V) 01 04 08 00  FF 06 00 08  E4 E4 09 06  01 01 00 00
(V) 01 FF 06 01  4E 99 59 09  06 01 01 01  07 00 FF 06
(V) 00 00 01 E5  09 06 01 01  02 07 00 FF  06 00 00 00
(V) 00 09 06 01  01 03 07 00  FF 06 00 00  00 00 09 06
(V) 01 01 04 07  00 FF 06 00  00 00 AC 09  06 00 01 01
(V) 00 00 FF 09  0C 07 E7 04  06 04 0D 31  32 FF 80 00
(V) 80 09 06 01  01 20 07 00  FF 12 00 E8  09 06 01 01
(V) 1F 07 00 FF  06 00 00 00  F4 09 06 01  01 15 07 00
(V) FF 06 00 00  01 E5 09 06  01 01 21 07  00 FF 12 00
(V) 5E 09 06 01  01 0D 07 00  FF 12 00 5E  09 06 01 01
(V) 16 07 00 FF  06 00 00 00  00 09 06 01  01 16 08 00
(V) FF 06 00 00  00 00 09 06  01 01 15 08  00 FF 06 00
(V) 14 A5 25 04  1B EE 46 85  F7 0B A1 92  D5 4D 16
(V) (unwrapData)(C0) DLMS frame:
(V) 0F 00 00 00  00 0C 07 E7  04 06 04 0D  31 32 FF 80
(V) 00 80 02 25  0A 0E 4B 61  6D 73 74 72  75 70 5F 56
(V) 30 30 30 31  09 06 01 01  01 08 00 FF  06 00 14 A5
(V) 25 09 06 01  01 02 08 00  FF 06 00 00  00 00 09 06
(V) 01 01 03 08  00 FF 06 00  00 30 E1 09  06 01 01 04
(V) 08 00 FF 06  00 08 E4 E4  09 06 01 01  00 00 01 FF
(V) 06 01 4E 99  59 09 06 01  01 01 07 00  FF 06 00 00
(V) 01 E5 09 06  01 01 02 07  00 FF 06 00  00 00 00 09
(V) 06 01 01 03  07 00 FF 06  00 00 00 00  09 06 01 01
(V) 04 07 00 FF  06 00 00 00  AC 09 06 00  01 01 00 00
(V) FF 09 0C 07  E7 04 06 04  0D 31 32 FF  80 00 80 09
(V) 06 01 01 20  07 00 FF 12  00 E8 09 06  01 01 1F 07
(V) 00 FF 06 00  00 00 F4 09  06 01 01 15  07 00 FF 06
(V) 00 00 01 E5  09 06 01 01  21 07 00 FF  12 00 5E 09
(V) 06 01 01 0D  07 00 FF 12  00 5E 09 06  01 01 16 07
(V) 00 FF 06 00  00 00 00 09  06 01 01 16  08 00 FF 06
(V) 00 00 00 00  09 06 01 01  15 08 00 FF  06 00 14 A5
(V) 25
(D) (readHanPort)(C0) Received valid DLMS at 47
(V) (readHanPort)(C0) Using application data:
(V) 02 25 0A 0E  4B 61 6D 73  74 72 75 70  5F 56 30 30
(V) 30 31 09 06  01 01 01 08  00 FF 06 00  14 A5 25 09
(V) 06 01 01 02  08 00 FF 06  00 00 00 00  09 06 01 01
(V) 03 08 00 FF  06 00 00 30  E1 09 06 01  01 04 08 00
(V) FF 06 00 08  E4 E4 09 06  01 01 00 00  01 FF 06 01
(V) 4E 99 59 09  06 01 01 01  07 00 FF 06  00 00 01 E5
(V) 09 06 01 01  02 07 00 FF  06 00 00 00  00 09 06 01
(V) 01 03 07 00  FF 06 00 00  00 00 09 06  01 01 04 07
(V) 00 FF 06 00  00 00 AC 09  06 00 01 01  00 00 FF 09
(V) 0C 07 E7 04  06 04 0D 31  32 FF 80 00  80 09 06 01
(V) 01 20 07 00  FF 12 00 E8  09 06 01 01  1F 07 00 FF
(V) 06 00 00 00  F4 09 06 01  01 15 07 00  FF 06 00 00
(V) 01 E5 09 06  01 01 21 07  00 FF 12 00  5E 09 06 01
(V) 01 0D 07 00  FF 12 00 5E  09 06 01 01  16 07 00 FF
(V) 06 00 00 00  00 09 06 01  01 16 08 00  FF 06 00 00
(V) 00 00 09 06  01 01 15 08  00 FF 06 00  14 A5 25
(V) (readHanPort)(C0) DLMS
(V) (EnergyAccounting) Adding 0.0014 kWh import
(V) (EnergyAccounting)  calculating threshold, currently at 0
(V) (EnergyAccounting)  new threshold 0
(D) Serving /data.json over http...
(D) Serving /data.json over http...
(V) (unwrapData)(C0) HDLC frame:
(V) 7E A1 3B 41  03 13 C8 F6  E6 E7 00 DB  08 4B 41 4D
(V) 45 01 C7 F0  F9 82 01 22  30 00 3A 24  32 67 6C E3
(V) 83 7B B3 99  A2 73 10 53  AF BD 22 00  40 8E 70 20
(V) 93 AA 0D 3A  39 CD 32 5C  0B B8 E1 C1  DE 69 F2 14
(V) 7C E2 6E C7  38 93 2D FC  C6 51 A9 26  63 D1 3D 4F
(V) B1 9C 50 04  BB 21 70 03  95 93 0D 45  BC FF AB 43
(V) C1 5A 0F C3  08 F3 64 1E  02 E9 EB D4  B9 C8 81 E1
(V) 3E 64 3A 63  2B 6E 15 EB  C8 51 D0 D7  76 A8 B2 94
(V) F1 1F BB 2C  E6 B2 BE 0B  31 35 D8 60  A3 F2 BD 3D
(V) 3B 6E 20 11  25 1A 0A 2B  46 C7 06 D0  71 C9 19 A9
(V) FB 08 6D FB  BF F8 6B 12  7A 7D EC D4  BC D7 1E 24
(V) 32 B9 C4 29  03 F7 4A 7B  F4 EB F3 BD  C8 E3 A6 FD
(V) ED F8 F7 D6  E6 22 4E 84  21 6E 53 98  67 A7 C6 50
(V) 41 86 91 A9  A9 FF 3A BF  0E DC 1F 98  61 9B 99 BA
(V) 4E A6 A7 B7  89 31 22 41  21 FE 14 7F  C4 57 8C D3
(V) C2 BD 90 1E  AC B1 DB A0  FA AD 8E 5D  A8 B0 EE 97
(V) A1 7C 86 22  F7 F1 31 29  B0 F4 48 93  62 57 4A 3C
(V) B7 93 CA 85  F6 77 4C 63  D5 DE 1D DA  B3 2F 27 65
(V) 3D 24 64 E3  F3 6D 54 29  45 E3 CD D9  3D 89 78 98
(V) 2D 0A 00 29  B1 E1 50 49  16 61 84 41  7E
(V) (unwrapData)(C0) LLC frame:
(V) E6 E7 00 DB  08 4B 41 4D  45 01 C7 F0  F9 82 01 22
(V) 30 00 3A 24  32 67 6C E3  83 7B B3 99  A2 73 10 53
(V) AF BD 22 00  40 8E 70 20  93 AA 0D 3A  39 CD 32 5C
(V) 0B B8 E1 C1  DE 69 F2 14  7C E2 6E C7  38 93 2D FC
(V) C6 51 A9 26  63 D1 3D 4F  B1 9C 50 04  BB 21 70 03
(V) 95 93 0D 45  BC FF AB 43  C1 5A 0F C3  08 F3 64 1E
(V) 02 E9 EB D4  B9 C8 81 E1  3E 64 3A 63  2B 6E 15 EB
(V) C8 51 D0 D7  76 A8 B2 94  F1 1F BB 2C  E6 B2 BE 0B
(V) 31 35 D8 60  A3 F2 BD 3D  3B 6E 20 11  25 1A 0A 2B
(V) 46 C7 06 D0  71 C9 19 A9  FB 08 6D FB  BF F8 6B 12
(V) 7A 7D EC D4  BC D7 1E 24  32 B9 C4 29  03 F7 4A 7B
(V) F4 EB F3 BD  C8 E3 A6 FD  ED F8 F7 D6  E6 22 4E 84
(V) 21 6E 53 98  67 A7 C6 50  41 86 91 A9  A9 FF 3A BF
(V) 0E DC 1F 98  61 9B 99 BA  4E A6 A7 B7  89 31 22 41
(V) 21 FE 14 7F  C4 57 8C D3  C2 BD 90 1E  AC B1 DB A0
(V) FA AD 8E 5D  A8 B0 EE 97  A1 7C 86 22  F7 F1 31 29
(V) B0 F4 48 93  62 57 4A 3C  B7 93 CA 85  F6 77 4C 63
(V) D5 DE 1D DA  B3 2F 27 65  3D 24 64 E3  F3 6D 54 29
(V) 45 E3 CD D9  3D 89 78 98  2D 0A 00 29  B1 E1 50 49
(V) 16 61
(V) (unwrapData)(C0) GCM frame:
(V) DB 08 4B 41  4D 45 01 C7  F0 F9 82 01  22 30 00 3A
(V) 24 32 0F 00  00 00 00 0C  07 E7 04 06  04 0D 32 00
(V) FF 80 00 80  02 25 0A 0E  4B 61 6D 73  74 72 75 70
(V) 5F 56 30 30  30 31 09 06  01 01 01 08  00 FF 06 00
(V) 14 A5 25 09  06 01 01 02  08 00 FF 06  00 00 00 00
(V) 09 06 01 01  03 08 00 FF  06 00 00 30  E1 09 06 01
(V) 01 04 08 00  FF 06 00 08  E4 E4 09 06  01 01 00 00
(V) 01 FF 06 01  4E 99 59 09  06 01 01 01  07 00 FF 06
(V) 00 00 01 DD  09 06 01 01  02 07 00 FF  06 00 00 00
(V) 00 09 06 01  01 03 07 00  FF 06 00 00  00 00 09 06
(V) 01 01 04 07  00 FF 06 00  00 00 A9 09  06 00 01 01
(V) 00 00 FF 09  0C 07 E7 04  06 04 0D 32  00 FF 80 00
(V) 80 09 06 01  01 20 07 00  FF 12 00 E7  09 06 01 01
(V) 1F 07 00 FF  06 00 00 00  F1 09 06 01  01 15 07 00
(V) FF 06 00 00  01 DD 09 06  01 01 21 07  00 FF 12 00
(V) 5E 09 06 01  01 0D 07 00  FF 12 00 5E  09 06 01 01
(V) 16 07 00 FF  06 00 00 00  00 09 06 01  01 16 08 00
(V) FF 06 00 00  00 00 09 06  01 01 15 08  00 FF 06 00
(V) 14 A5 25 78  98 2D 0A 00  29 B1 E1 50  49 16 61
(V) (unwrapData)(C0) DLMS frame:
(V) 0F 00 00 00  00 0C 07 E7  04 06 04 0D  32 00 FF 80
(V) 00 80 02 25  0A 0E 4B 61  6D 73 74 72  75 70 5F 56
(V) 30 30 30 31  09 06 01 01  01 08 00 FF  06 00 14 A5
(V) 25 09 06 01  01 02 08 00  FF 06 00 00  00 00 09 06
(V) 01 01 03 08  00 FF 06 00  00 30 E1 09  06 01 01 04
(V) 08 00 FF 06  00 08 E4 E4  09 06 01 01  00 00 01 FF
(V) 06 01 4E 99  59 09 06 01  01 01 07 00  FF 06 00 00
(V) 01 DD 09 06  01 01 02 07  00 FF 06 00  00 00 00 09
(V) 06 01 01 03  07 00 FF 06  00 00 00 00  09 06 01 01
(V) 04 07 00 FF  06 00 00 00  A9 09 06 00  01 01 00 00
(V) FF 09 0C 07  E7 04 06 04  0D 32 00 FF  80 00 80 09
(V) 06 01 01 20  07 00 FF 12  00 E7 09 06  01 01 1F 07
(V) 00 FF 06 00  00 00 F1 09  06 01 01 15  07 00 FF 06
(V) 00 00 01 DD  09 06 01 01  21 07 00 FF  12 00 5E 09
(V) 06 01 01 0D  07 00 FF 12  00 5E 09 06  01 01 16 07
(V) 00 FF 06 00  00 00 00 09  06 01 01 16  08 00 FF 06
(V) 00 00 00 00  09 06 01 01  15 08 00 FF  06 00 14 A5
(V) 25
(D) (readHanPort)(C0) Received valid DLMS at 47
(V) (readHanPort)(C0) Using application data:
(V) 02 25 0A 0E  4B 61 6D 73  74 72 75 70  5F 56 30 30
(V) 30 31 09 06  01 01 01 08  00 FF 06 00  14 A5 25 09
(V) 06 01 01 02  08 00 FF 06  00 00 00 00  09 06 01 01
(V) 03 08 00 FF  06 00 00 30  E1 09 06 01  01 04 08 00
(V) FF 06 00 08  E4 E4 09 06  01 01 00 00  01 FF 06 01
(V) 4E 99 59 09  06 01 01 01  07 00 FF 06  00 00 01 DD
(V) 09 06 01 01  02 07 00 FF  06 00 00 00  00 09 06 01
(V) 01 03 07 00  FF 06 00 00  00 00 09 06  01 01 04 07
(V) 00 FF 06 00  00 00 A9 09  06 00 01 01  00 00 FF 09
(V) 0C 07 E7 04  06 04 0D 32  00 FF 80 00  80 09 06 01
(V) 01 20 07 00  FF 12 00 E7  09 06 01 01  1F 07 00 FF
(V) 06 00 00 00  F1 09 06 01  01 15 07 00  FF 06 00 00
(V) 01 DD 09 06  01 01 21 07  00 FF 12 00  5E 09 06 01
(V) 01 0D 07 00  FF 12 00 5E  09 06 01 01  16 07 00 FF
(V) 06 00 00 00  00 09 06 01  01 16 08 00  FF 06 00 00
(V) 00 00 09 06  01 01 15 08  00 FF 06 00  14 A5 25
(V) (readHanPort)(C0) DLMS
(V) (EnergyAccounting) Adding 0.0013 kWh import
(V) (EnergyAccounting)  calculating threshold, currently at 0
(V) (EnergyAccounting)  new threshold 0
(D) Serving /data.json over http...
(D) Serving /data.json over http...
(V) (unwrapData)(C0) HDLC frame:
(V) 7E A1 3B 41  03 13 C8 F6  E6 E7 00 DB  08 4B 41 4D
(V) 45 01 C7 F0  F9 82 01 22  30 00 3A 24  33 F6 DC 81
(V) 07 24 F0 8B  91 A8 70 31  8E 67 29 E8  4B 35 6B EA
(V) D5 2E 76 DC  C9 54 5C 33  2C 7E 4D 8F  BD DB 3D 4A
(V) B2 D5 6C 76  3B 1E AD E4  36 BB 3E 0D  F8 5C 03 AD
(V) 65 F5 A1 DF  66 A9 40 3F  28 14 2E 4E  F5 BA CC B6
(V) 36 70 AB 5F  AC 57 BF 91  2B 80 EB C3  6D 5E AE 45
(V) 45 85 AF A5  2B 59 AA 7A  95 45 78 30  79 ED 0A B4
(V) 02 3D 2C E7  29 77 7D 0A  8A B8 78 D2  39 EB DD F8
(V) 07 6F 7D DC  B3 1B F8 05  52 29 50 D9  6F 68 29 55
(V) A9 BF F7 C9  F1 70 AC EB  9E BC 27 6F  B9 2C 09 C3
(V) C2 7F 32 BD  12 7B 50 C0  15 5C D5 F7  D0 FE 2B 1C
(V) 60 5D BB E1  F7 12 85 92  00 98 16 2C  CA D9 C2 8F
(V) 41 79 6E 10  EB 83 29 97  C7 47 F2 75  99 67 27 6F
(V) DC 07 D9 AF  1C E9 3A E0  4D 15 80 68  46 B8 C0 5E
(V) 9F CD BC CD  24 E6 31 72  61 F5 38 14  CC E5 C1 08
(V) F2 86 2D 2A  83 F7 0F 4E  92 54 32 95  00 E1 98 90
(V) 08 74 FC 14  01 DF 25 FC  A6 17 60 8B  24 E6 D2 BC
(V) 66 60 96 65  8D EC 8A 1E  00 B4 1F B3  46 7A BE 9A
(V) 07 31 09 94  F1 38 1D EF  D3 A7 8D 63  7E
(V) (unwrapData)(C0) LLC frame:
(V) E6 E7 00 DB  08 4B 41 4D  45 01 C7 F0  F9 82 01 22
(V) 30 00 3A 24  33 F6 DC 81  07 24 F0 8B  91 A8 70 31
(V) 8E 67 29 E8  4B 35 6B EA  D5 2E 76 DC  C9 54 5C 33
(V) 2C 7E 4D 8F  BD DB 3D 4A  B2 D5 6C 76  3B 1E AD E4
(V) 36 BB 3E 0D  F8 5C 03 AD  65 F5 A1 DF  66 A9 40 3F
(V) 28 14 2E 4E  F5 BA CC B6  36 70 AB 5F  AC 57 BF 91
(V) 2B 80 EB C3  6D 5E AE 45  45 85 AF A5  2B 59 AA 7A
(V) 95 45 78 30  79 ED 0A B4  02 3D 2C E7  29 77 7D 0A
(V) 8A B8 78 D2  39 EB DD F8  07 6F 7D DC  B3 1B F8 05
(V) 52 29 50 D9  6F 68 29 55  A9 BF F7 C9  F1 70 AC EB
(V) 9E BC 27 6F  B9 2C 09 C3  C2 7F 32 BD  12 7B 50 C0
(V) 15 5C D5 F7  D0 FE 2B 1C  60 5D BB E1  F7 12 85 92
(V) 00 98 16 2C  CA D9 C2 8F  41 79 6E 10  EB 83 29 97
(V) C7 47 F2 75  99 67 27 6F  DC 07 D9 AF  1C E9 3A E0
(V) 4D 15 80 68  46 B8 C0 5E  9F CD BC CD  24 E6 31 72
(V) 61 F5 38 14  CC E5 C1 08  F2 86 2D 2A  83 F7 0F 4E
(V) 92 54 32 95  00 E1 98 90  08 74 FC 14  01 DF 25 FC
(V) A6 17 60 8B  24 E6 D2 BC  66 60 96 65  8D EC 8A 1E
(V) 00 B4 1F B3  46 7A BE 9A  07 31 09 94  F1 38 1D EF
(V) D3 A7
(V) (unwrapData)(C0) GCM frame:
(V) DB 08 4B 41  4D 45 01 C7  F0 F9 82 01  22 30 00 3A
(V) 24 33 0F 00  00 00 00 0C  07 E7 04 06  04 0D 32 0A
(V) FF 80 00 80  02 25 0A 0E  4B 61 6D 73  74 72 75 70
(V) 5F 56 30 30  30 31 09 06  01 01 01 08  00 FF 06 00
(V) 14 A5 26 09  06 01 01 02  08 00 FF 06  00 00 00 00
(V) 09 06 01 01  03 08 00 FF  06 00 00 30  E1 09 06 01
(V) 01 04 08 00  FF 06 00 08  E4 E4 09 06  01 01 00 00
(V) 01 FF 06 01  4E 99 59 09  06 01 01 01  07 00 FF 06
(V) 00 00 01 D9  09 06 01 01  02 07 00 FF  06 00 00 00
(V) 00 09 06 01  01 03 07 00  FF 06 00 00  00 00 09 06
(V) 01 01 04 07  00 FF 06 00  00 00 A9 09  06 00 01 01
(V) 00 00 FF 09  0C 07 E7 04  06 04 0D 32  0A FF 80 00
(V) 80 09 06 01  01 20 07 00  FF 12 00 E7  09 06 01 01
(V) 1F 07 00 FF  06 00 00 00  EF 09 06 01  01 15 07 00
(V) FF 06 00 00  01 D9 09 06  01 01 21 07  00 FF 12 00
(V) 5E 09 06 01  01 0D 07 00  FF 12 00 5E  09 06 01 01
(V) 16 07 00 FF  06 00 00 00  00 09 06 01  01 16 08 00
(V) FF 06 00 00  00 00 09 06  01 01 15 08  00 FF 06 00
(V) 14 A5 26 BE  9A 07 31 09  94 F1 38 1D  EF D3 A7
(V) (unwrapData)(C0) DLMS frame:
(V) 0F 00 00 00  00 0C 07 E7  04 06 04 0D  32 0A FF 80
(V) 00 80 02 25  0A 0E 4B 61  6D 73 74 72  75 70 5F 56
(V) 30 30 30 31  09 06 01 01  01 08 00 FF  06 00 14 A5
(V) 26 09 06 01  01 02 08 00  FF 06 00 00  00 00 09 06
(V) 01 01 03 08  00 FF 06 00  00 30 E1 09  06 01 01 04
(V) 08 00 FF 06  00 08 E4 E4  09 06 01 01  00 00 01 FF
(V) 06 01 4E 99  59 09 06 01  01 01 07 00  FF 06 00 00
(V) 01 D9 09 06  01 01 02 07  00 FF 06 00  00 00 00 09
(V) 06 01 01 03  07 00 FF 06  00 00 00 00  09 06 01 01
(V) 04 07 00 FF  06 00 00 00  A9 09 06 00  01 01 00 00
(V) FF 09 0C 07  E7 04 06 04  0D 32 0A FF  80 00 80 09
(V) 06 01 01 20  07 00 FF 12  00 E7 09 06  01 01 1F 07
(V) 00 FF 06 00  00 00 EF 09  06 01 01 15  07 00 FF 06
(V) 00 00 01 D9  09 06 01 01  21 07 00 FF  12 00 5E 09
(V) 06 01 01 0D  07 00 FF 12  00 5E 09 06  01 01 16 07
(V) 00 FF 06 00  00 00 00 09  06 01 01 16  08 00 FF 06
(V) 00 00 00 00  09 06 01 01  15 08 00 FF  06 00 14 A5
(V) 26
(D) (readHanPort)(C0) Received valid DLMS at 47
(V) (readHanPort)(C0) Using application data:
(V) 02 25 0A 0E  4B 61 6D 73  74 72 75 70  5F 56 30 30
(V) 30 31 09 06  01 01 01 08  00 FF 06 00  14 A5 26 09
(V) 06 01 01 02  08 00 FF 06  00 00 00 00  09 06 01 01
(V) 03 08 00 FF  06 00 00 30  E1 09 06 01  01 04 08 00
(V) FF 06 00 08  E4 E4 09 06  01 01 00 00  01 FF 06 01
(V) 4E 99 59 09  06 01 01 01  07 00 FF 06  00 00 01 D9
(V) 09 06 01 01  02 07 00 FF  06 00 00 00  00 09 06 01
(V) 01 03 07 00  FF 06 00 00  00 00 09 06  01 01 04 07
(V) 00 FF 06 00  00 00 A9 09  06 00 01 01  00 00 FF 09
(V) 0C 07 E7 04  06 04 0D 32  0A FF 80 00  80 09 06 01
(V) 01 20 07 00  FF 12 00 E7  09 06 01 01  1F 07 00 FF
(V) 06 00 00 00  EF 09 06 01  01 15 07 00  FF 06 00 00
(V) 01 D9 09 06  01 01 21 07  00 FF 12 00  5E 09 06 01
(V) 01 0D 07 00  FF 12 00 5E  09 06 01 01  16 07 00 FF
(V) 06 00 00 00  00 09 06 01  01 16 08 00  FF 06 00 00
(V) 00 00 09 06  01 01 15 08  00 FF 06 00  14 A5 26
(V) (readHanPort)(C0) DLMS
(V) (EnergyAccounting) Adding 0.0013 kWh import
(V) (EnergyAccounting)  calculating threshold, currently at 0
(V) (EnergyAccounting)  new threshold 0
(D) Serving /data.json over http...
(V) (unwrapData)(C0) HDLC frame:
(V) 7E A1 3B 41  03 13 C8 F6  E6 E7 00 DB  08 4B 41 4D
(V) 45 01 C7 F0  F9 82 01 22  30 00 3A 24  34 4E AA FE
(V) 68 B5 94 5E  87 38 24 85  78 3D 1F 1A  71 A0 72 D6
(V) 3F 7A A8 27  0D FA 05 3D  17 57 BB 8C  EC 15 16 F4
(V) EE 40 B5 8C  9E 5D 55 44  E3 61 CB CA  A4 21 85 6A
(V) 13 22 3F AB  82 6D FB 00  2D 6B 6F 99  DB 7A 07 BB
(V) 27 C1 FF 3F  AB 3B 3E AE  93 DC 0E 28  44 0C 2E 8D
(V) 9D 09 A5 66  A1 ED 1B F7  BB 0A DF DA  3A E1 20 DD
(V) DA A6 76 99  6C 75 D1 19  C7 BB 8D A4  5E AD 1F AC
(V) 80 9F 08 D0  03 49 FC BE  69 A1 CB D0  00 65 AA D9
(V) 98 8E D1 98  DF A5 03 07  F8 76 9C B9  04 46 A0 0C
(V) B9 36 4E 2D  74 E7 20 0B  EC A3 12 77  7A 8E 16 A7
(V) 2B 0F 3D E4  A8 8E 41 71  EF 37 61 87  49 81 AA BC
(V) 55 A9 F5 F3  AB 48 11 E5  9E 6F E6 7D  20 30 21 66
(V) 40 7A 11 14  F7 AF 66 15  C9 CE ED D1  74 18 2E ED
(V) 4A 6D 64 3B  01 70 57 6E  71 90 57 72  9C 3E 7E F8
(V) 7A 89 FC B5  01 64 D9 C7  3C 32 05 82  4C 3C 27 20
(V) DB BB AA 73  C8 8E D3 94  9E E0 51 F9  D7 58 93 AF
(V) 7B 97 78 B0  FD 31 27 BD  7E 2B E5 9B  6C 8D 75 50
(V) F2 69 F4 C9  F2 EC FF 23  F7 7A 3F E0  7E
(V) (unwrapData)(C0) LLC frame:
(V) E6 E7 00 DB  08 4B 41 4D  45 01 C7 F0  F9 82 01 22
(V) 30 00 3A 24  34 4E AA FE  68 B5 94 5E  87 38 24 85
(V) 78 3D 1F 1A  71 A0 72 D6  3F 7A A8 27  0D FA 05 3D
(V) 17 57 BB 8C  EC 15 16 F4  EE 40 B5 8C  9E 5D 55 44
(V) E3 61 CB CA  A4 21 85 6A  13 22 3F AB  82 6D FB 00
(V) 2D 6B 6F 99  DB 7A 07 BB  27 C1 FF 3F  AB 3B 3E AE
(V) 93 DC 0E 28  44 0C 2E 8D  9D 09 A5 66  A1 ED 1B F7
(V) BB 0A DF DA  3A E1 20 DD  DA A6 76 99  6C 75 D1 19
(V) C7 BB 8D A4  5E AD 1F AC  80 9F 08 D0  03 49 FC BE
(V) 69 A1 CB D0  00 65 AA D9  98 8E D1 98  DF A5 03 07
(V) F8 76 9C B9  04 46 A0 0C  B9 36 4E 2D  74 E7 20 0B
(V) EC A3 12 77  7A 8E 16 A7  2B 0F 3D E4  A8 8E 41 71
(V) EF 37 61 87  49 81 AA BC  55 A9 F5 F3  AB 48 11 E5
(V) 9E 6F E6 7D  20 30 21 66  40 7A 11 14  F7 AF 66 15
(V) C9 CE ED D1  74 18 2E ED  4A 6D 64 3B  01 70 57 6E
(V) 71 90 57 72  9C 3E 7E F8  7A 89 FC B5  01 64 D9 C7
(V) 3C 32 05 82  4C 3C 27 20  DB BB AA 73  C8 8E D3 94
(V) 9E E0 51 F9  D7 58 93 AF  7B 97 78 B0  FD 31 27 BD
(V) 7E 2B E5 9B  6C 8D 75 50  F2 69 F4 C9  F2 EC FF 23
(V) F7 7A
(V) (unwrapData)(C0) GCM frame:
(V) DB 08 4B 41  4D 45 01 C7  F0 F9 82 01  22 30 00 3A
(V) 24 34 0F 00  00 00 00 0C  07 E7 04 06  04 0D 32 14
(V) FF 80 00 80  02 25 0A 0E  4B 61 6D 73  74 72 75 70
(V) 5F 56 30 30  30 31 09 06  01 01 01 08  00 FF 06 00
(V) 14 A5 26 09  06 01 01 02  08 00 FF 06  00 00 00 00
(V) 09 06 01 01  03 08 00 FF  06 00 00 30  E1 09 06 01
(V) 01 04 08 00  FF 06 00 08  E4 E4 09 06  01 01 00 00
(V) 01 FF 06 01  4E 99 59 09  06 01 01 01  07 00 FF 06
(V) 00 00 01 DE  09 06 01 01  02 07 00 FF  06 00 00 00
(V) 00 09 06 01  01 03 07 00  FF 06 00 00  00 00 09 06
(V) 01 01 04 07  00 FF 06 00  00 00 AD 09  06 00 01 01
(V) 00 00 FF 09  0C 07 E7 04  06 04 0D 32  14 FF 80 00
(V) 80 09 06 01  01 20 07 00  FF 12 00 E8  09 06 01 01
(V) 1F 07 00 FF  06 00 00 00  F1 09 06 01  01 15 07 00
(V) FF 06 00 00  01 DE 09 06  01 01 21 07  00 FF 12 00
(V) 5E 09 06 01  01 0D 07 00  FF 12 00 5E  09 06 01 01
(V) 16 07 00 FF  06 00 00 00  00 09 06 01  01 16 08 00
(V) FF 06 00 00  00 00 09 06  01 01 15 08  00 FF 06 00
(V) 14 A5 26 75  50 F2 69 F4  C9 F2 EC FF  23 F7 7A
(V) (unwrapData)(C0) DLMS frame:
(V) 0F 00 00 00  00 0C 07 E7  04 06 04 0D  32 14 FF 80
(V) 00 80 02 25  0A 0E 4B 61  6D 73 74 72  75 70 5F 56
(V) 30 30 30 31  09 06 01 01  01 08 00 FF  06 00 14 A5
(V) 26 09 06 01  01 02 08 00  FF 06 00 00  00 00 09 06
(V) 01 01 03 08  00 FF 06 00  00 30 E1 09  06 01 01 04
(V) 08 00 FF 06  00 08 E4 E4  09 06 01 01  00 00 01 FF
(V) 06 01 4E 99  59 09 06 01  01 01 07 00  FF 06 00 00
(V) 01 DE 09 06  01 01 02 07  00 FF 06 00  00 00 00 09
(V) 06 01 01 03  07 00 FF 06  00 00 00 00  09 06 01 01
(V) 04 07 00 FF  06 00 00 00  AD 09 06 00  01 01 00 00
(V) FF 09 0C 07  E7 04 06 04  0D 32 14 FF  80 00 80 09
(V) 06 01 01 20  07 00 FF 12  00 E8 09 06  01 01 1F 07
(V) 00 FF 06 00  00 00 F1 09  06 01 01 15  07 00 FF 06
(V) 00 00 01 DE  09 06 01 01  21 07 00 FF  12 00 5E 09
(V) 06 01 01 0D  07 00 FF 12  00 5E 09 06  01 01 16 07
(V) 00 FF 06 00  00 00 00 09  06 01 01 16  08 00 FF 06
(V) 00 00 00 00  09 06 01 01  15 08 00 FF  06 00 14 A5
(V) 26
(D) (readHanPort)(C0) Received valid DLMS at 47
(V) (readHanPort)(C0) Using application data:
(V) 02 25 0A 0E  4B 61 6D 73  74 72 75 70  5F 56 30 30
(V) 30 31 09 06  01 01 01 08  00 FF 06 00  14 A5 26 09
(V) 06 01 01 02  08 00 FF 06  00 00 00 00  09 06 01 01
(V) 03 08 00 FF  06 00 00 30  E1 09 06 01  01 04 08 00
(V) FF 06 00 08  E4 E4 09 06  01 01 00 00  01 FF 06 01
(V) 4E 99 59 09  06 01 01 01  07 00 FF 06  00 00 01 DE
(V) 09 06 01 01  02 07 00 FF  06 00 00 00  00 09 06 01
(V) 01 03 07 00  FF 06 00 00  00 00 09 06  01 01 04 07
(V) 00 FF 06 00  00 00 AD 09  06 00 01 01  00 00 FF 09
(V) 0C 07 E7 04  06 04 0D 32  14 FF 80 00  80 09 06 01
(V) 01 20 07 00  FF 12 00 E8  09 06 01 01  1F 07 00 FF
(V) 06 00 00 00  F1 09 06 01  01 15 07 00  FF 06 00 00
(V) 01 DE 09 06  01 01 21 07  00 FF 12 00  5E 09 06 01
(V) 01 0D 07 00  FF 12 00 5E  09 06 01 01  16 07 00 FF
(V) 06 00 00 00  00 09 06 01  01 16 08 00  FF 06 00 00
(V) 00 00 09 06  01 01 15 08  00 FF 06 00  14 A5 26
(V) (readHanPort)(C0) DLMS
(V) (EnergyAccounting) Adding 0.0013 kWh import
(V) (EnergyAccounting)  calculating threshold, currently at 0
(V) (EnergyAccounting)  new threshold 0
(D) Serving /data.json over http...
(D) Serving /configuration.json over http...
(D) Serving /data.json over http...
(D) Handling save method from httpReceived meter configReceived WiFi configReceived MQTT configReceived web configReceived Debug configReceived price A
ArnieO commented 1 year ago

Thank you for your thorough bug report. However, I see nothing wrong in what you're sending. Can you elaborate on what kind of bad data you receive on MQTT?

Your difficulties to connect indicates a potential issue in your Wifi network? I always recommend to set a static IP address, could you try that and see if things improve?

Regarding: image Your HAN port is encrypted, so to receive data at all you should have entered encryption keys that you received when activating the HAN port. I assume you remember this now. :wink:

There has been some reports on difficulties in upgrading from v2.1.x to v2.2.x, it was a quite substantial upgrade.

Try the following:

  1. Save your current configuration to a file (info screen / Backup & restore)
  2. Do a Factory reset (config screen, red button on the bottom). You will then lose all historical values as well as current configuration setup, but that can be restored from the file.
  3. Your device will now be in Access Point mode (yellow blinks on the LED)
  4. Connect to the Access point as you did on initial config when your device was new, connect it to your Wifi (and as indicated: preferably provide a static IP address for it).
  5. After reboot, you can upload the config file you saved earlier.
ACrazyConcept commented 1 year ago

Thanks for the swift feedback.

Regarding the bad data I posted a screenshot. But should of course also have included how it looks usually. As can be seen below there are many more attributes. As for wifi the connection was rock solid on 2.1.17. I am using ip reservation. Just tried set a static ip now but with no improvement. Yes (of course :)) I have encryption key and authentication key. So I will attempt a reset as per your suggestion. image

ArnieO commented 1 year ago

Hm... OK, a lot of sensors missing. It could look as if the MQTT payload setting is incorrect (did not get transferred correctly from v2.1.x)? Awaiting to see if a Factory Reset sorts this out.

ACrazyConcept commented 1 year ago

I did the reset and after uploading the saved config and rebooting it still behaves the same. Could it be some issue with mqtt?

I see this in the mosquitto log.

1680787925: New connection from 10.0.0.238:61409 on port 1883.
1680787925: New client connected from 10.0.0.238:61409 as 29880569 (p2, c1, k10, u'hass').
1680788248: Client 29880569 has exceeded timeout, disconnecting.
1680788723: New connection from 10.0.0.238:58119 on port 1883.
1680788723: New client connected from 10.0.0.238:58119 as 29880569 (p2, c1, k10, u'hass').
ArnieO commented 1 year ago

Can you show me a screendump of your config page?

ACrazyConcept commented 1 year ago

Sure. I am not very good with mqtt to be honest. It was just working for such a long period I am not sure it is setup properly. There could easily be some weird stuff.

image

ArnieO commented 1 year ago

Yes, might be something related to MQTT - but I think there should be a GUI warning if there are MQTT issues (like connection problems). I see some points you might consider adjusting:

I still don't understand the issues you have regarding connection / UI reactivity, but try these adjustments first and see what it gives.

ACrazyConcept commented 1 year ago

Thanks! I just tried the HomeAssistant payload type. It seems to be working without any issues. Will let it run for a while.

ACrazyConcept commented 1 year ago

I think I am good with using the HomeAssistant payload type. Thanks again 👌