Smart meter plugin tramsmits strange MQTT messages

Moderator: leecollings

Post Reply
willem9136
Posts: 53
Joined: Friday 11 December 2020 15:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands Paesens
Contact:

Smart meter plugin tramsmits strange MQTT messages

Post by willem9136 »

When I look at the MQTT traffic by using my MQTT tool I see strange messages coming from the smart-meter plugin.
Please have a look at the 2 attachements.
The come in groups of 4 around every 5 seconds.

can someone tell me the cause of this and is this normal behaviour?
Attachments
header
header
sm-2.jpg (56.59 KiB) Viewed 1224 times
payload
payload
sm-1.jpg (61.96 KiB) Viewed 1224 times
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Smart meter plugin tramsmits strange MQTT messages

Post by waaren »

willem9136 wrote: Monday 14 December 2020 9:16 When I look at the MQTT traffic by using my MQTT tool I see strange messages coming from the smart-meter plugin.
  • is your smart-meter plugin the P1 Smart Meter USB or P1 Smart Meter LAN ( on the hardware tab ) or do you refer to something else?
  • what tool do you use to look at the MQTT messages?
  • can you try to monitor MQTT traffic on your RPI with

    Code: Select all

    mosquitto_sub -F "%U - %t - %p" -v -p 1883 -t "#" 
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
willem9136
Posts: 53
Joined: Friday 11 December 2020 15:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands Paesens
Contact:

Re: Smart meter plugin tramsmits strange MQTT messages

Post by willem9136 »

Hello Waaren, I use the USB version of the P1 smart-meter plug in.
I use the MQTTool on my iPad. See attachement.
And the MQTT traffic log is in the attachements as well.
Attachments
MQTTool.jpg
MQTTool.jpg (49.42 KiB) Viewed 1213 times
mqtt.log
(8.82 KiB) Downloaded 34 times
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Smart meter plugin tramsmits strange MQTT messages

Post by waaren »

willem9136 wrote: Monday 14 December 2020 10:16 Hello Waaren, I use the USB version of the P1 smart-meter plug in.
What you call a plugin is generally referred to as Hardware module (native part of domoticz). This to prevent confusion with the various Python plugins
I use the MQTTool on my iPad. See attachment.
So it seems this tool does see things that are not send by domoticz.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
willem9136
Posts: 53
Joined: Friday 11 December 2020 15:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands Paesens
Contact:

Re: Smart meter plugin tramsmits strange MQTT messages

Post by willem9136 »

There is nothing else on this PI-0 running. I killed NodeRed.
I know when I stop Domicticz these messages will stop.
Also when I remove the P1 smartMeter for USB the messages will stop.
eddieb
Posts: 335
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Smart meter plugin tramsmits strange MQTT messages

Post by eddieb »

looks like domoticz is sending confirmations of the P1 signals thru MQTT using domoticz/out
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC with Node-Red and MQTT / SolarEdge SE3500H modbus_tcp / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
willem9136
Posts: 53
Joined: Friday 11 December 2020 15:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands Paesens
Contact:

Re: Smart meter plugin tramsmits strange MQTT messages

Post by willem9136 »

So nothing to worry about?
It’s strange that this showed up since last week.
Before they were not there.
User avatar
erem
Posts: 230
Joined: Tuesday 27 March 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Amsterdam/netherlands
Contact:

Re: Smart meter plugin tramsmits strange MQTT messages

Post by erem »

@willem9136

which poses the question: What changed? Did you update domoticz?
Regards,

Rob
willem9136
Posts: 53
Joined: Friday 11 December 2020 15:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands Paesens
Contact:

Re: Smart meter plugin tramsmits strange MQTT messages

Post by willem9136 »

All I did was removing NodeRed. And for testing I killed Domoticz to check if the messages disappeared. They did so I did a reboot.
Then I removed the hardware module P1 for USB.
Also the messages stopped.
Reinstalled the P1 smartmeter USB again. And the messages were there.....
willem9136
Posts: 53
Joined: Friday 11 December 2020 15:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands Paesens
Contact:

Re: Smart meter plugin tramsmits strange MQTT messages

Post by willem9136 »

I did not update Domoticz. I did press the update button but Domoticz was up to date.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Smart meter plugin tramsmits strange MQTT messages

Post by waaren »

willem9136 wrote: Monday 14 December 2020 14:08 All I did was removing NodeRed.
According to this post you also started the MQTT hardware module. That would explain the MQTT message to domoticz/out but not the funny ones with only "{"
These are not send by domoticz.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
willem9136
Posts: 53
Joined: Friday 11 December 2020 15:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands Paesens
Contact:

Re: Smart meter plugin tramsmits strange MQTT messages

Post by willem9136 »

Why do they stop when I remove the P1 plug-in?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Smart meter plugin tramsmits strange MQTT messages

Post by waaren »

willem9136 wrote: Monday 14 December 2020 23:14 Why do they stop when I remove the P1 plug-in?
Because the real MQTT messages to domoticz/out for the P1 device are send when the P1 device is updated and this device gets updated via the P1 hardware module. The funny ones seem to be a kind of echo created by something else then domoticz.

If you want to convince yourself and your are not convinced by the mosquitto_sub command I posted earlier then install a network sniffer tool and monitor the network for port 1883

Code: Select all

sudo apt install tcpdump
sudo tcpdump -vv -X -i any  port 1883
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
willem9136
Posts: 53
Joined: Friday 11 December 2020 15:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands Paesens
Contact:

Re: Smart meter plugin tramsmits strange MQTT messages

Post by willem9136 »

Ok, I will run WireShark on it. Good idea!
User avatar
FireWizard
Posts: 1893
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Smart meter plugin tramsmits strange MQTT messages

Post by FireWizard »

Hi, @willem9136

You wrote:
All I did was removing NodeRed.
Can you tell us, which steps you toke when you removed Node Red?

Regards
willem9136
Posts: 53
Joined: Friday 11 December 2020 15:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands Paesens
Contact:

Re: Smart meter plugin tramsmits strange MQTT messages

Post by willem9136 »

I read in an American forum that these “strange” MQTT messages and by domoticz/out are normal.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest