[APP][PRO] YouLess, Enelogic, PVOutput - Belgian and Dutch P1 Smart Meter Reader

If you could please keep the conversation in English as much as possible, then more people will be able to participate.

1 Like

This is my first flow for daily calculation. Ideally I should round it, but this is fine for now. How did you solve the showering? Did you create separate variable @Gruijter

I actually have a pretty complex bathroom logic that also involves humidity and motion.

By the way, if you want to summarize water usage per hour, day, month, year, have a look at this app that I created for that: https://homey.app/en-us/app/com.gruijter.powerhour/Power-by-the-Hour/

I have at least the same hardware setup, so if you want to share:-)

It really is too complex to share. Here a screenshot of a part of the flows I use for the bathroom…

New version is pending approval in the Homey app store.

Changelog v3.1.0:

  • Homey V5 compatibility fixed.
  • App store optimizations.
  • App log improvements.
  • Faster production measurement for old P1 meters.
  • Memory and CPU optimizations.

Get it now already as test version: https://homey.app/a/com.gruijter.enelogic/test/

4 Likes

Master! This example separates the boys from the man
I now understand why you are hesitant sharing all the underlying workflows :slight_smile:

Wrong thread…

Just a question, the SO, does report in l/min or l/sec? If last, possible to change to l/min?

Also have an error in log: β€œCannot read property β€œ1” of null” ? App v. 3.1.0. I`m only using the SO port.

Thx

Its L/minute (assuming you use the S0 as water meter :wink:)

The error itself is insufficient for me to understand what is going on. Please create an issue on Github with more context information (e.g. what is triggering the message, what driver, full log, …)

2020-11-11 17:01:16 [log][LS110Water] enelogic_water ledring screensaver ready!
2020-11-11 17:01:16 [log][LS120S0] enelogic_s0 ledring screensaver ready!
2020-11-11 17:01:16 [log][LS110] enelogic_optical ledring screensaver ready!
2020-11-11 17:01:16 [log][LS120] enelogic_power ledring screensaver ready!
2020-11-11 17:01:16 [log][enelogicp1] enelogic_power_legacy ledring screensaver ready!
2020-11-11 17:01:13 [err][LS120S0] [0] Cannot read property β€˜1’ of null
2020-11-11 17:01:12 [log][LS120S0] entering LS120S0 driver
2020-11-11 17:01:12 [log][LS110Water] entering LS110Water driver
2020-11-11 17:01:12 [log][LS110] entering LS110 driver
2020-11-11 17:01:12 [log][LS120] entering LS120 driver
2020-11-11 17:01:12 [log][enelogicp1] entering Enelogic driver
2020-11-11 17:01:12 [log] capturing stderr
2020-11-11 17:01:12 [log] capturing stdout
2020-11-11 17:01:06 [log] app unload called
2020-11-11 16:15:42 [err][LS120S0] [0] poll error: Error: Connection timeout
2020-11-11 13:12:29 [err][LS120S0] [0] poll error: Error: Connection timeout
2020-11-11 13:12:10 [err][LS120S0] [0] poll error: Error: Connection timeout
2020-11-11 09:49:16 [log][LS110Water] [0] LS110 deleted as device: LS120W_192.168.21.250
2020-11-11 09:48:18 [log][LS110Water] [0] LS110 added as device: LS120W_192.168.21.250
2020-11-11 09:48:18 [err][LS110Water] [0] Cannot read property β€˜1’ of null
2020-11-11 09:48:17 [log][LS110Water] save button pressed in frontend
2020-11-11 09:47:32 [log][LS110Water] device discovery started

FWIW, my guess is that one of the regex matches in youless.js is failing (.match() will return null if it couldn’t find a match).

@Tangodelta please create an issue on github. This forum is not really the place for going in depth on the subject.

Many thanks for your donation Michel Smit. Much appreciated!

At the insights graph I see that the water measurement seems to start correctly during showering, but when the tap is completely turned off, it seems that the measurement slowly stops. Is this normal behaviour? I have a water sensor HRI on my Sensus watermeter connectet to the S0 of my youless.

You did not include the time scale in the snapshot. But it looks caused by how Homey Insights draws the graph. Download the csv data, and check in excel what the real values are.

This was the one hour graph.
I see the same issue on the real value of the device β€œWatermeter” and in the raw data. (see below)
I assume that normally, when the tap is closed, the reading shoud be β€œ0” directly. Or am I missing a calibration or setting?

|β€œ2020-12-04 10:42:45|”|0.57|
|β€œ2020-12-04 10:42:50|”|0.57|
|β€œ2020-12-04 10:42:55|”|0.52|
|β€œ2020-12-04 10:43:00|”|0.52|
|β€œ2020-12-04 10:43:05|”|0.48|
|β€œ2020-12-04 10:43:10|”|0.48|
|β€œ2020-12-04 10:43:15|”|0.44000000|
|β€œ2020-12-04 10:43:20|”|0.44000000|
|β€œ2020-12-04 10:43:25|”|0.41|
|β€œ2020-12-04 10:43:30|”|0.41|
|β€œ2020-12-04 10:43:35|”|0.39|
|β€œ2020-12-04 10:43:40|”|0.39|
|β€œ2020-12-04 10:43:45|”|0.36|
|β€œ2020-12-04 10:43:50|”|0.36|
|β€œ2020-12-04 10:43:55|”|0.34|
|β€œ2020-12-04 10:44:00|”|0.34|
|β€œ2020-12-04 10:44:05|”|0.32|
|β€œ2020-12-04 10:44:10|”|0.32|
|β€œ2020-12-04 10:44:15|”|0.31|
|β€œ2020-12-04 10:44:20|”|0.31|
|β€œ2020-12-04 10:44:25|”|0.29|
|β€œ2020-12-04 10:44:30|”|0.29|
|β€œ2020-12-04 10:44:35|”|0.28|
|β€œ2020-12-04 10:44:40|”|0.28|
|β€œ2020-12-04 10:44:45|”|0.27|
|β€œ2020-12-04 10:44:50|”|0.27|
|β€œ2020-12-04 10:44:55|”|0.26|
|β€œ2020-12-04 10:45:00|”|0.26|
|β€œ2020-12-04 10:45:05|”|0.24|
|β€œ2020-12-04 10:45:10|”|0.24|
|β€œ2020-12-04 10:45:15|”|0.24|
|β€œ2020-12-04 10:45:20|”|0.24|
|β€œ2020-12-04 10:45:25|”|0.23000000|
|β€œ2020-12-04 10:45:30|”|0.23000000|
|β€œ2020-12-04 10:45:35|”|0.22|
|β€œ2020-12-04 10:45:40|”|0.22|
|β€œ2020-12-04 10:45:45|”|0.21|
|β€œ2020-12-04 10:45:50|”|0.21|
|β€œ2020-12-04 10:45:55|”|0.2|
|β€œ2020-12-04 10:46:00|”|0.2|
|β€œ2020-12-04 10:46:05|”|0.2|
|β€œ2020-12-04 10:46:10|”|0.2|
|β€œ2020-12-04 10:46:15|”|0.19|
|β€œ2020-12-04 10:46:20|”|0.19|
|β€œ2020-12-04 10:46:25|”|0.18|
|β€œ2020-12-04 10:46:30|”|0.18|
|β€œ2020-12-04 10:46:35|”|0.18|
|β€œ2020-12-04 10:46:40|”|0.18|
|β€œ2020-12-04 10:46:45|”|0.17|
|β€œ2020-12-04 10:46:50|”|0.17|
|β€œ2020-12-04 10:46:55|”|0.17|
|β€œ2020-12-04 10:47:00|”|0.17|
|β€œ2020-12-04 10:47:05|”|0|
|β€œ2020-12-04 10:47:10|”|0|

Yes that is weird. I have no idea why it slowly goes down. The pulses from the water meter stop immediately when there is no water flow.

Correct, the meter stops when the tap is closed. I will investigate if it is somthing electrical wit hthe sensor. (I already removed the extra cable lenght between the cable and my youless. But without any luck)

Some inspiration for those with a youless with the PVOutput (PO) firmware.

Because this Youless Enelogic app doesn’t work with this firmware i developed a workaround.

Inspired by this documentation i wrote a homey script to scrape the RAW P1 telegram message from the youless device and post this to the /update/dsmrreader endpoint of the the P1 smart meter app :slight_smile: