letscontrolit / ESPEasy

Easy MultiSensor device based on ESP8266/ESP32
http://www.espeasy.com
Other
3.27k stars 2.21k forks source link

P1 data not presented in MQTT-message #3900

Open georgeavd opened 2 years ago

georgeavd commented 2 years ago

Checklist

I have...

Steps already tried...

If you self compile, please state this and PLEASE try to ONLY REPORT ISSUES WITH OFFICIAL BUILDS!

Summarize of the problem/feature request

The P1-topics are not published via MQTT. Only LWT is published.

Expected behavior

The P1-topics should be presented with a correct label (E.g. P1) underneath the same label (hostname) as the status (LWT-topic) messages.

Actual behavior

The data is currently not published according to the default settings (see screenshot below)

Steps to reproduce

  1. Check with E.g. MQTT-Explorer

The problem persists after powering off and on

System configuration

Build:⋄ 20116 - Mega System Libraries:⋄ ESP82xx Core 2843a5ac, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2 PUYA support Git Build:⋄ mega-20211224_f162ebf Plugin Count:⋄ 47 [Normal] Build Time:⋄ Dec 24 2021 14:39:35 Binary Filename:⋄ ESP_Easy_mega_20211224_normal_ESP8266_4M1M Build Platform:⋄ Linux-5.4.0-54-generic-x86_64-with-glibc2.29 Git HEAD:⋄ mega-20211224_f162ebf

Hardware: Wemos D1 with P1-shield ESP Easy version: Build: ESP_Easy_mega_20211224_normal_ESP8266_4M1M Dec 24 2021

ESP Easy settings/screenshots: Screenshot 2022-01-05 at 17 05 15

Rules or log data

TD-er commented 2 years ago

What format do the P1 messages have? That plugin is relatively old, so it does not support string types as that was introduced later. (and not fully supported yet)

What kind of data does the task now output (e.g. screenshot from the devices page) and what do you expect?

georgeavd commented 2 years ago

The tcp-output in port 8088 is as expected, but you're right there are no values presented in the device table. Screenshot 2022-01-05 at 17 50 43

My Kamstrup is presenting data according the DSMR V2.2 specifications.

/KMP5 KA6U0017468xxxxx

0-0:96.1.1(204B4136553030xxxxxxxxxxxxxxxxxxxx)
1-0:1.8.1(18463.280*kWh)
1-0:1.8.2(10823.248*kWh)
1-0:2.8.1(04281.748*kWh)
1-0:2.8.2(10289.363*kWh)
0-0:96.14.0(0001)
1-0:1.7.0(0000.00*kW)
1-0:2.7.0(0000.05*kW)
0-0:96.13.1()
0-0:96.13.0()
0-1:24.1.0(3)
0-1:96.1.0(473030313535363xxxxxxxxxxxxxxxxxxx)
0-1:24.3.0(220106110000)(00)(60)(1)(0-1:24.2.1)(m3)
(09466.181)
!