Apollon77 / ioBroker.mbus

Communicate with mbus devices
MIT License
10 stars 8 forks source link

Werte aktualisieren sich nur nach manueller Abfrage des Zählers #311

Open Hant0r opened 1 year ago

Hant0r commented 1 year ago

Moin, ich hatte das Thema schon im Forum angesprochen, fällt da aber leider runter. Aus dem Grund, nach Rücksprache, hier als Issue :)

Forum-Link: https://forum.iobroker.net/topic/51270/adapter-mbus-fehler-im-log/53

Problem-Beschreibung: Der Adapter zieht sich leider nur beim ersten Start die aktuellen Daten vom Zähler, im Anschluss keine mehr. Stoppt man den Adapter, löscht die Datenpunkte und startet den Adapter wieder, werden keine DPs mehr geschrieben.

Was ich rausgefunden habe ist:

mbus.0 | 2023-01-05 11:38:25.219 | debug | M-Bus ID 1 data: { "SlaveInformation": { "Id": 29020256, "Manufacturer": "ELR", "Version": 255, "ProductName": "", "Medium": "Water", "AccessNumber": 125, "Status": 0, "Signature": 0 } }
-- | -- | -- | --
mbus.0 | 2023-01-05 11:38:23.780 | debug | Process: 1
mbus.0 | 2023-01-05 11:33:23.780 | debug | M-Bus ID 1 data: { "SlaveInformation": { "Id": 29020256, "Manufacturer": "ELR", "Version": 255, "ProductName": "", "Medium": "Water", "AccessNumber": 124, "Status": 0, "Signature": 0 } }
mbus.0 | 2023-01-05 11:33:22.345 | debug | Process: 1

Heißt, nur wenn ich manuell den Zähler einmal ausgelesen habe, kann der Adapter diese Daten abfragen und in den Objekten anzeigen. Selbstständig schafft er nicht die Daten abzugreifen.

Wenn weitere Logs oder Test benötigt werden, kurz Bescheid geben :)

Versions:

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.

Hant0r commented 1 year ago

Da es keine neue Version gab, besteht das Problem leider weiterhin und es wäre schön, wenn es gefixt würde 🤗😇

Apollon77 commented 1 year ago

I piublish 2.5.0 now, but I assume it will nothing change for your case ... Please also add a debug log with 2.5.0 here. thx

Hant0r commented 1 year ago

Here is the debug log with 2.5.0

2023-08-11 13:13:58.693 - debug: mbus.0 (27300) Redis Objects: Use Redis connection: 10.1.1.5:9001
--
2023-08-11 13:13:58.793 - debug: mbus.0 (27300) Objects client ready ... initialize now
2023-08-11 13:13:58.796 - debug: mbus.0 (27300) Objects create System PubSub Client
2023-08-11 13:13:58.797 - debug: mbus.0 (27300) Objects create User PubSub Client
2023-08-11 13:13:59.024 - debug: mbus.0 (27300) Objects client initialize lua scripts
2023-08-11 13:13:59.032 - debug: mbus.0 (27300) Objects connected to redis: 10.1.1.5:9001
2023-08-11 13:13:59.125 - debug: mbus.0 (27300) Redis States: Use Redis connection: 10.1.1.5:9000
2023-08-11 13:13:59.185 - debug: mbus.0 (27300) States create System PubSub Client
2023-08-11 13:13:59.186 - debug: mbus.0 (27300) States create User PubSub Client
2023-08-11 13:13:59.339 - debug: mbus.0 (27300) States connected to redis: 10.1.1.5:9000
2023-08-11 13:13:59.825 - debug: mbus.0 (27300) Plugin sentry Initialize Plugin (enabled=true)
2023-08-11 13:14:00.257 - info: mbus.0 (27300) starting. Version 2.5.0 (non-npm: Apollon77/ioBroker.mbus) in /opt/iobroker/node_modules/iobroker.mbus, node: v16.19.0, js-controller: 4.0.24
2023-08-11 13:14:00.288 - info: mbus.0 (27300) Default Update Interval: 300
2023-08-11 13:14:00.289 - info: mbus.0 (27300) Initialize M-Bus Serial to /dev/ttyWater with 2400baud
2023-08-11 13:14:00.292 - info: mbus.0 (27300) Schedule initialization for M-Bus-ID 1 with update interval 300
2023-08-11 13:14:00.368 - debug: mbus.0 (27300) connected set to true
2023-08-11 13:14:00.369 - debug: mbus.0 (27300) connected set to true
2023-08-11 13:14:00.795 - debug: mbus.0 (27300) Process: 1
2023-08-11 13:14:02.238 - debug: mbus.0 (27300) M-Bus ID 1 data: {
"SlaveInformation": {
"Id": 29020256,
"Manufacturer": "ELR",
"Version": 255,
"ProductName": "",
"Medium": "Water",
"AccessNumber": 210,
"Status": 0,
"Signature": 0
}
}
2023-08-11 13:14:02.285 - debug: mbus.0 (27300) Create State ELR-29020256.info.Id
2023-08-11 13:14:02.289 - debug: mbus.0 (27300) Create State ELR-29020256.info.Manufacturer
2023-08-11 13:14:02.292 - debug: mbus.0 (27300) Create State ELR-29020256.info.Version
2023-08-11 13:14:02.294 - debug: mbus.0 (27300) Create State ELR-29020256.info.ProductName
2023-08-11 13:14:02.297 - debug: mbus.0 (27300) Create State ELR-29020256.info.Medium
2023-08-11 13:14:02.317 - debug: mbus.0 (27300) Create State ELR-29020256.info.AccessNumber
2023-08-11 13:14:02.322 - debug: mbus.0 (27300) Create State ELR-29020256.info.Status
2023-08-11 13:14:02.326 - debug: mbus.0 (27300) Create State ELR-29020256.info.Signature
2023-08-11 13:14:02.328 - debug: mbus.0 (27300) Create State ELR-29020256.info.address
2023-08-11 13:14:02.331 - debug: mbus.0 (27300) Create State ELR-29020256.data.lastStatus
2023-08-11 13:19:02.337 - debug: mbus.0 (27300) Process: 1
--
2023-08-11 13:19:03.776 - debug: mbus.0 (27300) M-Bus ID 1 data: {
"SlaveInformation": {
"Id": 29020256,
"Manufacturer": "ELR",
"Version": 255,
"ProductName": "",
"Medium": "Water",
"AccessNumber": 211,
"Status": 0,
"Signature": 0
}
}
stale[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.

Hant0r commented 6 months ago

Problem besteht leider immer noch :)

Apollon77 commented 5 months ago

@Hant0r kannst Du mal posten was mbconf an Daten sendet? Loggen die das irgendwie? Dann kann ich mal vergleichen

Hant0r commented 5 months ago

Hi @Apollon77, das einzige was man bei MBCONF sieht ist folgendes, keine Ahnung ob das hilft:

TX-Buffer: 68 04 04 68 53 FE 50 00 A1 16 RX-Buffer: E5 TX-Buffer: 10 7B FE 79 16 RX-Buffer: 68 D8 D8 68 08 01 72 56 02 02 29 92 15 FF 07 F6 00 00 00 0C 13 50 41 27 00 04 6D 0C 16 0C 34 42 6C 01 31 4C 13 59 03 24 00 42 EC 7E 21 31 0C 93 3C 01 00 00 00 12 6C 0A 34 14 3B A0 05 00 00 04 3B 00 00 00 00 C4 03 6D 00 00 00 00 84 03 6D 00 00 00 00 89 04 FD 22 13 89 04 FD 28 01 82 04 6C E1 24 8C 04 13 35 61 16 00 CC 04 13 07 54 17 00 8C 05 13 31 42 18 00 CC 05 13 19 00 19 00 8C 06 13 86 76 19 00 CC 06 13 04 71 20 00 8C 07 13 98 48 21 00 CC 07 13 81 44 22 00 8C 08 13 18 20 23 00 CC 08 13 59 03 24 00 8C 09 13 32 30 25 00 CC 09 13 06 22 26 00 8C 0A 13 97 09 27 00 0A 93 2A 01 00 0A FD 9A B6 73 00 01 01 7A 01 07 79 56 02 02 29 92 15 FF 07 01 FD 18 00 1F 01 28 16 TX-Buffer: 10 5B FE 59 16 RX-Buffer: 68 BD BD 68 08 01 72 56 02 02 29 92 15 FF 07 F7 00 00 00 92 0E 6C F7 23 94 0E 3B EC 04 00 00 D2 0E 6C E2 24 D4 0E 3B 64 05 00 00 92 0F 6C F4 25 94 0F 3B 64 05 00 00 D2 0F 6C E9 26 D4 0F 3B EC 04 00 00 92 80 01 6C F4 27 94 80 01 3B 90 06 00 00 D2 80 01 6C EE 28 D4 80 01 3B DC 05 00 00 92 81 01 6C E3 29 94 81 01 3B 64 05 00 00 D2 81 01 6C E1 2A D4 81 01 3B EC 04 00 00 92 82 01 6C EB 2B 94 82 01 3B A0 05 00 00 D2 82 01 6C E2 2C D4 82 01 3B 64 05 00 00 92 83 01 6C 0E 31 94 83 01 3B 64 05 00 00 D2 83 01 6C 0A 32 D4 83 01 3B 64 05 00 00 92 84 01 6C 08 33 94 84 01 3B 64 05 00 00 E6 16 TX-Buffer: 10 7B FE 79 16 RX-Buffer: 68 68 68 68 08 01 72 56 02 02 29 92 15 FF 07 F8 00 00 00 0C 78 56 02 02 29 0D FD 0F 05 30 2E 30 2E 32 84 41 6D 00 00 00 00 82 41 FD 3A 00 00 C4 41 6D 00 00 00 00 C2 41 FD 3A 00 00 84 42 6D 00 00 00 00 82 42 FD 3A 00 00 C4 42 6D 00 00 00 00 C2 42 FD 3A 00 00 84 43 6D 00 00 00 00 82 43 FD 3A 00 00 0A FD 47 69 03 01 FD 1A 02 6E 16

Hant0r commented 5 months ago

Haben die Werte dir geholfen?

Hant0r commented 1 hour ago

Wollte mal nachfragen, ob sich nach all der Zeit was getan hat? 😉