Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95365

S0 pulse counting on Pi and output to JSON or MQTT

$
0
0

@thinx wrote:

Hi there,

As a replacement for my current energy monitor, I am busy trying to build something new based on Raspberry Pi. I stumbled upon the DSMR Reader project (https://dsmr-reader.readthedocs.io/en/v3/) and installed this on the Pi to read the P1 telegrams from the Smart Meter and that gives a nice graph and some basic information about the energy and gas consumption:

But the thing that misses here to get a clear overview is the gross energy demand, because of the solar panels, the numbers on the P1 output are net so I can’t see what te solar panels are delivering.

I looked through the requests at the DSMR project but it focuses mainly on the smart meter, not on anything outside of that.

Now, I am looking for a solution to do pulse counting on the Pi and let that present the result as JSON or send it over to MQTT to Home Assistant running on a NUC somewhere else. I searched all of Google but nobody has done it or succeeded trying.

I’m using a Pi 3B connected with a P1 cable to the Smart Meter. I have the possibility to connect the kWh meter’s S0 bus to it using a 10k pull-up resistor, sorted that out already.

The thing is that I’m not that kind of programmer that can create a script to do magic with the pulses received on the GPIO port on the Pi and create a JSON of that (nginx is already on the pi because of DSMR Reader)

Is there anybody out there that can give me a hand and help me out to do this?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95365

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>