Smart meter in logfile

Moderator: leecollings

Post Reply
Franzie
Posts: 30
Joined: Wednesday 09 January 2019 17:10
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Nederland
Contact:

Smart meter in logfile

Post by Franzie »

I just installed a smart meter cable. Now, when I look into my logfile I see every second a notification from this meter. Is this normal? That often?

=====
Frans
renerene
Posts: 351
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: Smart meter in logfile

Post by renerene »

Yes, every 10 seconds there is an update
User avatar
FireWizard
Posts: 1888
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Smart meter in logfile

Post by FireWizard »

Hi Franzie,

That may be correct. It depends on the protocol of the smart meter. Older Smart Meters, with protocol DSMR 4.2 or earlier, emit a telegram every 10 seconds. The newer smart meters, with protocol DSMR 5.0 or newer, emit a telegram every second.
That fills the log file quite fast. However you can limit the number of updates by setting the "Rate Limit" in the hardware for the smart meter to the number of desired seconds.
Last edited by FireWizard on Friday 09 August 2019 13:14, edited 1 time in total.
Franzie
Posts: 30
Joined: Wednesday 09 January 2019 17:10
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Nederland
Contact:

Re: Smart meter in logfile

Post by Franzie »

What can be a reasonable amount of updates?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Smart meter in logfile

Post by waaren »

Franzie wrote: Sunday 24 February 2019 16:55 What can be a reasonable amount of updates?
1 update per 10 seconds.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
User avatar
FireWizard
Posts: 1888
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Smart meter in logfile

Post by FireWizard »

Personally I use 1 update per 10 seconds as well. That is fine for me.
Franzie
Posts: 30
Joined: Wednesday 09 January 2019 17:10
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Nederland
Contact:

Re: Smart meter in logfile

Post by Franzie »

Thanks!
More than enough :)
reneklomp
Posts: 30
Joined: Monday 20 February 2017 23:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Smart meter in logfile

Post by reneklomp »

Same 'problem'... instead of increasing the rate limit can't we configure the amount of logging (e.g. turn it off) it does somewhere?
When it is working It is just generating too much log information if you ask me.
Every second (or even 10 seconds) I get this which is not really meaningful:

2019-08-08 06:21:27.250 (Smart Meter) General/Voltage (Voltage L1)
2019-08-08 06:21:27.257 (Smart Meter) General/Voltage (Voltage L2)
2019-08-08 06:21:27.266 (Smart Meter) General/Voltage (Voltage L3)
2019-08-08 06:21:27.274 (Smart Meter) Usage (Usage L1)
2019-08-08 06:21:27.282 (Smart Meter) Usage (Usage L2)
2019-08-08 06:21:27.290 (Smart Meter) Usage (Usage L3)
2019-08-08 06:21:27.292 (Smart Meter) Usage (Delivery L1)
2019-08-08 06:21:27.294 (Smart Meter) Usage (Delivery L2)
2019-08-08 06:21:27.297 (Smart Meter) Usage (Delivery L3)
2019-08-08 06:21:27.307 (Smart Meter) P1 Smart Meter (Gas)
2019-08-08 06:21:37.249 (Smart Meter) P1 Smart Meter (Power)

Rene.
Steef
Posts: 14
Joined: Monday 07 January 2019 6:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Smart meter in logfile

Post by Steef »

I am curious about this too!

A fresh smart meter was installed here friday, and last night I saw that my used hdd space went from 17% to 48% within a week! On a 32gb card...

I have set the interval to 30 seconds now, also because my Raspberry was quite Hot because of all the updates..

But if someone knows a way how to free some hdd space, it is more than welcome!
MrRikkie
Posts: 11
Joined: Monday 18 July 2016 11:39
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Eindhoven
Contact:

Re: Smart meter in logfile

Post by MrRikkie »

Hi does anybody have an update on this ? Is it possible to disable this meaningless logging ?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Smart meter in logfile

Post by waaren »

MrRikkie wrote: Tuesday 21 July 2020 18:10 Hi does anybody have an update on this ? Is it possible to disable this meaningless logging ?
'Meaningless" is kind of a subjective remark here but yes it is possible to disable the logging for this and all other logging in this class.

edit the file /etc/init.d/domoticz.sh and change the line with

Code: Select all

DAEMON_ARGS="$DAEMON_ARGS -loglevel  normal,status,error"
to

Code: Select all

DAEMON_ARGS="$DAEMON_ARGS -loglevel  error"
save the changed file and exit the editor
then

Code: Select all

sudo systemctl daemon-reload
sudo service domoticz stop
sudo service domoticz start
and you won't get these loglines in the GUI and / or in the OS logfile
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest