Page 1 of 1
dzVents script for calculating Gas/electricity cost per month
Posted: Wednesday 18 September 2019 20:35
by Knibor
Hi,
I used a dzVents script in Domoticz Beta, because I have got some problems i go to the stable version from Domoticz.
Now I have a problem, the cost per month "Totaal kosten p/m" is not updating ?
"Gaskosten" and "Stroom Opbrengst" are updating perfect
"Gaskosten" is a custom device
"Stroom Opbrengst" is a custom device
"Totaal kosten" is a custom device
I use rasp pi with Domoticz stable version 4.10717
What could be the problem the device "Totaal kosten p/m" is not updating?
Thanks
Code: Select all
return {
on = { timer = { "every 1 minutes" }},
logging = {
level = domoticz.LOG_DEBUG,
marker = "total Cost"
},
execute = function(dz)
local function logWrite(str,level)
dz.log(tostring(str),level or dz.LOG_DEBUG)
end
-- Custom sensors store values in sValue field (string)
-- Money
local StroomOpbrengst = dz.devices('Stroom Opbrengst').state
local Gaskosten = dz.devices('Gaskosten').state
-- Device
local Totaalkosten = dz.devices('Totaal kosten p/m')
-- Kosten berekenen
local jaarKosten = tonumber(Gaskosten) - tonumber(StroomOpbrengst)
local maandKosten = dz.utils.round((jaarKosten / 12),2) - 8.33
logWrite("Kosten zijn: " .. maandKosten )
-- Kosten updaten
Totaalkosten.updateCustomSensor(tostring(maandKosten))
end
}
Re: dzVents script for calculating Gas/electricity cost per month
Posted: Wednesday 18 September 2019 21:01
by waaren
Knibor wrote: Wednesday 18 September 2019 20:35
I used a dzVents script in Domoticz Beta, because I have got some problems i go to the stable version from Domoticz.
Now I have a problem, the cost per month "Totaal kosten p/m" is not updating ?
What could be the problem the device "Totaal kosten p/m" is not updating?
Do you see anything in the domoticz log ?
What type of devices are Stroomopbrengst en Gaskosten ?
Re: dzVents script for calculating Gas/electricity cost per month
Posted: Wednesday 18 September 2019 21:11
by Knibor
Hi,
The devices "Stroom Opbrengst" and "Gastkosten" are General Custom devices.
The error log in Domoticz gives me no errors.
But the device is not updating!
Code: Select all
return {
on = { timer = { "every 1 minutes" }},
logging = {
level = domoticz.LOG_DEBUG,
marker = "total Cost"
},
execute = function(dz)
local function logWrite(str,level)
dz.log(tostring(str),level or dz.LOG_DEBUG)
end
-- Custom sensors store values in sValue field (string)
-- Money
local StroomOpbrengst = dz.devices('Stroom Opbrengst').state
local Gaskosten = dz.devices('Gaskosten').state
-- Device
local Totaalkosten = dz.devices('Totaal kosten')
-- Kosten berekenen
local jaarKosten = tonumber(Gaskosten) - tonumber(StroomOpbrengst)
local maandKosten = dz.utils.round((jaarKosten / 12),2)
logWrite("Kosten zijn: " .. maandKosten )
-- Kosten updaten
Totaalkosten.updateCustomSensor(tostring(maandKosten))
end
}
Re: dzVents script for calculating Gas/electricity cost per month
Posted: Wednesday 18 September 2019 22:50
by waaren
Knibor wrote: Wednesday 18 September 2019 21:11
The devices "Stroom Opbrengst" and "Gastkosten" are General Custom devices.
Can you try this ?
Effectively I only added a couple of debug lines.
Just tested this script on stable release and It behaves as expected. Please share what you see in the domoticz log.
Code: Select all
return {
on = { timer = { "every 1 minutes" }},
logging = { level = domoticz.LOG_DEBUG },
execute = function(dz, item, info)
_G.logMarker = '(V' .. dz.settings.domoticzVersion ..') - dzVents: ' .. dz.settings.dzVentsVersion .. ' > ' .. info.scriptName
function logWrite(str,level)
dz.log(tostring(str),level or dz.LOG_DEBUG)
end
-- Custom sensors store values in sValue field (string)
local Stroom = dz.devices('Stroom Opbrengst')
local Gas = dz.devices('Gaskosten')
local Totaal = dz.devices('Totaal kosten p/m')
-- Money
local StroomOpbrengst = Stroom.state
local Gaskosten = Gas.state
local Totaalkosten = Totaal.state
logWrite("Gaskosten: " .. Gaskosten .. ' Euro. Last updated '.. Gas.lastUpdate.secondsAgo .. ' seconds ago.')
logWrite("StroomOpbrengst: " .. StroomOpbrengst .. ' Euro. Last updated '.. Stroom.lastUpdate.secondsAgo .. ' seconds ago.')
logWrite("Totaalkosten: " .. Totaalkosten .. ' Euro. Last updated ' .. Totaal.lastUpdate.secondsAgo .. ' seconds ago.\n\n' )
-- Kosten berekenen
local jaarKosten = tonumber(Gaskosten) - tonumber(StroomOpbrengst)
local maandKosten = dz.utils.round((jaarKosten / 12),2) - 8.33
logWrite("Kosten zijn: " .. maandKosten )
-- Kosten updaten
Totaal.updateCustomSensor(tostring(maandKosten))
end
}
log:
Code: Select all
2019-09-18 22:47:00.527 Status: dzVents: Info: ------ Start internal script: total costs:, trigger: every 1 minutes
2019-09-18 22:47:00.573 Status: dzVents: Debug: (V4.10717) - dzVents: 2.4.19 > total costs: Processing device-adapter for Stroom Opbrengst: Custom sensor device adapter
2019-09-18 22:47:00.574 Status: dzVents: Debug: (V4.10717) - dzVents: 2.4.19 > total costs: Processing device-adapter for Gaskosten: Custom sensor device adapter
2019-09-18 22:47:00.575 Status: dzVents: Debug: (V4.10717) - dzVents: 2.4.19 > total costs: Processing device-adapter for Totaal kosten p/m: Custom sensor device adapter
2019-09-18 22:47:00.575 Status: dzVents: Debug: (V4.10717) - dzVents: 2.4.19 > total costs: Gaskosten: 678.91 Euro. Last updated 39 seconds ago.
2019-09-18 22:47:00.575 Status: dzVents: Debug: (V4.10717) - dzVents: 2.4.19 > total costs: StroomOpbrengst: 234 Euro. Last updated 8 seconds ago.
2019-09-18 22:47:00.575 Status: dzVents: Debug: (V4.10717) - dzVents: 2.4.19 > total costs: Totaalkosten: 19.5 Euro. Last updated 60 seconds ago.
2019-09-18 22:47:00.575 Status: dzVents: Debug: (V4.10717) - dzVents: 2.4.19 > total costs: Kosten zijn: 28.75
2019-09-18 22:47:00.575 Status: dzVents: Info: (V4.10717) - dzVents: 2.4.19 > total costs: ------ Finished total costs
Re: dzVents script for calculating Gas/electricity cost per month
Posted: Wednesday 18 September 2019 23:53
by Knibor
Hi,
I used your dzVents script, the script gives me no error. In the log status there are no logs from "Gaskosten" "Totaal kosten p/m" and "Stroom Opbrengst" ?
It looks or the script is not running?
Re: dzVents script for calculating Gas/electricity cost per month
Posted: Thursday 19 September 2019 0:04
by waaren
Knibor wrote: Wednesday 18 September 2019 23:53
Hi,
I used your dzVents script, the script gives me no error. In the log status there are no logs from "Gaskosten" "Totaal kosten p/m" and "Stroom Opbrengst" ?
It looks or the script is not running?
If you do not see anything in the log. The script does not run.
Is dzVents enabled in the settings ?
Re: dzVents script for calculating Gas/electricity cost per month
Posted: Thursday 19 September 2019 0:18
by Knibor
dzVents is enabled, the log file gives me this output, but not the log when I filtering on "total costs"
Code: Select all
Allemaal
Status
Filter: X
2019-09-19 00:18:24.575 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 00:18:24.575 Status: dzVents: Debug: Event triggers:
2019-09-19 00:18:24.575 Status: dzVents: Debug: - Device: Zonne energie
2019-09-19 00:18:24.575 Status: dzVents: Debug: - Device: Net energie
2019-09-19 00:18:25.222 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 00:18:25.268 Status: dzVents: Debug: Processing device-adapter for Power: P1 smart meter energy device adapter
2019-09-19 00:18:25.269 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 00:18:25.269 Status: dzVents: Debug: Event triggers:
2019-09-19 00:18:25.269 Status: dzVents: Debug: - Device: Power
2019-09-19 00:18:25.297 Status: dzVents: Info: Handling events for: "Power", value: "2748155;1622777;1795357;4639365;168;0"
2019-09-19 00:18:25.297 Status: dzVents: Info: P1_Delivery: ------ Start internal script: Net energie: Device: "Power (P1)", Index: 1
2019-09-19 00:18:25.298 Status: dzVents: Info: P1_Delivery: Use from the grid: 168 Watt
2019-09-19 00:18:25.299 Status: dzVents: Info: P1_Delivery: ------ Finished Net energie
2019-09-19 00:18:25.299 Status: dzVents: Info: P1_Delivery: ------ Start internal script: Zonne energie: Device: "Power (P1)", Index: 1
2019-09-19 00:18:25.300 Status: dzVents: Info: P1_Delivery: ------ Finished Zonne energie
2019-09-19 00:18:25.300 Status: dzVents: Debug: Commands sent to Domoticz:
2019-09-19 00:18:25.300 Status: dzVents: Debug: - UpdateDevice = {["nValue"]=0, ["_trigger"]=true, ["idx"]=100, ["sValue"]="168;nil"}
2019-09-19 00:18:25.300 Status: dzVents: Debug: - UpdateDevice = {["nValue"]=0, ["_trigger"]=true, ["idx"]=99, ["sValue"]="nil;nil"}
2019-09-19 00:18:25.300 Status: dzVents: Debug: =====================================================
2019-09-19 00:18:25.300 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2019-09-19 00:18:25.311 Status: LUA: Used: 168 Watt
2019-09-19 00:18:25.311 Status: LUA: Produced: 0 Watt
2019-09-19 00:18:25.311 Status: LUA: Sending to the grid: -168 Watt
2019-09-19 00:18:25.312 Status: EventSystem: Script event triggered: Echte Levering
2019-09-19 00:18:25.348 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 00:18:25.394 Status: dzVents: Debug: Processing device-adapter for Voltage L1: Voltage device adapter
2019-09-19 00:18:25.395 Status: dzVents: Debug: Processing device-adapter for Voltage L2: Voltage device adapter
2019-09-19 00:18:25.396 Status: dzVents: Debug: Processing device-adapter for Voltage L3: Voltage device adapter
2019-09-19 00:18:25.396 Status: dzVents: Debug: Processing device-adapter for Usage L1: Electric usage device adapter
2019-09-19 00:18:25.397 Status: dzVents: Debug: Processing device-adapter for Usage L2: Electric usage device adapter
2019-09-19 00:18:25.398 Status: dzVents: Debug: Processing device-adapter for Usage L3: Electric usage device adapter
2019-09-19 00:18:25.398 Status: dzVents: Debug: Processing device-adapter for Delivery L1: Electric usage device adapter
2019-09-19 00:18:25.399 Status: dzVents: Debug: Processing device-adapter for Delivery L2: Electric usage device adapter
2019-09-19 00:18:25.400 Status: dzVents: Debug: Processing device-adapter for Delivery L3: Electric usage device adapter
2019-09-19 00:18:25.400 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 00:18:25.400 Status: dzVents: Debug: Event triggers:
2019-09-19 00:18:25.400 Status: dzVents: Debug: - Device: Voltage L1
2019-09-19 00:18:25.400 Status: dzVents: Debug: - Device: Voltage L2
2019-09-19 00:18:25.400 Status: dzVents: Debug: - Device: Voltage L3
2019-09-19 00:18:25.400 Status: dzVents: Debug: - Device: Usage L1
2019-09-19 00:18:25.400 Status: dzVents: Debug: - Device: Usage L2
2019-09-19 00:18:25.400 Status: dzVents: Debug: - Device: Usage L3
2019-09-19 00:18:25.400 Status: dzVents: Debug: - Device: Delivery L1
2019-09-19 00:18:25.400 Status: dzVents: Debug: - Device: Delivery L2
2019-09-19 00:18:25.400 Status: dzVents: Debug: - Device: Delivery L3
2019-09-19 00:18:25.507 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 00:18:25.556 Status: dzVents: Debug: Processing device-adapter for Zonne energie: kWh device adapter
2019-09-19 00:18:25.557 Status: dzVents: Debug: Processing device-adapter for Net energie: kWh device adapter
2019-09-19 00:18:25.557 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 00:18:25.558 Status: dzVents: Debug: Event triggers:
2019-09-19 00:18:25.558 Status: dzVents: Debug: - Device: Zonne energie
2019-09-19 00:18:25.558 Status: dzVents: Debug: - Device: Net energie
2019-09-19 00:18:26.225 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 00:18:26.286 Status: dzVents: Debug: Processing device-adapter for Power: P1 smart meter energy device adapter
2019-09-19 00:18:26.286 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 00:18:26.286 Status: dzVents: Debug: Event triggers:
2019-09-19 00:18:26.286 Status: dzVents: Debug: - Device: Power
2019-09-19 00:18:26.318 Status: dzVents: Info: Handling events for: "Power", value: "2748155;1622777;1795357;4639365;177;0"
2019-09-19 00:18:26.318 Status: dzVents: Info: P1_Delivery: ------ Start internal script: Net energie: Device: "Power (P1)", Index: 1
2019-09-19 00:18:26.319 Status: dzVents: Info: P1_Delivery: Use from the grid: 177 Watt
2019-09-19 00:18:26.319 Status: dzVents: Info: P1_Delivery: ------ Finished Net energie
2019-09-19 00:18:26.320 Status: dzVents: Info: P1_Delivery: ------ Start internal script: Zonne energie: Device: "Power (P1)", Index: 1
2019-09-19 00:18:26.321 Status: dzVents: Info: P1_Delivery: ------ Finished Zonne energie
2019-09-19 00:18:26.321 Status: dzVents: Debug: Commands sent to Domoticz:
2019-09-19 00:18:26.321 Status: dzVents: Debug: - UpdateDevice = {["nValue"]=0, ["_trigger"]=true, ["idx"]=100, ["sValue"]="177;nil"}
2019-09-19 00:18:26.321 Status: dzVents: Debug: - UpdateDevice = {["nValue"]=0, ["_trigger"]=true, ["idx"]=99, ["sValue"]="nil;nil"}
2019-09-19 00:18:26.321 Status: dzVents: Debug: =====================================================
2019-09-19 00:18:26.322 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2019-09-19 00:18:26.336 Status: LUA: Used: 177 Watt
2019-09-19 00:18:26.336 Status: LUA: Produced: 0 Watt
2019-09-19 00:18:26.336 Status: LUA: Sending to the grid: -177 Watt
2019-09-19 00:18:26.338 Status: EventSystem: Script event triggered: Echte Levering
2019-09-19 00:18:26.379 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 00:18:26.433 Status: dzVents: Debug: Processing device-adapter for Voltage L1: Voltage device adapter
2019-09-19 00:18:26.434 Status: dzVents: Debug: Processing device-adapter for Voltage L2: Voltage device adapter
2019-09-19 00:18:26.434 Status: dzVents: Debug: Processing device-adapter for Voltage L3: Voltage device adapter
2019-09-19 00:18:26.435 Status: dzVents: Debug: Processing device-adapter for Usage L1: Electric usage device adapter
2019-09-19 00:18:26.436 Status: dzVents: Debug: Processing device-adapter for Usage L2: Electric usage device adapter
2019-09-19 00:18:26.437 Status: dzVents: Debug: Processing device-adapter for Usage L3: Electric usage device adapter
2019-09-19 00:18:26.437 Status: dzVents: Debug: Processing device-adapter for Delivery L1: Electric usage device adapter
2019-09-19 00:18:26.438 Status: dzVents: Debug: Processing device-adapter for Delivery L2: Electric usage device adapter
2019-09-19 00:18:26.439 Status: dzVents: Debug: Processing device-adapter for Delivery L3: Electric usage device adapter
2019-09-19 00:18:26.439 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 00:18:26.439 Status: dzVents: Debug: Event triggers:
2019-09-19 00:18:26.439 Status: dzVents: Debug: - Device: Voltage L1
2019-09-19 00:18:26.439 Status: dzVents: Debug: - Device: Voltage L2
2019-09-19 00:18:26.439 Status: dzVents: Debug: - Device: Voltage L3
2019-09-19 00:18:26.439 Status: dzVents: Debug: - Device: Usage L1
2019-09-19 00:18:26.439 Status: dzVents: Debug: - Device: Usage L2
2019-09-19 00:18:26.439 Status: dzVents: Debug: - Device: Usage L3
2019-09-19 00:18:26.439 Status: dzVents: Debug: - Device: Delivery L1
2019-09-19 00:18:26.439 Status: dzVents: Debug: - Device: Delivery L2
2019-09-19 00:18:26.439 Status: dzVents: Debug: - Device: Delivery L3
2019-09-19 00:18:26.552 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 00:18:26.599 Status: dzVents: Debug: Processing device-adapter for Zonne energie: kWh device adapter
2019-09-19 00:18:26.600 Status: dzVents: Debug: Processing device-adapter for Net energie: kWh device adapter
2019-09-19 00:18:26.600 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 00:18:26.600 Status: dzVents: Debug: Event triggers:
2019-09-19 00:18:26.600 Status: dzVents: Debug: - Device: Zonne energie
2019-09-19 00:18:26.600 Status: dzVents: Debug: - Device: Net energie
2019-09-19 00:18:29.605 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 00:18:29.605 Status: dzVents: Debug: Event triggers:
2019-09-19 00:18:29.605 Status: dzVents: Debug: - Device: Zonne energie
2019-09-19 00:18:29.605 Status: dzVents: Debug: - Device: Net energie
2019-09-19 00:18:30.236 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 00:18:30.282 Status: dzVents: Debug: Processing device-adapter for Power: P1 smart meter energy device adapter
2019-09-19 00:18:30.282 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 00:18:30.282 Status: dzVents: Debug: Event triggers:
2019-09-19 00:18:30.282 Status: dzVents: Debug: - Device: Power
2019-09-19 00:18:30.311 Status: dzVents: Info: Handling events for: "Power", value: "2748155;1622777;1795357;4639365;177;0"
2019-09-19 00:18:30.311 Status: dzVents: Info: P1_Delivery: ------ Start internal script: Net energie: Device: "Power (P1)", Index: 1
2019-09-19 00:18:30.312 Status: dzVents: Info: P1_Delivery: Use from the grid: 177 Watt
2019-09-19 00:18:30.312 Status: dzVents: Info: P1_Delivery: ------ Finished Net energie
2019-09-19 00:18:30.312 Status: dzVents: Info: P1_Delivery: ------ Start internal script: Zonne energie: Device: "Power (P1)", Index: 1
2019-09-19 00:18:30.313 Status: dzVents: Info: P1_Delivery: ------ Finished Zonne energie
2019-09-19 00:18:30.313 Status: dzVents: Debug: Commands sent to Domoticz:
2019-09-19 00:18:30.313 Status: dzVents: Debug: - UpdateDevice = {["nValue"]=0, ["_trigger"]=true, ["idx"]=100, ["sValue"]="177;nil"}
2019-09-19 00:18:30.313 Status: dzVents: Debug: - UpdateDevice = {["nValue"]=0, ["_trigger"]=true, ["idx"]=99, ["sValue"]="nil;nil"}
2019-09-19 00:18:30.313 Status: dzVents: Debug: =====================================================
2019-09-19 00:18:30.313 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2019-09-19 00:18:30.324 Status: LUA: Used: 177 Watt
2019-09-19 00:18:30.324 Status: LUA: Produced: 0 Watt
2019-09-19 00:18:30.324 Status: LUA: Sending to the grid: -177 Watt
2019-09-19 00:18:30.326 Status: EventSystem: Script event triggered: Echte Levering
2019-09-19 00:18:30.362 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 00:18:30.408 Status: dzVents: Debug: Processing device-adapter for Voltage L1: Voltage device adapter
2019-09-19 00:18:30.409 Status: dzVents: Debug: Processing device-adapter for Voltage L2: Voltage device adapter
2019-09-19 00:18:30.410 Status: dzVents: Debug: Processing device-adapter for Voltage L3: Voltage device adapter
2019-09-19 00:18:30.411 Status: dzVents: Debug: Processing device-adapter for Usage L1: Electric usage device adapter
2019-09-19 00:18:30.411 Status: dzVents: Debug: Processing device-adapter for Usage L2: Electric usage device adapter
2019-09-19 00:18:30.412 Status: dzVents: Debug: Processing device-adapter for Usage L3: Electric usage device adapter
2019-09-19 00:18:30.413 Status: dzVents: Debug: Processing device-adapter for Delivery L1: Electric usage device adapter
2019-09-19 00:18:30.413 Status: dzVents: Debug: Processing device-adapter for Delivery L2: Electric usage device adapter
2019-09-19 00:18:30.414 Status: dzVents: Debug: Processing device-adapter for Delivery L3: Electric usage device adapter
2019-09-19 00:18:30.414 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 00:18:30.414 Status: dzVents: Debug: Event triggers:
2019-09-19 00:18:30.414 Status: dzVents: Debug: - Device: Voltage L1
2019-09-19 00:18:30.414 Status: dzVents: Debug: - Device: Voltage L2
2019-09-19 00:18:30.414 Status: dzVents: Debug: - Device: Voltage L3
2019-09-19 00:18:30.414 Status: dzVents: Debug: - Device: Usage L1
2019-09-19 00:18:30.414 Status: dzVents: Debug: - Device: Usage L2
2019-09-19 00:18:30.414 Status: dzVents: Debug: - Device: Usage L3
2019-09-19 00:18:30.414 Status: dzVents: Debug: - Device: Delivery L1
2019-09-19 00:18:30.414 Status: dzVents: Debug: - Device: Delivery L2
2019-09-19 00:18:30.414 Status: dzVents: Debug: - Device: Delivery L3
2019-09-19 00:18:30.522 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 00:18:30.568 Status: dzVents: Debug: Processing device-adapter for Zonne energie: kWh device adapter
2019-09-19 00:18:30.569 Status: dzVents: Debug: Processing device-adapter for Net energie: kWh device adapter
2019-09-19 00:18:30.569 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 00:18:30.569 Status: dzVents: Debug: Event triggers:
2019-09-19 00:18:30.569 Status: dzVents: Debug: - Device: Zonne energie
2019-09-19 00:18:30.569 Status: dzVents: Debug: - Device: Net energie
2019-09-19 00:18:31.232 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 00:18:31.294 Status: dzVents: Debug: Processing device-adapter for Power: P1 smart meter energy device adapter
2019-09-19 00:18:31.295 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 00:18:31.295 Status: dzVents: Debug: Event triggers:
2019-09-19 00:18:31.295 Status: dzVents: Debug: - Device: Power
2019-09-19 00:18:31.323 Status: dzVents: Info: Handling events for: "Power", value: "2748155;1622777;1795357;4639365;173;0"
2019-09-19 00:18:31.323 Status: dzVents: Info: P1_Delivery: ------ Start internal script: Net energie: Device: "Power (P1)", Index: 1
2019-09-19 00:18:31.324 Status: dzVents: Info: P1_Delivery: Use from the grid: 173 Watt
2019-09-19 00:18:31.324 Status: dzVents: Info: P1_Delivery: ------ Finished Net energie
2019-09-19 00:18:31.324 Status: dzVents: Info: P1_Delivery: ------ Start internal script: Zonne energie: Device: "Power (P1)", Index: 1
2019-09-19 00:18:31.325 Status: dzVents: Info: P1_Delivery: ------ Finished Zonne energie
2019-09-19 00:18:31.325 Status: dzVents: Debug: Commands sent to Domoticz:
2019-09-19 00:18:31.325 Status: dzVents: Debug: - UpdateDevice = {["nValue"]=0, ["idx"]=100, ["sValue"]="173;nil", ["_trigger"]=true}
2019-09-19 00:18:31.325 Status: dzVents: Debug: - UpdateDevice = {["nValue"]=0, ["idx"]=99, ["sValue"]="nil;nil", ["_trigger"]=true}
2019-09-19 00:18:31.325 Status: dzVents: Debug: =====================================================
2019-09-19 00:18:31.326 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2019-09-19 00:18:31.337 Status: LUA: Used: 173 Watt
2019-09-19 00:18:31.337 Status: LUA: Produced: 0 Watt
2019-09-19 00:18:31.337 Status: LUA: Sending to the grid: -173 Watt
2019-09-19 00:18:31.339 Status: EventSystem: Script event triggered: Echte Levering
2019-09-19 00:18:31.375 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 00:18:31.422 Status: dzVents: Debug: Processing device-adapter for Voltage L1: Voltage device adapter
2019-09-19 00:18:31.423 Status: dzVents: Debug: Processing device-adapter for Voltage L2: Voltage device adapter
2019-09-19 00:18:31.424 Status: dzVents: Debug: Processing device-adapter for Voltage L3: Voltage device adapter
2019-09-19 00:18:31.424 Status: dzVents: Debug: Processing device-adapter for Usage L1: Electric usage device adapter
2019-09-19 00:18:31.425 Status: dzVents: Debug: Processing device-adapter for Usage L2: Electric usage device adapter
2019-09-19 00:18:31.426 Status: dzVents: Debug: Processing device-adapter for Usage L3: Electric usage device adapter
2019-09-19 00:18:31.426 Status: dzVents: Debug: Processing device-adapter for Delivery L1: Electric usage device adapter
2019-09-19 00:18:31.427 Status: dzVents: Debug: Processing device-adapter for Delivery L2: Electric usage device adapter
2019-09-19 00:18:31.427 Status: dzVents: Debug: Processing device-adapter for Delivery L3: Electric usage device adapter
2019-09-19 00:18:31.428 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 00:18:31.428 Status: dzVents: Debug: Event triggers:
2019-09-19 00:18:31.428 Status: dzVents: Debug: - Device: Voltage L1
2019-09-19 00:18:31.428 Status: dzVents: Debug: - Device: Voltage L2
2019-09-19 00:18:31.428 Status: dzVents: Debug: - Device: Voltage L3
2019-09-19 00:18:31.428 Status: dzVents: Debug: - Device: Usage L1
2019-09-19 00:18:31.428 Status: dzVents: Debug: - Device: Usage L2
2019-09-19 00:18:31.428 Status: dzVents: Debug: - Device: Usage L3
2019-09-19 00:18:31.428 Status: dzVents: Debug: - Device: Delivery L1
2019-09-19 00:18:31.428 Status: dzVents: Debug: - Device: Delivery L2
2019-09-19 00:18:31.428 Status: dzVents: Debug: - Device: Delivery L3
2019-09-19 00:18:31.546 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 00:18:31.593 Status: dzVents: Debug: Processing device-adapter for Zonne energie: kWh device adapter
2019-09-19 00:18:31.594 Status: dzVents: Debug: Processing device-adapter for Net energie: kWh device adapter
2019-09-19 00:18:31.594 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 00:18:31.595 Status: dzVents: Debug: Event triggers:
2019-09-19 00:18:31.595 Status: dzVents: Debug: - Device: Zonne energie
2019-09-19 00:18:31.595 Status: dzVents: Debug: - Device: Net energie
2019-09-19 00:18:34.563 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 00:18:34.563 Status: dzVents: Debug: Event triggers:
2019-09-19 00:18:34.564 Status: dzVents: Debug: - Device: Zonne energie
2019-09-19 00:18:34.564 Status: dzVents: Debug: - Device: Net energie
2019-09-19 00:18:35.234 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 00:18:35.284 Status: dzVents: Debug: Processing device-adapter for Power: P1 smart meter energy device adapter
2019-09-19 00:18:35.284 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 00:18:35.284 Status: dzVents: Debug: Event triggers:
2019-09-19 00:18:35.284 Status: dzVents: Debug: - Device: Power
2019-09-19 00:18:35.312 Status: dzVents: Info: Handling events for: "Power", value: "2748155;1622777;1795357;4639365;181;0"
2019-09-19 00:18:35.312 Status: dzVents: Info: P1_Delivery: ------ Start internal script: Net energie: Device: "Power (P1)", Index: 1
2019-09-19 00:18:35.313 Status: dzVents: Info: P1_Delivery: Use from the grid: 181 Watt
2019-09-19 00:18:35.313 Status: dzVents: Info: P1_Delivery: ------ Finished Net energie
2019-09-19 00:18:35.313 Status: dzVents: Info: P1_Delivery: ------ Start internal script: Zonne energie: Device: "Power (P1)", Index: 1
2019-09-19 00:18:35.314 Status: dzVents: Info: P1_Delivery: ------ Finished Zonne energie
2019-09-19 00:18:35.314 Status: dzVents: Debug: Commands sent to Domoticz:
2019-09-19 00:18:35.314 Status: dzVents: Debug: - UpdateDevice = {["nValue"]=0, ["idx"]=100, ["sValue"]="181;nil", ["_trigger"]=true}
2019-09-19 00:18:35.314 Status: dzVents: Debug: - UpdateDevice = {["nValue"]=0, ["idx"]=99, ["sValue"]="nil;nil", ["_trigger"]=true}
2019-09-19 00:18:35.314 Status: dzVents: Debug: =====================================================
2019-09-19 00:18:35.315 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2019-09-19 00:18:35.326 Status: LUA: Used: 181 Watt
2019-09-19 00:18:35.328 Status: LUA: Produced: 0 Watt
2019-09-19 00:18:35.328 Status: LUA: Sending to the grid: -181 Watt
2019-09-19 00:18:35.330 Status: EventSystem: Script event triggered: Echte Levering
2019-09-19 00:18:35.365 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 00:18:35.412 Status: dzVents: Debug: Processing device-adapter for Voltage L1: Voltage device adapter
2019-09-19 00:18:35.413 Status: dzVents: Debug: Processing device-adapter for Voltage L2: Voltage device adapter
2019-09-19 00:18:35.413 Status: dzVents: Debug: Processing device-adapter for Voltage L3: Voltage device adapter
2019-09-19 00:18:35.414 Status: dzVents: Debug: Processing device-adapter for Usage L1: Electric usage device adapter
2019-09-19 00:18:35.415 Status: dzVents: Debug: Processing device-adapter for Usage L2: Electric usage device adapter
2019-09-19 00:18:35.415 Status: dzVents: Debug: Processing device-adapter for Usage L3: Electric usage device adapter
2019-09-19 00:18:35.416 Status: dzVents: Debug: Processing device-adapter for Delivery L1: Electric usage device adapter
2019-09-19 00:18:35.416 Status: dzVents: Debug: Processing device-adapter for Delivery L2: Electric usage device adapter
2019-09-19 00:18:35.417 Status: dzVents: Debug: Processing device-adapter for Delivery L3: Electric usage device adapter
2019-09-19 00:18:35.417 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 00:18:35.417 Status: dzVents: Debug: Event triggers:
2019-09-19 00:18:35.417 Status: dzVents: Debug: - Device: Voltage L1
2019-09-19 00:18:35.417 Status: dzVents: Debug: - Device: Voltage L2
2019-09-19 00:18:35.417 Status: dzVents: Debug: - Device: Voltage L3
2019-09-19 00:18:35.417 Status: dzVents: Debug: - Device: Usage L1
2019-09-19 00:18:35.417 Status: dzVents: Debug: - Device: Usage L2
2019-09-19 00:18:35.417 Status: dzVents: Debug: - Device: Usage L3
2019-09-19 00:18:35.417 Status: dzVents: Debug: - Device: Delivery L1
2019-09-19 00:18:35.417 Status: dzVents: Debug: - Device: Delivery L2
2019-09-19 00:18:35.418 Status: dzVents: Debug: - Device: Delivery L3
2019-09-19 00:18:35.530 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 00:18:35.583 Status: dzVents: Debug: Processing device-adapter for Zonne energie: kWh device adapter
2019-09-19 00:18:35.584 Status: dzVents: Debug: Processing device-adapter for Net energie: kWh device adapter
2019-09-19 00:18:35.584 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 00:18:35.584 Status: dzVents: Debug: Event triggers:
2019-09-19 00:18:35.584 Status: dzVents: Debug: - Device: Zonne energie
2019-09-19 00:18:35.584 Status: dzVents: Debug: - Device: Net energie
2019-09-19 00:18:36.227 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 00:18:36.291 Status: dzVents: Debug: Processing device-adapter for Power: P1 smart meter energy device adapter
2019-09-19 00:18:36.291 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 00:18:36.291 Status: dzVents: Debug: Event triggers:
2019-09-19 00:18:36.291 Status: dzVents: Debug: - Device: Power
2019-09-19 00:18:36.319 Status: dzVents: Info: Handling events for: "Power", value: "2748155;1622777;1795357;4639365;176;0"
2019-09-19 00:18:36.319 Status: dzVents: Info: P1_Delivery: ------ Start internal script: Net energie: Device: "Power (P1)", Index: 1
2019-09-19 00:18:36.320 Status: dzVents: Info: P1_Delivery: Use from the grid: 176 Watt
2019-09-19 00:18:36.320 Status: dzVents: Info: P1_Delivery: ------ Finished Net energie
2019-09-19 00:18:36.320 Status: dzVents: Info: P1_Delivery: ------ Start internal script: Zonne energie: Device: "Power (P1)", Index: 1
2019-09-19 00:18:36.321 Status: dzVents: Info: P1_Delivery: ------ Finished Zonne energie
2019-09-19 00:18:36.321 Status: dzVents: Debug: Commands sent to Domoticz:
2019-09-19 00:18:36.322 Status: dzVents: Debug: - UpdateDevice = {["_trigger"]=true, ["sValue"]="176;nil", ["idx"]=100, ["nValue"]=0}
2019-09-19 00:18:36.322 Status: dzVents: Debug: - UpdateDevice = {["_trigger"]=true, ["sValue"]="nil;nil", ["idx"]=99, ["nValue"]=0}
2019-09-19 00:18:36.322 Status: dzVents: Debug: =====================================================
2019-09-19 00:18:36.322 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2019-09-19 00:18:36.334 Status: LUA: Used: 176 Watt
2019-09-19 00:18:36.334 Status: LUA: Produced: 0 Watt
2019-09-19 00:18:36.334 Status: LUA: Sending to the grid: -176 Watt
2019-09-19 00:18:36.335 Status: EventSystem: Script event triggered: Echte Levering
2019-09-19 00:18:36.370 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 00:18:36.417 Status: dzVents: Debug: Processing device-adapter for Voltage L1: Voltage device adapter
2019-09-19 00:18:36.417 Status: dzVents: Debug: Processing device-adapter for Voltage L2: Voltage device adapter
2019-09-19 00:18:36.418 Status: dzVents: Debug: Processing device-adapter for Voltage L3: Voltage device adapter
2019-09-19 00:18:36.419 Status: dzVents: Debug: Processing device-adapter for Usage L1: Electric usage device adapter
2019-09-19 00:18:36.420 Status: dzVents: Debug: Processing device-adapter for Usage L2: Electric usage device adapter
2019-09-19 00:18:36.420 Status: dzVents: Debug: Processing device-adapter for Usage L3: Electric usage device adapter
2019-09-19 00:18:36.421 Status: dzVents: Debug: Processing device-adapter for Delivery L1: Electric usage device adapter
2019-09-19 00:18:36.421 Status: dzVents: Debug: Processing device-adapter for Delivery L2: Electric usage device adapter
2019-09-19 00:18:36.422 Status: dzVents: Debug: Processing device-adapter for Delivery L3: Electric usage device adapter
2019-09-19 00:18:36.422 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 00:18:36.422 Status: dzVents: Debug: Event triggers:
2019-09-19 00:18:36.422 Status: dzVents: Debug: - Device: Voltage L1
2019-09-19 00:18:36.422 Status: dzVents: Debug: - Device: Voltage L2
2019-09-19 00:18:36.422 Status: dzVents: Debug: - Device: Voltage L3
2019-09-19 00:18:36.422 Status: dzVents: Debug: - Device: Usage L1
2019-09-19 00:18:36.422 Status: dzVents: Debug: - Device: Usage L2
2019-09-19 00:18:36.422 Status: dzVents: Debug: - Device: Usage L3
2019-09-19 00:18:36.422 Status: dzVents: Debug: - Device: Delivery L1
2019-09-19 00:18:36.423 Status: dzVents: Debug: - Device: Delivery L2
2019-09-19 00:18:36.423 Status: dzVents: Debug: - Device: Delivery L3
2019-09-19 00:18:36.527 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 00:18:36.574 Status: dzVents: Debug: Processing device-adapter for Zonne energie: kWh device adapter
2019-09-19 00:18:36.575 Status: dzVents: Debug: Processing device-adapter for Net energie: kWh device adapter
2019-09-19 00:18:36.575 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 00:18:36.575 Status: dzVents: Debug: Event triggers:
2019-09-19 00:18:36.575 Status: dzVents: Debug: - Device: Zonne energie
/code]
Re: dzVents script for calculating Gas/electricity cost per month
Posted: Thursday 19 September 2019 1:25
by waaren
Knibor wrote: Thursday 19 September 2019 0:18
dzVents is enabled, the log file gives me this output, but not the log when I filtering on "total costs"
If you load the script in the event page and save it with the On button being green

- event.png (115.98 KiB) Viewed 1419 times
you should see something like this with the marked lines.
Code: Select all
2019-09-19 01:18:38.492 Status: Domoticz V4.10717 (c)2012-2019 GizMoCuz
2019-09-19 01:18:38.492 Status: Build Hash: b38b49e5, Date: 2019-05-09 13:04:08
2019-09-19 01:18:38.493 Status: Startup Path: /usr/local/domotica/testRelease/
2019-09-19 01:18:38.685 Status: PluginSystem: Started, Python version '3.7.3'.
2019-09-19 01:18:38.691 Active notification Subsystems: gcm, http (2/13)
2019-09-19 01:18:38.694 Status: WebServer(HTTP) started on address: 0.0.0.0 with port 8080
2019-09-19 01:18:38.703 Status: WebServer(SSL) started on address: 0.0.0.0 with port 443
2019-09-19 01:18:38.706 Starting shared server on: 0.0.0.0:6144
2019-09-19 01:18:38.707 Status: TCPServer: shared server started...
2019-09-19 01:18:38.708 Status: RxQueue: queue worker started...
2019-09-19 01:18:40.709 Status: EventSystem: reset all events...
=============================================================================================================================
2019-09-19 01:18:40.711 Status: dzVents: Write file: /usr/local/domotica/testRelease/scripts/dzVents/generated_scripts/total costs.lua
=============================================================================================================================
2019-09-19 01:18:40.712 Status: EventSystem: reset all device statuses...
2019-09-19 01:18:40.871 Status: Python EventSystem: Initalizing event module.
2019-09-19 01:18:40.872 Status: EventSystem: Started
2019-09-19 01:18:40.872 Status: EventSystem: Queue thread started...
2019-09-19 01:18:41.066 Status: PluginSystem: Entering work loop.
2019-09-19 01:19:05.401 Status: EventSystem: reset all events...
=============================================================================================================================
2019-09-19 01:19:05.403 Status: dzVents: Write file: /usr/local/domotica/testRelease/scripts/dzVents/generated_scripts/total costs.lua
=============================================================================================================================
Re: dzVents script for calculating Gas/electricity cost per month
Posted: Thursday 19 September 2019 8:59
by Knibor
Hi,
The button is Green when I upload the script.
But i don't see in the Log the marked Lines.
Code: Select all
Allemaal
Status
Filter: X
2019-09-19 08:58:44.421 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 08:58:44.421 Status: dzVents: Debug: Event triggers:
2019-09-19 08:58:44.421 Status: dzVents: Debug: - Device: Zonne energie
2019-09-19 08:58:44.421 Status: dzVents: Debug: - Device: Net energie
2019-09-19 08:58:45.049 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 08:58:45.117 Status: dzVents: Debug: Processing device-adapter for Power: P1 smart meter energy device adapter
2019-09-19 08:58:45.117 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 08:58:45.118 Status: dzVents: Debug: Event triggers:
2019-09-19 08:58:45.118 Status: dzVents: Debug: - Device: Power
2019-09-19 08:58:45.146 Status: dzVents: Info: Handling events for: "Power", value: "2749363;1623026;1795357;4640157;0;1575"
2019-09-19 08:58:45.147 Status: dzVents: Info: P1_Delivery: ------ Start internal script: Net energie: Device: "Power (P1)", Index: 1
2019-09-19 08:58:45.148 Status: dzVents: Info: P1_Delivery: ------ Finished Net energie
2019-09-19 08:58:45.148 Status: dzVents: Info: P1_Delivery: ------ Start internal script: Zonne energie: Device: "Power (P1)", Index: 1
2019-09-19 08:58:45.149 Status: dzVents: Info: P1_Delivery: Return to the grid: 1575 Watt
2019-09-19 08:58:45.149 Status: dzVents: Info: P1_Delivery: ------ Finished Zonne energie
2019-09-19 08:58:45.149 Status: dzVents: Debug: Commands sent to Domoticz:
2019-09-19 08:58:45.149 Status: dzVents: Debug: - UpdateDevice = {["nValue"]=0, ["sValue"]="0;nil", ["idx"]=100, ["_trigger"]=true}
2019-09-19 08:58:45.149 Status: dzVents: Debug: - UpdateDevice = {["nValue"]=0, ["sValue"]="1575;nil", ["idx"]=99, ["_trigger"]=true}
2019-09-19 08:58:45.149 Status: dzVents: Debug: =====================================================
2019-09-19 08:58:45.149 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2019-09-19 08:58:45.164 Status: LUA: Used: 0 Watt
2019-09-19 08:58:45.165 Status: LUA: Produced: 1575 Watt
2019-09-19 08:58:45.165 Status: LUA: Sending to the grid: 1575 Watt
2019-09-19 08:58:45.167 Status: EventSystem: Script event triggered: Echte Levering
2019-09-19 08:58:45.203 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 08:58:45.250 Status: dzVents: Debug: Processing device-adapter for Voltage L1: Voltage device adapter
2019-09-19 08:58:45.251 Status: dzVents: Debug: Processing device-adapter for Voltage L2: Voltage device adapter
2019-09-19 08:58:45.252 Status: dzVents: Debug: Processing device-adapter for Voltage L3: Voltage device adapter
2019-09-19 08:58:45.253 Status: dzVents: Debug: Processing device-adapter for Usage L1: Electric usage device adapter
2019-09-19 08:58:45.253 Status: dzVents: Debug: Processing device-adapter for Usage L2: Electric usage device adapter
2019-09-19 08:58:45.254 Status: dzVents: Debug: Processing device-adapter for Usage L3: Electric usage device adapter
2019-09-19 08:58:45.255 Status: dzVents: Debug: Processing device-adapter for Delivery L1: Electric usage device adapter
2019-09-19 08:58:45.255 Status: dzVents: Debug: Processing device-adapter for Delivery L2: Electric usage device adapter
2019-09-19 08:58:45.256 Status: dzVents: Debug: Processing device-adapter for Delivery L3: Electric usage device adapter
2019-09-19 08:58:45.256 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 08:58:45.256 Status: dzVents: Debug: Event triggers:
2019-09-19 08:58:45.256 Status: dzVents: Debug: - Device: Voltage L1
2019-09-19 08:58:45.256 Status: dzVents: Debug: - Device: Voltage L2
2019-09-19 08:58:45.256 Status: dzVents: Debug: - Device: Voltage L3
2019-09-19 08:58:45.256 Status: dzVents: Debug: - Device: Usage L1
2019-09-19 08:58:45.256 Status: dzVents: Debug: - Device: Usage L2
2019-09-19 08:58:45.256 Status: dzVents: Debug: - Device: Usage L3
2019-09-19 08:58:45.256 Status: dzVents: Debug: - Device: Delivery L1
2019-09-19 08:58:45.256 Status: dzVents: Debug: - Device: Delivery L2
2019-09-19 08:58:45.256 Status: dzVents: Debug: - Device: Delivery L3
2019-09-19 08:58:45.382 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 08:58:45.428 Status: dzVents: Debug: Processing device-adapter for Zonne energie: kWh device adapter
2019-09-19 08:58:45.429 Status: dzVents: Debug: Processing device-adapter for Net energie: kWh device adapter
2019-09-19 08:58:45.429 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 08:58:45.429 Status: dzVents: Debug: Event triggers:
2019-09-19 08:58:45.429 Status: dzVents: Debug: - Device: Zonne energie
2019-09-19 08:58:45.429 Status: dzVents: Debug: - Device: Net energie
2019-09-19 08:58:46.059 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 08:58:46.138 Status: dzVents: Debug: Processing device-adapter for Power: P1 smart meter energy device adapter
2019-09-19 08:58:46.138 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 08:58:46.138 Status: dzVents: Debug: Event triggers:
2019-09-19 08:58:46.138 Status: dzVents: Debug: - Device: Power
2019-09-19 08:58:46.171 Status: dzVents: Info: Handling events for: "Power", value: "2749363;1623026;1795357;4640157;0;1576"
2019-09-19 08:58:46.171 Status: dzVents: Info: P1_Delivery: ------ Start internal script: Net energie: Device: "Power (P1)", Index: 1
2019-09-19 08:58:46.172 Status: dzVents: Info: P1_Delivery: ------ Finished Net energie
2019-09-19 08:58:46.172 Status: dzVents: Info: P1_Delivery: ------ Start internal script: Zonne energie: Device: "Power (P1)", Index: 1
2019-09-19 08:58:46.173 Status: dzVents: Info: P1_Delivery: Return to the grid: 1576 Watt
2019-09-19 08:58:46.173 Status: dzVents: Info: P1_Delivery: ------ Finished Zonne energie
2019-09-19 08:58:46.173 Status: dzVents: Debug: Commands sent to Domoticz:
2019-09-19 08:58:46.174 Status: dzVents: Debug: - UpdateDevice = {["idx"]=100, ["sValue"]="0;nil", ["_trigger"]=true, ["nValue"]=0}
2019-09-19 08:58:46.174 Status: dzVents: Debug: - UpdateDevice = {["idx"]=99, ["sValue"]="1576;nil", ["_trigger"]=true, ["nValue"]=0}
2019-09-19 08:58:46.174 Status: dzVents: Debug: =====================================================
2019-09-19 08:58:46.174 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2019-09-19 08:58:46.192 Status: LUA: Used: 0 Watt
2019-09-19 08:58:46.193 Status: LUA: Produced: 1576 Watt
2019-09-19 08:58:46.193 Status: LUA: Sending to the grid: 1576 Watt
2019-09-19 08:58:46.195 Status: EventSystem: Script event triggered: Echte Levering
2019-09-19 08:58:46.237 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 08:58:46.291 Status: dzVents: Debug: Processing device-adapter for Voltage L1: Voltage device adapter
2019-09-19 08:58:46.292 Status: dzVents: Debug: Processing device-adapter for Voltage L2: Voltage device adapter
2019-09-19 08:58:46.293 Status: dzVents: Debug: Processing device-adapter for Voltage L3: Voltage device adapter
2019-09-19 08:58:46.293 Status: dzVents: Debug: Processing device-adapter for Usage L1: Electric usage device adapter
2019-09-19 08:58:46.294 Status: dzVents: Debug: Processing device-adapter for Usage L2: Electric usage device adapter
2019-09-19 08:58:46.295 Status: dzVents: Debug: Processing device-adapter for Usage L3: Electric usage device adapter
2019-09-19 08:58:46.296 Status: dzVents: Debug: Processing device-adapter for Delivery L1: Electric usage device adapter
2019-09-19 08:58:46.296 Status: dzVents: Debug: Processing device-adapter for Delivery L2: Electric usage device adapter
2019-09-19 08:58:46.297 Status: dzVents: Debug: Processing device-adapter for Delivery L3: Electric usage device adapter
2019-09-19 08:58:46.297 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 08:58:46.297 Status: dzVents: Debug: Event triggers:
2019-09-19 08:58:46.297 Status: dzVents: Debug: - Device: Voltage L1
2019-09-19 08:58:46.297 Status: dzVents: Debug: - Device: Voltage L2
2019-09-19 08:58:46.297 Status: dzVents: Debug: - Device: Voltage L3
2019-09-19 08:58:46.298 Status: dzVents: Debug: - Device: Usage L1
2019-09-19 08:58:46.298 Status: dzVents: Debug: - Device: Usage L2
2019-09-19 08:58:46.298 Status: dzVents: Debug: - Device: Usage L3
2019-09-19 08:58:46.298 Status: dzVents: Debug: - Device: Delivery L1
2019-09-19 08:58:46.298 Status: dzVents: Debug: - Device: Delivery L2
2019-09-19 08:58:46.298 Status: dzVents: Debug: - Device: Delivery L3
2019-09-19 08:58:46.427 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 08:58:46.482 Status: dzVents: Debug: Processing device-adapter for Zonne energie: kWh device adapter
2019-09-19 08:58:46.483 Status: dzVents: Debug: Processing device-adapter for Net energie: kWh device adapter
2019-09-19 08:58:46.483 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 08:58:46.483 Status: dzVents: Debug: Event triggers:
2019-09-19 08:58:46.483 Status: dzVents: Debug: - Device: Zonne energie
2019-09-19 08:58:46.483 Status: dzVents: Debug: - Device: Net energie
2019-09-19 08:58:49.432 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 08:58:49.432 Status: dzVents: Debug: Event triggers:
2019-09-19 08:58:49.432 Status: dzVents: Debug: - Device: Zonne energie
2019-09-19 08:58:49.432 Status: dzVents: Debug: - Device: Net energie
2019-09-19 08:58:50.049 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 08:58:50.112 Status: dzVents: Debug: Processing device-adapter for Power: P1 smart meter energy device adapter
2019-09-19 08:58:50.112 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 08:58:50.112 Status: dzVents: Debug: Event triggers:
2019-09-19 08:58:50.112 Status: dzVents: Debug: - Device: Power
2019-09-19 08:58:50.141 Status: dzVents: Info: Handling events for: "Power", value: "2749363;1623026;1795357;4640159;0;1578"
2019-09-19 08:58:50.141 Status: dzVents: Info: P1_Delivery: ------ Start internal script: Net energie: Device: "Power (P1)", Index: 1
2019-09-19 08:58:50.142 Status: dzVents: Info: P1_Delivery: ------ Finished Net energie
2019-09-19 08:58:50.142 Status: dzVents: Info: P1_Delivery: ------ Start internal script: Zonne energie: Device: "Power (P1)", Index: 1
2019-09-19 08:58:50.143 Status: dzVents: Info: P1_Delivery: Return to the grid: 1578 Watt
2019-09-19 08:58:50.143 Status: dzVents: Info: P1_Delivery: ------ Finished Zonne energie
2019-09-19 08:58:50.143 Status: dzVents: Debug: Commands sent to Domoticz:
2019-09-19 08:58:50.144 Status: dzVents: Debug: - UpdateDevice = {["sValue"]="0;nil", ["_trigger"]=true, ["idx"]=100, ["nValue"]=0}
2019-09-19 08:58:50.144 Status: dzVents: Debug: - UpdateDevice = {["sValue"]="1578;nil", ["_trigger"]=true, ["idx"]=99, ["nValue"]=0}
2019-09-19 08:58:50.144 Status: dzVents: Debug: =====================================================
2019-09-19 08:58:50.144 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2019-09-19 08:58:50.161 Status: LUA: Used: 0 Watt
2019-09-19 08:58:50.162 Status: LUA: Produced: 1578 Watt
2019-09-19 08:58:50.162 Status: LUA: Sending to the grid: 1578 Watt
2019-09-19 08:58:50.164 Status: EventSystem: Script event triggered: Echte Levering
2019-09-19 08:58:50.205 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 08:58:50.259 Status: dzVents: Debug: Processing device-adapter for Voltage L1: Voltage device adapter
2019-09-19 08:58:50.260 Status: dzVents: Debug: Processing device-adapter for Voltage L2: Voltage device adapter
2019-09-19 08:58:50.261 Status: dzVents: Debug: Processing device-adapter for Voltage L3: Voltage device adapter
2019-09-19 08:58:50.261 Status: dzVents: Debug: Processing device-adapter for Usage L1: Electric usage device adapter
2019-09-19 08:58:50.262 Status: dzVents: Debug: Processing device-adapter for Usage L2: Electric usage device adapter
2019-09-19 08:58:50.263 Status: dzVents: Debug: Processing device-adapter for Usage L3: Electric usage device adapter
2019-09-19 08:58:50.263 Status: dzVents: Debug: Processing device-adapter for Delivery L1: Electric usage device adapter
2019-09-19 08:58:50.264 Status: dzVents: Debug: Processing device-adapter for Delivery L2: Electric usage device adapter
2019-09-19 08:58:50.265 Status: dzVents: Debug: Processing device-adapter for Delivery L3: Electric usage device adapter
2019-09-19 08:58:50.265 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 08:58:50.265 Status: dzVents: Debug: Event triggers:
2019-09-19 08:58:50.265 Status: dzVents: Debug: - Device: Voltage L1
2019-09-19 08:58:50.265 Status: dzVents: Debug: - Device: Voltage L2
2019-09-19 08:58:50.265 Status: dzVents: Debug: - Device: Voltage L3
2019-09-19 08:58:50.265 Status: dzVents: Debug: - Device: Usage L1
2019-09-19 08:58:50.265 Status: dzVents: Debug: - Device: Usage L2
2019-09-19 08:58:50.265 Status: dzVents: Debug: - Device: Usage L3
2019-09-19 08:58:50.265 Status: dzVents: Debug: - Device: Delivery L1
2019-09-19 08:58:50.265 Status: dzVents: Debug: - Device: Delivery L2
2019-09-19 08:58:50.265 Status: dzVents: Debug: - Device: Delivery L3
2019-09-19 08:58:50.394 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 08:58:50.447 Status: dzVents: Debug: Processing device-adapter for Zonne energie: kWh device adapter
2019-09-19 08:58:50.448 Status: dzVents: Debug: Processing device-adapter for Net energie: kWh device adapter
2019-09-19 08:58:50.449 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 08:58:50.449 Status: dzVents: Debug: Event triggers:
2019-09-19 08:58:50.449 Status: dzVents: Debug: - Device: Zonne energie
2019-09-19 08:58:50.449 Status: dzVents: Debug: - Device: Net energie
2019-09-19 08:58:51.051 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 08:58:51.130 Status: dzVents: Debug: Processing device-adapter for Power: P1 smart meter energy device adapter
2019-09-19 08:58:51.131 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 08:58:51.131 Status: dzVents: Debug: Event triggers:
2019-09-19 08:58:51.131 Status: dzVents: Debug: - Device: Power
2019-09-19 08:58:51.160 Status: dzVents: Info: Handling events for: "Power", value: "2749363;1623026;1795357;4640160;0;1575"
2019-09-19 08:58:51.160 Status: dzVents: Info: P1_Delivery: ------ Start internal script: Net energie: Device: "Power (P1)", Index: 1
2019-09-19 08:58:51.161 Status: dzVents: Info: P1_Delivery: ------ Finished Net energie
2019-09-19 08:58:51.161 Status: dzVents: Info: P1_Delivery: ------ Start internal script: Zonne energie: Device: "Power (P1)", Index: 1
2019-09-19 08:58:51.162 Status: dzVents: Info: P1_Delivery: Return to the grid: 1575 Watt
2019-09-19 08:58:51.162 Status: dzVents: Info: P1_Delivery: ------ Finished Zonne energie
2019-09-19 08:58:51.162 Status: dzVents: Debug: Commands sent to Domoticz:
2019-09-19 08:58:51.163 Status: dzVents: Debug: - UpdateDevice = {["idx"]=100, ["sValue"]="0;nil", ["_trigger"]=true, ["nValue"]=0}
2019-09-19 08:58:51.163 Status: dzVents: Debug: - UpdateDevice = {["idx"]=99, ["sValue"]="1575;nil", ["_trigger"]=true, ["nValue"]=0}
2019-09-19 08:58:51.163 Status: dzVents: Debug: =====================================================
2019-09-19 08:58:51.163 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2019-09-19 08:58:51.178 Status: LUA: Used: 0 Watt
2019-09-19 08:58:51.178 Status: LUA: Produced: 1575 Watt
2019-09-19 08:58:51.178 Status: LUA: Sending to the grid: 1575 Watt
2019-09-19 08:58:51.180 Status: EventSystem: Script event triggered: Echte Levering
2019-09-19 08:58:51.215 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 08:58:51.262 Status: dzVents: Debug: Processing device-adapter for Voltage L1: Voltage device adapter
2019-09-19 08:58:51.263 Status: dzVents: Debug: Processing device-adapter for Voltage L2: Voltage device adapter
2019-09-19 08:58:51.263 Status: dzVents: Debug: Processing device-adapter for Voltage L3: Voltage device adapter
2019-09-19 08:58:51.264 Status: dzVents: Debug: Processing device-adapter for Usage L1: Electric usage device adapter
2019-09-19 08:58:51.264 Status: dzVents: Debug: Processing device-adapter for Usage L2: Electric usage device adapter
2019-09-19 08:58:51.265 Status: dzVents: Debug: Processing device-adapter for Usage L3: Electric usage device adapter
2019-09-19 08:58:51.266 Status: dzVents: Debug: Processing device-adapter for Delivery L1: Electric usage device adapter
2019-09-19 08:58:51.267 Status: dzVents: Debug: Processing device-adapter for Delivery L2: Electric usage device adapter
2019-09-19 08:58:51.267 Status: dzVents: Debug: Processing device-adapter for Delivery L3: Electric usage device adapter
2019-09-19 08:58:51.268 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 08:58:51.268 Status: dzVents: Debug: Event triggers:
2019-09-19 08:58:51.268 Status: dzVents: Debug: - Device: Voltage L1
2019-09-19 08:58:51.268 Status: dzVents: Debug: - Device: Voltage L2
2019-09-19 08:58:51.268 Status: dzVents: Debug: - Device: Voltage L3
2019-09-19 08:58:51.268 Status: dzVents: Debug: - Device: Usage L1
2019-09-19 08:58:51.268 Status: dzVents: Debug: - Device: Usage L2
2019-09-19 08:58:51.268 Status: dzVents: Debug: - Device: Usage L3
2019-09-19 08:58:51.268 Status: dzVents: Debug: - Device: Delivery L1
2019-09-19 08:58:51.268 Status: dzVents: Debug: - Device: Delivery L2
2019-09-19 08:58:51.268 Status: dzVents: Debug: - Device: Delivery L3
2019-09-19 08:58:51.410 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 08:58:51.464 Status: dzVents: Debug: Processing device-adapter for Zonne energie: kWh device adapter
2019-09-19 08:58:51.465 Status: dzVents: Debug: Processing device-adapter for Net energie: kWh device adapter
2019-09-19 08:58:51.465 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 08:58:51.465 Status: dzVents: Debug: Event triggers:
2019-09-19 08:58:51.466 Status: dzVents: Debug: - Device: Zonne energie
2019-09-19 08:58:51.466 Status: dzVents: Debug: - Device: Net energie
2019-09-19 08:58:54.452 Status: dzVents: Debug: Processing device-adapter for Zonne energie: kWh device adapter
2019-09-19 08:58:54.452 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 08:58:54.452 Status: dzVents: Debug: Event triggers:
2019-09-19 08:58:54.452 Status: dzVents: Debug: - Device: Zonne energie
2019-09-19 08:58:55.051 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 08:58:55.113 Status: dzVents: Debug: Processing device-adapter for Power: P1 smart meter energy device adapter
2019-09-19 08:58:55.114 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 08:58:55.114 Status: dzVents: Debug: Event triggers:
2019-09-19 08:58:55.114 Status: dzVents: Debug: - Device: Power
2019-09-19 08:58:55.143 Status: dzVents: Info: Handling events for: "Power", value: "2749363;1623026;1795357;4640161;0;1574"
2019-09-19 08:58:55.143 Status: dzVents: Info: P1_Delivery: ------ Start internal script: Net energie: Device: "Power (P1)", Index: 1
2019-09-19 08:58:55.144 Status: dzVents: Info: P1_Delivery: ------ Finished Net energie
2019-09-19 08:58:55.144 Status: dzVents: Info: P1_Delivery: ------ Start internal script: Zonne energie: Device: "Power (P1)", Index: 1
2019-09-19 08:58:55.145 Status: dzVents: Info: P1_Delivery: Return to the grid: 1574 Watt
2019-09-19 08:58:55.145 Status: dzVents: Info: P1_Delivery: ------ Finished Zonne energie
2019-09-19 08:58:55.145 Status: dzVents: Debug: Commands sent to Domoticz:
2019-09-19 08:58:55.145 Status: dzVents: Debug: - UpdateDevice = {["idx"]=100, ["_trigger"]=true, ["nValue"]=0, ["sValue"]="0;nil"}
2019-09-19 08:58:55.145 Status: dzVents: Debug: - UpdateDevice = {["idx"]=99, ["_trigger"]=true, ["nValue"]=0, ["sValue"]="1574;nil"}
2019-09-19 08:58:55.145 Status: dzVents: Debug: =====================================================
2019-09-19 08:58:55.146 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2019-09-19 08:58:55.161 Status: LUA: Used: 0 Watt
2019-09-19 08:58:55.161 Status: LUA: Produced: 1574 Watt
2019-09-19 08:58:55.161 Status: LUA: Sending to the grid: 1574 Watt
2019-09-19 08:58:55.162 Status: EventSystem: Script event triggered: Echte Levering
2019-09-19 08:58:55.198 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 08:58:55.250 Status: dzVents: Debug: Processing device-adapter for Voltage L1: Voltage device adapter
2019-09-19 08:58:55.251 Status: dzVents: Debug: Processing device-adapter for Voltage L2: Voltage device adapter
2019-09-19 08:58:55.252 Status: dzVents: Debug: Processing device-adapter for Voltage L3: Voltage device adapter
2019-09-19 08:58:55.253 Status: dzVents: Debug: Processing device-adapter for Usage L1: Electric usage device adapter
2019-09-19 08:58:55.254 Status: dzVents: Debug: Processing device-adapter for Usage L2: Electric usage device adapter
2019-09-19 08:58:55.254 Status: dzVents: Debug: Processing device-adapter for Usage L3: Electric usage device adapter
2019-09-19 08:58:55.255 Status: dzVents: Debug: Processing device-adapter for Delivery L1: Electric usage device adapter
2019-09-19 08:58:55.256 Status: dzVents: Debug: Processing device-adapter for Delivery L2: Electric usage device adapter
2019-09-19 08:58:55.257 Status: dzVents: Debug: Processing device-adapter for Delivery L3: Electric usage device adapter
2019-09-19 08:58:55.257 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 08:58:55.257 Status: dzVents: Debug: Event triggers:
2019-09-19 08:58:55.257 Status: dzVents: Debug: - Device: Voltage L1
2019-09-19 08:58:55.257 Status: dzVents: Debug: - Device: Voltage L2
2019-09-19 08:58:55.257 Status: dzVents: Debug: - Device: Voltage L3
2019-09-19 08:58:55.257 Status: dzVents: Debug: - Device: Usage L1
2019-09-19 08:58:55.257 Status: dzVents: Debug: - Device: Usage L2
2019-09-19 08:58:55.257 Status: dzVents: Debug: - Device: Usage L3
2019-09-19 08:58:55.257 Status: dzVents: Debug: - Device: Delivery L1
2019-09-19 08:58:55.257 Status: dzVents: Debug: - Device: Delivery L2
2019-09-19 08:58:55.257 Status: dzVents: Debug: - Device: Delivery L3
2019-09-19 08:58:55.388 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 08:58:55.437 Status: dzVents: Debug: Processing device-adapter for Zonne energie: kWh device adapter
2019-09-19 08:58:55.438 Status: dzVents: Debug: Processing device-adapter for Net energie: kWh device adapter
2019-09-19 08:58:55.439 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 08:58:55.439 Status: dzVents: Debug: Event triggers:
2019-09-19 08:58:55.439 Status: dzVents: Debug: - Device: Zonne energie
2019-09-19 08:58:55.439 Status: dzVents: Debug: - Device: Net energie
2019-09-19 08:58:56.051 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 08:58:56.121 Status: dzVents: Debug: Processing device-adapter for Power: P1 smart meter energy device adapter
2019-09-19 08:58:56.122 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 08:58:56.122 Status: dzVents: Debug: Event triggers:
2019-09-19 08:58:56.122 Status: dzVents: Debug: - Device: Power
2019-09-19 08:58:56.151 Status: dzVents: Info: Handling events for: "Power", value: "2749363;1623026;1795357;4640162;0;1577"
2019-09-19 08:58:56.151 Status: dzVents: Info: P1_Delivery: ------ Start internal script: Net energie: Device: "Power (P1)", Index: 1
2019-09-19 08:58:56.152 Status: dzVents: Info: P1_Delivery: ------ Finished Net energie
2019-09-19 08:58:56.152 Status: dzVents: Info: P1_Delivery: ------ Start internal script: Zonne energie: Device: "Power (P1)", Index: 1
2019-09-19 08:58:56.153 Status: dzVents: Info: P1_Delivery: Return to the grid: 1577 Watt
2019-09-19 08:58:56.153 Status: dzVents: Info: P1_Delivery: ------ Finished Zonne energie
2019-09-19 08:58:56.153 Status: dzVents: Debug: Commands sent to Domoticz:
2019-09-19 08:58:56.153 Status: dzVents: Debug: - UpdateDevice = {["sValue"]="0;nil", ["_trigger"]=true, ["nValue"]=0, ["idx"]=100}
2019-09-19 08:58:56.153 Status: dzVents: Debug: - UpdateDevice = {["sValue"]="1577;nil", ["_trigger"]=true, ["nValue"]=0, ["idx"]=99}
2019-09-19 08:58:56.154 Status: dzVents: Debug: =====================================================
2019-09-19 08:58:56.154 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2019-09-19 08:58:56.169 Status: LUA: Used: 0 Watt
2019-09-19 08:58:56.169 Status: LUA: Produced: 1577 Watt
2019-09-19 08:58:56.169 Status: LUA: Sending to the grid: 1577 Watt
2019-09-19 08:58:56.171 Status: EventSystem: Script event triggered: Echte Levering
2019-09-19 08:58:56.212 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 08:58:56.260 Status: dzVents: Debug: Processing device-adapter for Voltage L1: Voltage device adapter
2019-09-19 08:58:56.260 Status: dzVents: Debug: Processing device-adapter for Voltage L2: Voltage device adapter
2019-09-19 08:58:56.261 Status: dzVents: Debug: Processing device-adapter for Voltage L3: Voltage device adapter
2019-09-19 08:58:56.262 Status: dzVents: Debug: Processing device-adapter for Usage L1: Electric usage device adapter
2019-09-19 08:58:56.262 Status: dzVents: Debug: Processing device-adapter for Usage L2: Electric usage device adapter
2019-09-19 08:58:56.263 Status: dzVents: Debug: Processing device-adapter for Usage L3: Electric usage device adapter
2019-09-19 08:58:56.264 Status: dzVents: Debug: Processing device-adapter for Delivery L1: Electric usage device adapter
2019-09-19 08:58:56.264 Status: dzVents: Debug: Processing device-adapter for Delivery L2: Electric usage device adapter
2019-09-19 08:58:56.265 Status: dzVents: Debug: Processing device-adapter for Delivery L3: Electric usage device adapter
2019-09-19 08:58:56.265 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 08:58:56.265 Status: dzVents: Debug: Event triggers:
2019-09-19 08:58:56.265 Status: dzVents: Debug: - Device: Voltage L1
2019-09-19 08:58:56.265 Status: dzVents: Debug: - Device: Voltage L2
2019-09-19 08:58:56.265 Status: dzVents: Debug: - Device: Voltage L3
2019-09-19 08:58:56.265 Status: dzVents: Debug: - Device: Usage L1
2019-09-19 08:58:56.265 Status: dzVents: Debug: - Device: Usage L2
2019-09-19 08:58:56.265 Status: dzVents: Debug: - Device: Usage L3
2019-09-19 08:58:56.265 Status: dzVents: Debug: - Device: Delivery L1
2019-09-19 08:58:56.265 Status: dzVents: Debug: - Device: Delivery L2
2019-09-19 08:58:56.265 Status: dzVents: Debug: - Device: Delivery L3
2019-09-19 08:58:56.400 Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2019-09-19 08:58:56.454 Status: dzVents: Debug: Processing device-adapter for Zonne energie: kWh device adapter
2019-09-19 08:58:56.455 Status: dzVents: Debug: Processing device-adapter for Net energie: kWh device adapter
2019-09-19 08:58:56.455 Status: dzVents: Debug: dzVents version: 2.4.19
2019-09-19 08:58:56.455 Status: dzVents: Debug: Event triggers:
2019-09-19 08:58:56.455 Status: dzVents: Debug: - Device: Zonne energie
/code]
Re: dzVents script for calculating Gas/electricity cost per month
Posted: Thursday 19 September 2019 11:47
by waaren
Knibor wrote: Thursday 19 September 2019 8:59
The button is Green when I upload the script.
But i don't see in the Log the marked Lines.
The screen shot is a bit vague but I don't see anything strange here. It sure looks like no scripts are saved from your event editor.
My next steps would be:
clear browser cache and -appcache (different things) and try again to save the script.
If no result then on the CLI do
Code: Select all
cd <domoticz dir>
ls -lR scripts/dzVents/generated_scripts
# output on my system:
scripts/dzVents/generated_scripts:
total 8
-rw-r--r-- 1 pi pi 189 Aug 29 2017 README.md
-rw-r--r-- 1 root root 1545 Sep 19 11:13 'total costs.lua'
If the script is not in this generated_scripts sub directory then try again using another browser. If no result then
save the script manually to your system as
<domoticz dir>/scripts/dzVents/scripts/'total costs.lua' # or any other name as long as you use the extension lua
dzVents looks at both directory's and process the lua files in here in exactly the same way.
NB. quotes are only required if you use a space in your scriptname.
Re: dzVents script for calculating Gas/electricity cost per month
Posted: Friday 20 September 2019 10:40
by Knibor
Hi,
Tried all the above suggestions, it didn't solve the problem.
I installed Rasp pi Domoticz stable new, and build up everything from the beginning.
Now it works again.
Re: dzVents script for calculating Gas/electricity cost per month
Posted: Friday 20 September 2019 11:25
by waaren
Knibor wrote: Friday 20 September 2019 10:40
I installed Rasp pi Domoticz stable new, and build up everything from the beginning. Now it works again.

Good to read that it's working again. Hopefully it was just a one time incident and does not hit you again. Would be good to understand the root cause of this.