PULSECOUNTER2-LAN von stall.biz

Hallo Zusammen,
habe mir von stall.biz den neuen Pulscounter2_LAN zusammen gebaut.
Das Modul „Pulsconter“ aus dem Module Store herunter geladen.
Lt. Debug Protokoll werden die Daten regelmäßig übertragen.
Leider kommen die Werte (z.B. Float ) nicht an. Es erfolgt keine Aktualisierung.

Vielleicht kann mir jemand helfen? ich habe keine Erfahrung mit Programmierung

Debug: Server Socket

Debug: Pulscounter

Danke im Voraus!

hallo,
er sagt ja, das er die daten nicht als json dekodierenmkann, das übernimmt er nichts.
vielleicht hat es in der übertragung der daten eine änderung gegeben, ich habe nur einen pulsecounter mit wlan und recht alter firmware.
am besten schickst du mir mal den debug (den kann man ja im debug-fenster speichern) der pulscounter-instanz mit einem kompletten abruf (an demel42@web.de)
dann schaue ich mir die daten mal an.

Super Danke,

hab ich Dir gerade an demel42@web.de geschickt.

Ich habe hier das gleiche Problem.
Alles korrekt eingerichtet (denke ich) und laut Debug Protokoll kommen auch Daten an.
Diese allerdings werden nicht in die Variablen eingetragen.
Ich benutze nur Counter4 (Wasserzähler) und habe den Standardnamen geändert.
Laut Dump werden sämtliche Counter (auch Nr4, mein Wasserzähler) zwar korrekt ausgelesen aber ignoeriert (ignore ident=PULSE_wasser_zaehler_m3, value=272,501).
Ach ja, die Variablen „Uptime“ und „Wifi-Signal“ werden korrekt beschickt.

Hier der Dump:

TXT: 27.10.2022, 07:04:22 |          ReceiveData | 192.168.168.47:54356 => connected
TXT: 27.10.2022, 07:04:22 |          ReceiveData | 192.168.168.47:54356 => received: {"modultyp":"PULSECOUNTER","vars":[{"name":"0","homematic_name":"PULSE_counterIP","desc":"ip des pulsecounters","type":"string","unit":"","value":"192.168.168.47"},{"name":"11","homematic_name":"PULSE_counter1","desc":"w_counter_1","type":"number","unit":"KWh","value":0.000},{"name":"12","homematic_name":"PULSE_power1","desc":"w_power_1","type":"number","unit":"KW","value":0.000},{"name":"13","homematic_name":"PULSE_counter2","desc":"w_counter_2","type":"number","unit":"KWh","value":0.000},{"name":"14","homematic_name":"PULSE_power2","desc":"w_power_2","type":"number","unit":"KW","value":0.000},{"name":"15","homematic_name":"PULSE_counter3","desc":"w_counter_3","type":"number","unit":"KWh","value":0.000},{"name":"16","homematic_name":"PULSE_power3","desc":"w_power_3","type":"number","unit":"KW","value":0.000},{"name":"17","homematic_name":"PULSE_wasser_zaehler_m3","desc":"w_counter_4","type":"number","unit":"m3","value":272.501},{"name":"18","homematic_name":"PULSE_wasser_zaehler_m3proh","desc":"w_power_4","type":"number","unit":"m3/h","value":0.008}],"Systeminfo":{"MAC-Adresse":"DE:AD:BE:EF:FE:00","Homematic_CCU_ip":"192.168.168.44","sec_seit_reset":"138099","zeitpunkt":"2022.10.27 /07h04","firmware":"counter_LAN29"}}<EOT>
TXT: 27.10.2022, 07:04:22 |          ReceiveData | 192.168.168.47:54356 => disonnected
TXT: 27.10.2022, 07:04:22 |          ProcessData | data=Array<LF>(<LF>    [modultyp] => PULSECOUNTER<LF>    [vars] => Array<LF>        (<LF>            [0] => Array<LF>                (<LF>                    [name] => 0<LF>                    [homematic_name] => PULSE_counterIP<LF>                    [desc] => ip des pulsecounters<LF>                    [type] => string<LF>                    [unit] => <LF>                    [value] => 192.168.168.47<LF>                )<LF><LF>            [1] => Array<LF>                (<LF>                    [name] => 11<LF>                    [homematic_name] => PULSE_counter1<LF>                    [desc] => w_counter_1<LF>                    [type] => number<LF>                    [unit] => KWh<LF>                    [value] => 0<LF>                )<LF><LF>            [2] => Array<LF>                (<LF>                    [name] => 12<LF>                    [homematic_name] => PULSE_power1<LF>                    [desc] => w_power_1<LF>                    [type] => number<LF>                    [unit] => KW<LF>                    [value] => 0<LF>                )<LF><LF>            [3] => Array<LF>                (<LF>                    [name] => 13<LF>                    [homematic_name] => PULSE_counter2<LF>                    [desc] => w_counter_2<LF>                    [type] => number<LF>                    [unit] => KWh<LF>                    [value] => 0<LF>                )<LF><LF>            [4] => Array<LF>                (<LF>                    [name] => 14<LF>                    [homematic_name] => PULSE_power2<LF>                    [desc] => w_power_2<LF>                    [type] => number<LF>                    [unit] => KW<LF>                    [value] => 0<LF>                )<LF><LF>            [5] => Array<LF>                (<LF>                    [name] => 15<LF>                    [homematic_name] => PULSE_counter3<LF>                    [desc] => w_counter_3<LF>                    [type] => number<LF>                    [unit] => KWh<LF>                    [value] => 0<LF>                )<LF><LF>            [6] => Array<LF>                (<LF>                    [name] => 16<LF>                    [homematic_name] => PULSE_power3<LF>                    [desc] => w_power_3<LF>                    [type] => number<LF>                    [unit] => KW<LF>                    [value] => 0<LF>                )<LF><LF>            [7] => Array<LF>                (<LF>                    [name] => 17<LF>                    [homematic_name] => PULSE_wasser_zaehler_m3<LF>                    [desc] => w_counter_4<LF>                    [type] => number<LF>                    [unit] => m3<LF>                    [value] => 272,501<LF>                )<LF><LF>            [8] => Array<LF>                (<LF>                    [name] => 18<LF>                    [homematic_name] => PULSE_wasser_zaehler_m3proh<LF>                    [desc] => w_power_4<LF>                    [type] => number<LF>                    [unit] => m3/h<LF>                    [value] => 0,008<LF>                )<LF><LF>        )<LF><LF>    [Systeminfo] => Array<LF>        (<LF>            [MAC-Adresse] => DE:AD:BE:EF:FE:00<LF>            [Homematic_CCU_ip] => 192.168.168.44<LF>            [sec_seit_reset] => 138099<LF>            [zeitpunkt] => 2022.10.27 /07h04<LF>            [firmware] => counter_LAN29<LF>        )<LF><LF>)<LF>
TXT: 27.10.2022, 07:04:22 |          ProcessData | Systeminfo=Array<LF>(<LF>    [MAC-Adresse] => DE:AD:BE:EF:FE:00<LF>    [Homematic_CCU_ip] => 192.168.168.44<LF>    [sec_seit_reset] => 138099<LF>    [zeitpunkt] => 2022.10.27 /07h04<LF>    [firmware] => counter_LAN29<LF>)<LF>
TXT: 27.10.2022, 07:04:22 |             SetValue | mismatch of value "" for variable WifiStrength
TXT: 27.10.2022, 07:04:22 |          ProcessData | modultyp=PULSECOUNTER, measure=27.10.2022 07:04:00, rssi=, uptime=138099s
TXT: 27.10.2022, 07:04:22 |          ProcessData | vars=Array<LF>(<LF>    [0] => Array<LF>        (<LF>            [name] => 0<LF>            [homematic_name] => PULSE_counterIP<LF>            [desc] => ip des pulsecounters<LF>            [type] => string<LF>            [unit] => <LF>            [value] => 192.168.168.47<LF>        )<LF><LF>    [1] => Array<LF>        (<LF>            [name] => 11<LF>            [homematic_name] => PULSE_counter1<LF>            [desc] => w_counter_1<LF>            [type] => number<LF>            [unit] => KWh<LF>            [value] => 0<LF>        )<LF><LF>    [2] => Array<LF>        (<LF>            [name] => 12<LF>            [homematic_name] => PULSE_power1<LF>            [desc] => w_power_1<LF>            [type] => number<LF>            [unit] => KW<LF>            [value] => 0<LF>        )<LF><LF>    [3] => Array<LF>        (<LF>            [name] => 13<LF>            [homematic_name] => PULSE_counter2<LF>            [desc] => w_counter_2<LF>            [type] => number<LF>            [unit] => KWh<LF>            [value] => 0<LF>        )<LF><LF>    [4] => Array<LF>        (<LF>            [name] => 14<LF>            [homematic_name] => PULSE_power2<LF>            [desc] => w_power_2<LF>            [type] => number<LF>            [unit] => KW<LF>            [value] => 0<LF>        )<LF><LF>    [5] => Array<LF>        (<LF>            [name] => 15<LF>            [homematic_name] => PULSE_counter3<LF>            [desc] => w_counter_3<LF>            [type] => number<LF>            [unit] => KWh<LF>            [value] => 0<LF>        )<LF><LF>    [6] => Array<LF>        (<LF>            [name] => 16<LF>            [homematic_name] => PULSE_power3<LF>            [desc] => w_power_3<LF>            [type] => number<LF>            [unit] => KW<LF>            [value] => 0<LF>        )<LF><LF>    [7] => Array<LF>        (<LF>            [name] => 17<LF>            [homematic_name] => PULSE_wasser_zaehler_m3<LF>            [desc] => w_counter_4<LF>            [type] => number<LF>            [unit] => m3<LF>            [value] => 272,501<LF>        )<LF><LF>    [8] => Array<LF>        (<LF>            [name] => 18<LF>            [homematic_name] => PULSE_wasser_zaehler_m3proh<LF>            [desc] => w_power_4<LF>            [type] => number<LF>            [unit] => m3/h<LF>            [value] => 0,008<LF>        )<LF><LF>)<LF>
TXT: 27.10.2022, 07:04:22 |          ProcessData | ignore ident=PULSE_counterIP, value=192.168.168.47
TXT: 27.10.2022, 07:04:22 |          ProcessData | ignore ident=PULSE_counter1, value=0
TXT: 27.10.2022, 07:04:22 |          ProcessData | ignore ident=PULSE_power1, value=0
TXT: 27.10.2022, 07:04:22 |          ProcessData | ignore ident=PULSE_counter2, value=0
TXT: 27.10.2022, 07:04:22 |          ProcessData | ignore ident=PULSE_power2, value=0
TXT: 27.10.2022, 07:04:22 |          ProcessData | ignore ident=PULSE_counter3, value=0
TXT: 27.10.2022, 07:04:22 |          ProcessData | ignore ident=PULSE_power3, value=0
TXT: 27.10.2022, 07:04:22 |          ProcessData | ignore ident=PULSE_wasser_zaehler_m3, value=272,501
TXT: 27.10.2022, 07:04:22 |          ProcessData | ignore ident=PULSE_wasser_zaehler_m3proh, value=0,008
TXT: 27.10.2022, 07:05:22 |          ReceiveData | 192.168.168.47:54357 => connected
TXT: 27.10.2022, 07:05:22 |          ReceiveData | 192.168.168.47:54357 => received: {"modultyp":"PULSECOUNTER","vars":[{"name":"0","homematic_name":"PULSE_counterIP","desc":"ip des pulsecounters","type":"string","unit":"","value":"192.168.168.47"},{"name":"11","homematic_name":"PULSE_counter1","desc":"w_counter_1","type":"number","unit":"KWh","value":0.000},{"name":"12","homematic_name":"PULSE_power1","desc":"w_power_1","type":"number","unit":"KW","value":0.000},{"name":"13","homematic_name":"PULSE_counter2","desc":"w_counter_2","type":"number","unit":"KWh","value":0.000},{"name":"14","homematic_name":"PULSE_power2","desc":"w_power_2","type":"number","unit":"KW","value":0.000},{"name":"15","homematic_name":"PULSE_counter3","desc":"w_counter_3","type":"number","unit":"KWh","value":0.000},{"name":"16","homematic_name":"PULSE_power3","desc":"w_power_3","type":"number","unit":"KW","value":0.000},{"name":"17","homematic_name":"PULSE_wasser_zaehler_m3","desc":"w_counter_4","type":"number","unit":"m3","value":272.501},{"name":"18","homematic_name":"PULSE_wasser_zaehler_m3proh","desc":"w_power_4","type":"number","unit":"m3/h","value":0.008}],"Systeminfo":{"MAC-Adresse":"DE:AD:BE:EF:FE:00","Homematic_CCU_ip":"192.168.168.44","sec_seit_reset":"138159","zeitpunkt":"2022.10.27 /07h05","firmware":"counter_LAN29"}}<EOT>
TXT: 27.10.2022, 07:05:22 |          ReceiveData | 192.168.168.47:54357 => disonnected
TXT: 27.10.2022, 07:05:22 |          ProcessData | data=Array<LF>(<LF>    [modultyp] => PULSECOUNTER<LF>    [vars] => Array<LF>        (<LF>            [0] => Array<LF>                (<LF>                    [name] => 0<LF>                    [homematic_name] => PULSE_counterIP<LF>                    [desc] => ip des pulsecounters<LF>                    [type] => string<LF>                    [unit] => <LF>                    [value] => 192.168.168.47<LF>                )<LF><LF>            [1] => Array<LF>                (<LF>                    [name] => 11<LF>                    [homematic_name] => PULSE_counter1<LF>                    [desc] => w_counter_1<LF>                    [type] => number<LF>                    [unit] => KWh<LF>                    [value] => 0<LF>                )<LF><LF>            [2] => Array<LF>                (<LF>                    [name] => 12<LF>                    [homematic_name] => PULSE_power1<LF>                    [desc] => w_power_1<LF>                    [type] => number<LF>                    [unit] => KW<LF>                    [value] => 0<LF>                )<LF><LF>            [3] => Array<LF>                (<LF>                    [name] => 13<LF>                    [homematic_name] => PULSE_counter2<LF>                    [desc] => w_counter_2<LF>                    [type] => number<LF>                    [unit] => KWh<LF>                    [value] => 0<LF>                )<LF><LF>            [4] => Array<LF>                (<LF>                    [name] => 14<LF>                    [homematic_name] => PULSE_power2<LF>                    [desc] => w_power_2<LF>                    [type] => number<LF>                    [unit] => KW<LF>                    [value] => 0<LF>                )<LF><LF>            [5] => Array<LF>                (<LF>                    [name] => 15<LF>                    [homematic_name] => PULSE_counter3<LF>                    [desc] => w_counter_3<LF>                    [type] => number<LF>                    [unit] => KWh<LF>                    [value] => 0<LF>                )<LF><LF>            [6] => Array<LF>                (<LF>                    [name] => 16<LF>                    [homematic_name] => PULSE_power3<LF>                    [desc] => w_power_3<LF>                    [type] => number<LF>                    [unit] => KW<LF>                    [value] => 0<LF>                )<LF><LF>            [7] => Array<LF>                (<LF>                    [name] => 17<LF>                    [homematic_name] => PULSE_wasser_zaehler_m3<LF>                    [desc] => w_counter_4<LF>                    [type] => number<LF>                    [unit] => m3<LF>                    [value] => 272,501<LF>                )<LF><LF>            [8] => Array<LF>                (<LF>                    [name] => 18<LF>                    [homematic_name] => PULSE_wasser_zaehler_m3proh<LF>                    [desc] => w_power_4<LF>                    [type] => number<LF>                    [unit] => m3/h<LF>                    [value] => 0,008<LF>                )<LF><LF>        )<LF><LF>    [Systeminfo] => Array<LF>        (<LF>            [MAC-Adresse] => DE:AD:BE:EF:FE:00<LF>            [Homematic_CCU_ip] => 192.168.168.44<LF>            [sec_seit_reset] => 138159<LF>            [zeitpunkt] => 2022.10.27 /07h05<LF>            [firmware] => counter_LAN29<LF>        )<LF><LF>)<LF>
TXT: 27.10.2022, 07:05:22 |          ProcessData | Systeminfo=Array<LF>(<LF>    [MAC-Adresse] => DE:AD:BE:EF:FE:00<LF>    [Homematic_CCU_ip] => 192.168.168.44<LF>    [sec_seit_reset] => 138159<LF>    [zeitpunkt] => 2022.10.27 /07h05<LF>    [firmware] => counter_LAN29<LF>)<LF>
TXT: 27.10.2022, 07:05:22 |             SetValue | mismatch of value "" for variable WifiStrength
TXT: 27.10.2022, 07:05:22 |          ProcessData | modultyp=PULSECOUNTER, measure=27.10.2022 07:05:00, rssi=, uptime=138159s
TXT: 27.10.2022, 07:05:22 |          ProcessData | vars=Array<LF>(<LF>    [0] => Array<LF>        (<LF>            [name] => 0<LF>            [homematic_name] => PULSE_counterIP<LF>            [desc] => ip des pulsecounters<LF>            [type] => string<LF>            [unit] => <LF>            [value] => 192.168.168.47<LF>        )<LF><LF>    [1] => Array<LF>        (<LF>            [name] => 11<LF>            [homematic_name] => PULSE_counter1<LF>            [desc] => w_counter_1<LF>            [type] => number<LF>            [unit] => KWh<LF>            [value] => 0<LF>        )<LF><LF>    [2] => Array<LF>        (<LF>            [name] => 12<LF>            [homematic_name] => PULSE_power1<LF>            [desc] => w_power_1<LF>            [type] => number<LF>            [unit] => KW<LF>            [value] => 0<LF>        )<LF><LF>    [3] => Array<LF>        (<LF>            [name] => 13<LF>            [homematic_name] => PULSE_counter2<LF>            [desc] => w_counter_2<LF>            [type] => number<LF>            [unit] => KWh<LF>            [value] => 0<LF>        )<LF><LF>    [4] => Array<LF>        (<LF>            [name] => 14<LF>            [homematic_name] => PULSE_power2<LF>            [desc] => w_power_2<LF>            [type] => number<LF>            [unit] => KW<LF>            [value] => 0<LF>        )<LF><LF>    [5] => Array<LF>        (<LF>            [name] => 15<LF>            [homematic_name] => PULSE_counter3<LF>            [desc] => w_counter_3<LF>            [type] => number<LF>            [unit] => KWh<LF>            [value] => 0<LF>        )<LF><LF>    [6] => Array<LF>        (<LF>            [name] => 16<LF>            [homematic_name] => PULSE_power3<LF>            [desc] => w_power_3<LF>            [type] => number<LF>            [unit] => KW<LF>            [value] => 0<LF>        )<LF><LF>    [7] => Array<LF>        (<LF>            [name] => 17<LF>            [homematic_name] => PULSE_wasser_zaehler_m3<LF>            [desc] => w_counter_4<LF>            [type] => number<LF>            [unit] => m3<LF>            [value] => 272,501<LF>        )<LF><LF>    [8] => Array<LF>        (<LF>            [name] => 18<LF>            [homematic_name] => PULSE_wasser_zaehler_m3proh<LF>            [desc] => w_power_4<LF>            [type] => number<LF>            [unit] => m3/h<LF>            [value] => 0,008<LF>        )<LF><LF>)<LF>
TXT: 27.10.2022, 07:05:22 |          ProcessData | ignore ident=PULSE_counterIP, value=192.168.168.47
TXT: 27.10.2022, 07:05:22 |          ProcessData | ignore ident=PULSE_counter1, value=0
TXT: 27.10.2022, 07:05:22 |          ProcessData | ignore ident=PULSE_power1, value=0
TXT: 27.10.2022, 07:05:22 |          ProcessData | ignore ident=PULSE_counter2, value=0
TXT: 27.10.2022, 07:05:22 |          ProcessData | ignore ident=PULSE_power2, value=0
TXT: 27.10.2022, 07:05:22 |          ProcessData | ignore ident=PULSE_counter3, value=0
TXT: 27.10.2022, 07:05:22 |          ProcessData | ignore ident=PULSE_power3, value=0
TXT: 27.10.2022, 07:05:22 |          ProcessData | ignore ident=PULSE_wasser_zaehler_m3, value=272,501
TXT: 27.10.2022, 07:05:22 |          ProcessData | ignore ident=PULSE_wasser_zaehler_m3proh, value=0,008

Das Modul geht leider hart auf die Standardnamen, daher findet er die Variablen nicht

Hm, ist das nicht doppelt gemoppelt?
Im Modul muss man angeben, welcher Zähler angezeigt werden soll. Wenn der dann allerdings nicht mehr so heisst, wie in den Standardeinstellungen, wird er dann doch nicht angezeigt.
Reicht es nicht, nach der Zählernummer ODER dem Namen zu selektieren?

Aber immerhin, nach einem factory_reset des Pulscounters und Neuprogrammierung, läuft das Modul jetzt. Prima

Ja und nein, die Variablen werden ja durch einen Namen identifiziert.
Es ist zwar so, das

Ich gehe auf den Namen w_counter_x, w_power_x und w_aux_x, wobei x 1…4 ist; insofern enden die Variablen auf die Zähler-Nummer.
Aber natürlich nur die Zählerbezogenen Variablen.

Nun könnte man sicherlich das vorgegebenen Präfix w_ variabel machen, war aber bisher kein Thema. Ich habe ja für die anderen Geräte von Stall ja auch Module gemacht, und da geht das mit den Variablen doch manchmal deutlich ch durcheinander.

Bestimmte Variablen (wie z.B. die IP etc) sind wiederum ganz anders aufgebaut bzw berechnen sich (Uptime aus Systeminfo.sec_seit_reset).

Systeminfo.WLAN_Signal_dBm macht natürlich auf einen LAN-gerät eigentlich keinen Sinn, aber auch das wurde ja von Stall erst sehr spät realisiert.

Hauptsache, es läuft …