datenschuft / SMA-EM

SMA Energymeter measurement
GNU General Public License v2.0
92 stars 38 forks source link

What is "pusage"? #60

Closed rucksman closed 3 years ago

rucksman commented 3 years ago

There in an undocumented value in the MQTT output of the energy meter called "pusage". At least it is not mentioned in config.sample. What is it and what is it's unit? Thanks for this wonderful tool!

datenschuft commented 3 years ago

pusage is calulated with pvdata. so you have to enable pvdata_kostal_json.py or pvdata.py to get data from your inverter. pusage = pvpower + pconsume - psupply (calculated in influxdb.py and/or mqtt.py) pusage = energy from your photovoltaik + consuming energy (SMA-EM) - energy you supply (SMA-EM) Pusage is the power you currently use (in your house) and it's units are Watt (W)

pusage is not documentated in mqtt.py because it depends on the feature pvdata. (could gone better)

rucksman commented 3 years ago

Thanks for the explanation!