I have the following configuration:
"kW" (p40):
Modbus kW Sampled at the data source every 10 seconds
"kW" (p40) Logging Type:
When point value changes
"kWh" Meta Script for hourly kWh chart display:
return p40.past(HOUR, 1).average;
Script is triggered:
Start of hour
"kWh" Logging Type:
When point value changes
We Had no kW readings logged at all (power outage) from 10AM to 1PM today, but the kWh meta script still calculated values every hour during this outage. It seems to just re-use entries prior to 10AM over producing false data. I expected a zero reading for those (power outage) 11AM-1PM hourly timeslots. What's the best way to show these "zero" hourly entries on a chart?
Thanks.