Why does the divider in settings matter?

Moderator: leecollings

Post Reply
NiklasO
Posts: 67
Joined: Friday 16 August 2013 18:34
Target OS: -
Domoticz version:
Location: Stockholm, Sweden
Contact:

Why does the divider in settings matter?

Post by NiklasO »

Hello,

I recently changed from 1-wire counter to MySensors to log my power consumption (counting led).
Before, Domoticz had to do the conversion. I have 10 000 imp/kWh. Setting the divider in settings to 10000 gave me correct values.
Now, the MySensors sensor report watt and kWh to Domoticz (#1. V_WATT (4386), V_KWH (70.0002)).
Domoticz added the sensor as "General, kWh" and the calculation is set to "From device".
However, Domoticz still use the divider in settings. The graphs was showing the wrong usage and the widget was showing the total kWh usage both for the main value and the "Today" value even when the day changed.

I changed the divider to the standard 1000 and now everything shows up correct but why does that matter?
By looking at the devices and the data sent by the MySensors sketch (adapted to my settings), it is reporting current watt usage and consumption correct (V_KWH 70.0002). I have used 70kWh since going from 1-wire to MySensors. What data is the divider.... dividing? ;) I know it has the last known pulse count in V_VAR1 but you can't see that value in Domoticz (?). It is probably stored in the gw (?). Does it have something to do with watt hours (Wh)?

This is correct with the divider set to 1000 (graphs correct):
Domoticz_-_Google_Chrome_2017-03-23_19-49-58_92040985.png
Domoticz_-_Google_Chrome_2017-03-23_19-49-58_92040985.png (28.71 KiB) Viewed 1193 times
This one is wrong with the divider set to the old 10000 value (graphs wrong):
Domoticz_-_Google_Chrome_2017-03-23_19-52-29_25849032.png
Domoticz_-_Google_Chrome_2017-03-23_19-52-29_25849032.png (29.18 KiB) Viewed 1192 times
NiklasO
Posts: 67
Joined: Friday 16 August 2013 18:34
Target OS: -
Domoticz version:
Location: Stockholm, Sweden
Contact:

Re: Why does the divider in settings matter?

Post by NiklasO »

Well, answering my own question.

This data:
Domoticz_-_Google_Chrome_2017-03-25_00-32-56_09305506.png
Domoticz_-_Google_Chrome_2017-03-25_00-32-56_09305506.png (11.55 KiB) Viewed 1184 times
Differs from this data (same device, some counts between screenshots):
Domoticz_-_Google_Chrome_2017-03-25_00-34-24_62523685.png
Domoticz_-_Google_Chrome_2017-03-25_00-34-24_62523685.png (3.46 KiB) Viewed 1184 times
Now I see where the divider comes in. ;)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest