Re: Question about notifications in dzVents
Posted: Thursday 05 January 2023 20:32
Those costs are only calculated when requested by the web user interface Log and reports and not stored in Domoticz.
Open source Home Automation System
https://forum.domoticz.com/
Still wondering.Xavier82 wrote: Thursday 05 January 2023 16:04 My gas consumption is automatically updated every minute. I use a P1 cable which is connected to our Smart Energy meter (incl. gas) and directly to my Rpi.
The gas consumption is frighteningly accurate on day and montly level to what Essent counts and charges me.
Thats strange about your update time, I don't have any specific timer or something to update the switches, the switches are just updated, the same for temperature, weather and Utiliy devices by the way.HvdW wrote: Friday 06 January 2023 2:04Still wondering.Xavier82 wrote: Thursday 05 January 2023 16:04 My gas consumption is automatically updated every minute. I use a P1 cable which is connected to our Smart Energy meter (incl. gas) and directly to my Rpi.
The gas consumption is frighteningly accurate on day and montly level to what Essent counts and charges me.
In my Domoticz gas from P1 is read every minute or so.
Electricity updates about once a minute.
In the same readings gas is measured as well.
Difference is that the tile in Domoticz updates about once an hour.
Or is it different in your setup.
Code: Select all
--Verzend informatie. Dit is 1 bericht, met alle informatie. regels uit -- ervoor anders ze ervoor weg halen om te krijgen
local subject = 'Mijn Energie overzicht : '
local message = 'Mijn Energie Overzicht : ' .. os.date("%d-%m-%Y")..'\n' ..
--'--------------P1 Elektriciteitmeter-----------' .. '\n' ..
'Stroomkosten Totaal : € ' .. tonumber(dz.utils.round( (kwhPrijs * vandaagKwh) + kwhPrijsVast,2)).. '\n' ..
'Stroomkosten Hoog : € ' .. tonumber(dz.utils.round( (kwhPrijs * vandaagKwhvh) ,2)).. '\n' ..
'Stroomkosten Laag : € ' .. tonumber(dz.utils.round( (kwhPrijs * vandaagKwhvl) ,2)).. '\n' ..
'Teruglevering Hoog : € ' .. tonumber(dz.utils.round( (kwhPrijs * vandaagKwhth) ,2)).. '\n' ..
'Teruglevering Laag : € ' .. tonumber(dz.utils.round( (kwhPrijs * vandaagKwhtl) ,2)).. '\n' ..
'Verbruik Hoog : ' ..vandaagKwhvh.. ' kWh'.. '\n' ..
'Verbruik Laag : ' ..vandaagKwhvl.. ' kWh'.. '\n' ..
'Teruglevering Hoog : ' ..vandaagKwhth.. ' kWh' .. '\n' ..
'Teruglevering Laag : ' ..vandaagKwhtl.. ' kWh' .. '\n' ..
'Totaal Verbruik Elektra vandaag : ' ..vandaagKwh.. ' kWh'.. '\n' ..
--'--------------P1 Gasmeter---------------------' .. '\n' ..
'Gaskosten vandaag M3 : € ' .. tonumber(dz.utils.round( (gasM3Prijs * vandaagM3Gas) + gasM3PrijsVast,2))..'\n' ..
'Totaal Verbruik Gas vandaag : ' ..vandaagM3Gas.. ' M3'.. '\n' ..
-- '--------------Watermeter----------------------' .. '\n' ..
-- 'Water : € ' .. tonumber(dz.utils.round( (waterM3Prijs * vandaagM3Water)/1000 + waterM3PrijsVast,2))..'\n' ..
-- 'Totaal Verbruik Water vandaag : ' ..vandaagM3Water.. ' M3'.. '\n' ..
--'--------------Zonnepanelen--------------------' .. '\n' ..
--'Totaal Opbrengst Zonnepanelen : ' ..vandaagKwhzon.. ' kWh'.. '\n' ..
--'Zonopbrengst Totaal € ' .. tonumber(dz.utils.round( (kwhPrijs * vandaagKwhzon) + kwhPrijsVast,2))..'\n' ..
'-------------- Einde Dag Overzicht -------------'
-- Notificatie voor verschillende aanbieders
dz.notify(subject, message, dz.PRIORITY_NORMAL)