Created At

Oct 07, 2021

Last Update

Jan 24, 2022

Platforms

HC 3 Lite, Z-box Hub, Yubii Home, Venture WISE, HC 3

Views

2152

Download

371

Type Quick App

This Quickapp retrieves energy consumption, energy production, gas and water usage from the (P1 Monitor) energy, gas and water meter. 

 

Child Devices for Consumption (Watt), Production (Watt), Todays Consumption (kWh), Todays Production (kWh), Gross Consumption (Watt), Device Consumption (Watt), Waterflow (Liter), Consumption High (kWh), Consumption Low (kWh), Production High (kWh), Production Low (kWh), Consumption L1 L2 L3 (Watt), Production L1 L2 and L3 (Watt), Ampere L1 L2 L3 (Amp), Voltage L1 L2 L3 (Volt), Total Gas (m³) and Total Waterflow (m³). 

 

Energy consumption and energy production is added to the (new) HC3 energy panel. 

 

All power consumption of all HomeCenter devices is summarized. The difference between the total power consumption and the power consumption of the HomeCenter devices is put in a unused device (unless the powerID = 0 or empty). 

 

The Child device Todays Consumption can be selected in the Generals Settings as "Main energy meter". Doing so, the summary consumption will be from this device. If not, the consumption will come from the Child device Consumption High, the Child device Consumption Low and all your energy registering Z-wave devices and there values will be counted twice unless you change the Energy panel setting of each energy registering Z-wave device. 

 

P1-monitor-4.thumb.png.d9be6f9179e4d47151c022a6a8426cf2.png

 

Interval: 

It is now possible to process messages from the smart meter every second. Of course, this is only possible if the smart meter actually sends a message every second. This can be turned on via the ztatz software P1 port configuration page via the "maximum processing speed" option. Note that this gives a high(er) load on the Rpi. It has been tested on the Rpi3/Rpi4 and works well on it. Older or other RPIs have not been tested.


BTW The P1 Monitor QuickApp uses 2 API calls each cycle, and if you also use Waterflow, 3 API calls each cycle. With an interval setting of 10 seconds there is an API call every 5 seconds (and with Waterflow enabled, every 3.33 seconds). So the fastest interval setting will probably be 3 seconds with Waterflow and 2 seconds without Waterflow. 
 

Version 1.6 (8th January 2022)

  • Changed the waterflow algoritme to show more stable and more acurate measurements
  • Small change in the code for checking existance of waterflow sensor
  • Changed the Waterflow unit from Liter to L/min
  • Added experimental net consumption to power 
  • Added Lasthour gas to labels
  • Changed the API request for status to json output


Tested on: 

  • P1 Monitor version: 20210909 V1.4.0 (see: https://www.ztatz.nl
  • Raspberry Pi model: Raspberry Pi 4 Model B Rev 1.1
  • Linux-5.10.60-v7l+-armv7l-with-debian-10.10
  • Python versie: 3.7.3

 

I use a Smart Meter Cable Starter Kit: 

- Raspberry Pi 4 Model B Rev 1.1 2GB

- 8GB Micro SDHC

- Original Raspberry Pi 4B Enclosure

- Original Raspberry Pi USB-C 3A power supply

- Smart Meter cable 

- P1 Monitor software from: https://www.ztatz.nl 

- Water Flow Sensor (M18 8mm sensing DC 5V NPN NO LJ18A3-8-Z/BX-5V cylinder inductive proximity sensor switch work voltage 5VDC special for MCU)

 

 

 

903B0D58-BD03-487D-B599-093590680363.jpeg.4c5501ca5fafa28892e0ac7c64e2c722.jpeg             waterflow-sensor.png.c6d38b52168dc6cd5e9aa0f0add2893f.png

 

 

 

 

P1-monitor-1.png.98df79a87caffc2b6a1bc8e44bc86bf1.png   P1-monitor-2.png.5409dba0d08866f2d127d69690c9ac90.png

 

 

P1-monitor-3.thumb.png.6ad2f204eb9b63fd7259e88cce9c74a1.png

 

 

 

QuickApp variables (mandatory, they will be automatically added with the default values):

  • IPaddress = IP address of your P1 monitor
  • Interval = Number in seconds, the P1 Monitor normally is updated every 10 seconds
  • powerID = ID of the device where you want to capture the 'delta' power, use 0 if you don't want to store the energy consumption
  • debugLevel = Number (1=some, 2=few, 3=all) (default = 1)
  • waterMeter = Existance of watermeter true or false (default = false) 

P1-monitor-logo.png.c3a78cf6227528f64f6a2aa204b1e5c9.png

How to install: 

 

  1. Open the Configuration Interface
  2. Go to Settings > Devices
  3. Click  +
  4. Choose Other Device
  5. Choose Upload File
  6. Choose file from your computer with .fqa

6 Comments,  Want to add comment please login
04801fd12b48c36cbcdf5af0b140e42d

Hi Marco, thanks for using the quickapp. I don't quite understand you yet. Maybe you mean the Yubii app, how the Yubii app shows the current power usage. Chatting on this Marketplace is a bit difficult, can you send a Personal Message on the forum? (forum.fibaro.com)

Faf3c3e69283206bf6f5399e75550e78

Hello Eddy, thx for the great work. I implemented it but got a bug i think. In de Fibaro app i see very nice the power consumption. But the consumption of it is also de Watt that your QA shows. Even from the fases it counts on it. So if my P1 give me say 700watt, when i put the kettle on with say 1500 watt then the consumption is 700+1500 tru P1 and 1500 watt tru fibaro energie. total of 3700 i see.

04801fd12b48c36cbcdf5af0b140e42d

This is more a question for the ztatz.nl software, not for the QuickApps. The ztatz software isn’t prepared to manage two water sensors. You could offcource use two Raspberry’s Pi with both the ztatz software, but I don’t think that is your aim. . BTW There are other solutions to measure water flow, like the Toon Water sensor and QuickApp. You can use as many sensors and QuickApps you like.

44184642eef5a6fb828629d32172353c

Hello, does anyone knows if it is possible to install two whater flow sensors together with the respberry pi using two Smart Meter cables?

04801fd12b48c36cbcdf5af0b140e42d

Hi HSWA, you can start with a small test from your browser, for exameple with this link ipaddress/api/v1/smartmeter? limit=1&json=object (please fill in your IP address)