Syntax MQTT for publishing data to domoticz for dummy P1 device.

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
BartSr
Normal user
Posts: 122
Joined: 27 Sep 2019, 17:45

Syntax MQTT for publishing data to domoticz for dummy P1 device.

#1 Post by BartSr » 11 Apr 2023, 19:01

Hi!
Given an ESP which has a task to display Wh of powermeasure device. This device-value keeps on growing. No reset possible. For that I want to sent the Wh value to a domoticz dummy P1 device. Then domoticz takes care for daily calc and create graphs. I like to do this with mqtt but can't find correct syntax.
Am I on right track or should I update a uservar in domoticz with the Wh value and then via script update the P1 dummy device?
Thanks
-Bart

TD-er
Core team member
Posts: 8756
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Syntax MQTT for publishing data to domoticz for dummy P1 device.

#2 Post by TD-er » 11 Apr 2023, 20:38

Where does this value come from?
Is it some pulse count done by ESPEasy? Do you read some (k)Wh counter from some power meter?
What do you want to do with this Wh value? Show on a display? (k)Wh per day? per hour?

BartSr
Normal user
Posts: 122
Joined: 27 Sep 2019, 17:45

Re: Syntax MQTT for publishing data to domoticz for dummy P1 device.

#3 Post by BartSr » 11 Apr 2023, 22:12

see also 9606
A friend compiled a bin file for the PZEM-016 but allthough this returns among others the Wh it's not possible to reset it to zero by the and of the day.
For that I want to use the P1 dummy device from domoticz.
But I just found the answer here https://piandmore.wordpress.com/2019/02 ... -domoticz/
So for me this might be considered closed.

Post Reply

Who is online

Users browsing this forum: No registered users and 28 guests