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 (which is Lua for Eliq)
Question re Electricity (instant and counter)
Moderators: leecollings, remb0
-
- Posts: 8
- Joined: Thursday 24 January 2019 10:18
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Question re Electricity (instant and counter)
looking for these answers too, x-ref viewtopic.php?f=28&t=21977&p=219112#p219112
Who is online
Users browsing this forum: No registered users and 1 guest