Sensors update

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
lost
Posts: 666
Joined: Thursday 10 November 2016 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Sensors update

Post by lost »

Hello,

For sensors (temperatures, power...), looks Domoticz logs/graphs does not always show reliable data.

Probably because some underlying technologies does not always allow modules to sent measures themselves, depending on configuration parameters. So looks stats only shows data retrieved every 5mn (or only last received data).

For some measurements with slow variations like temperature, that's not a big issue. But for some others like power usage, it is!

For instance, my Qubino smart-meter updates global voltage/amps/power depending on configurable % change since last update. Problem is current log strategy does not allow to get reliable peak power data for instance! This can be a problem, see later...

To get this kind of figure, for now (current stable), you have to setup a virtual device sensor that'll be driven by a device script able to catch each update (maybe with some filtering to minimize DB growth) to feed data to the virtual sensor.

=> Logged min/max data, especially for electrical (or anything that can show huge and quick variations) sensors, should not use 1 data per 5mn time-slice but recorded real min/max (and, why not, true average computed from time-slice received/requested data). Not only from data requested by Domoticz but also from device self updates (for technologies that allows this, like z-wave, with configuration parameters).

At the moment, the observed difference can be very significant: Yesterday, direct sensor log by Domoticz was showing max power usage of 7kW while virtual sensor recorded 9.5kW: This was exceeding a bit my electricity provider contract (9kW max), something I was not able to see until now, for a short time.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest