Question re Electricity (instant and counter)

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
buzzzy
Posts: 7
Joined: Wednesday 24 January 2018 22:27
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Question re Electricity (instant and counter)

Post by buzzzy »

I'm linking my power meter to Domoticz. I found the combined sensor Electricity (instant and counter) here.

In the wiki I read
IDX = id of your device (This number can be found in the devices tab in the column "IDX")
POWER = current power
ENERGY = cumulative energy in Watt-hours (Wh) This is an incrementing counter.

I haven't got the energy to work, so wanted to see if I can get a few things clarified:

1. If I have "Energy read: From device", I guess I have to pull the existing data out first from Domoticz, and add the newly consumed energy, before sending the value back? That's is; "This is an incrementing counter" means I have to always give the total, Domoticz doesn't add my value to what's already in the database?

Alternatively write the total to a file, read and update for every check/update to Domoticz?

2. What data do I pull; the JSON shows two values
CounterToday: "147.516 kWh"
Data: "147.583 kWh"

I guess I pull "Data" and add to my new value?

3. How is CounterToday calculated, lets say I do only one update per day, what's yesterday and what's today?

4. If I have "Energy read: Computed", according to the Wiki, I don't have to supply the energy. Is then Domoticz clever and does the Energy = power * time since last update? CAn't get the total to add up.

When done I promise to post my script :P (which is Lua for Eliq)
Wiley
Posts: 8
Joined: Thursday 24 January 2019 10:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Question re Electricity (instant and counter)

Post by Wiley »

looking for these answers too, x-ref viewtopic.php?f=28&t=21977&p=219112#p219112
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest