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

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:

That is interesting. Can you get all 4 e-meters and the gasmeter from the PO output? If so I could implement this in my homey app.

But on the page you linked I can only see S0, actual watt and (aggregated?) E-meter.

Edit: oh wait, is it now possible to get the raw P1 datagram? If so I can definitely implement support for that to make it independent of firmware installed on the Youless device.

Correct, read the part about RAW P1 telegram :slight_smile:
Firmware independent app would be great :slight_smile: :grinning:
There is also an experimental PO firmware with all e-meters and gasmeter output. Read the thread linked on tweakers.net

1 Like

Thx! Will definitely check this out. Hope I can make the Homey app firmware independent :+1:

1 Like

Super news for PVOutput firmware users. Based on the info from @Torch1969 I contacted youless on the raw P1 information in the LS120.

It appears this raw data is indeed available. Downside is that the information is only intended for debugging purposes. This means that the raw P1 data is very slow (it can take up to 20 seconds to get it), that while retrieving the data the LS120 stops doing everything else (no S0, power, gas updates etc), and the data is more often corrupt than complete.

On the upside I got informed by Youless that the new PVOutput firmware 1.4.4 will get the same data interface as the Enelogic firmware. :partying_face:

That means that if you have a LS120 with PVoutput (-PO) firmware installed, you will now be able to fully use my Homey Youless app.

The firmware is still in beta testing, but if you want to try it out now here is the download link:

http://www.youless.nl/tl_files/downloads/youless-firmware-1.4.4-POb2.exe

3 Likes

I can confirm that it works. :grinning:

I’ve seen similar slow decrease in graphs. My assumpion was that the Youless firmware is interpolating/extrapolating/averaging to convert water pulse frequency to water flow level. Every pulse represents the same amount of water. Fast pulses mean high water flow, slow pulses mean low water flow. If the firmware does nothing, you’d get pulses in the graph instead of a higher or lower graph.

So my guess is that it does something like this:

When the tap is opened, the fist pulse represents the first water intake, but there’s now way of telling if the water flowed fast or slow. It needs the next pulse for that, but that may take some time. It probably assumes slow (delaying the graph a bit) until the next pulse comes and it can get a sense of the speed the water is flowing from the tap.

So, when the tap is fully open for a while, the firmware is seeing high flow and correctly expecting pulses to come in at the same rate. When you suddenly close the tap, the pulses aren’t coming in as expected. So it lowers the expectation for the next pulse, slowly dropping the graph. In the end the total amount will be fine (because it underestimated the start and overestimated at the end).

To put it another way (wish I thought of that first :slight_smile: ) It is spreading the pulses over time, based on the frequency of the pulses. At the end the freqency is hard to guess, because you never now if the next pulse will come or not.

1 Like

New version 3.2.0 is pending approval in the app store.

  • Fix discovery timeout.
  • S0 Energy settings solar/cumulative usability improvement.
  • Add solar/cumulative option to LS110/120 E.
  • youless@2.3.1.

Available now as test version: https://homey.app/a/com.gruijter.enelogic/test/

1 Like

I have a question. I can’t find it here or I do not use the right search words.

I use the LS120 for measurement of the production of the solar panels. Now I want to reset the value of the total production every day to 0. I don’t want to see the total of all production, but I want to see the production of the day (so far).
Can I use a flow? A reset of the device doesn’t set it to 0, already tried that. I can take the total value with a flow, put I can’t set a (new) total value to it with a flow.
Please help.

The youless does not reset the meter every day to 0. But if you want to know how much your solar panels produced on a day, in a month or in a year, use this app that I created for that purpose: [APP] Power by the Hour: Insights per hour, day, month and year

1 Like