Some differences in the Dashboard that don't make sense when compared to electricity provider information. #542
Replies: 3 comments 4 replies
-
Hi @Stephen2615 - I'm not sure I can reconcile this for you but some ideas:
CREATE CONTINUOUS QUERY cq_autogen ON powerwall
BEGIN
SELECT
mean(home) AS home,
mean(solar) AS solar,
mean(from_pw) AS from_pw,
mean(to_pw) AS to_pw,
mean(from_grid) AS from_grid,
mean(to_grid) AS to_grid,
last(percentage) AS percentage
INTO powerwall.autogen.:MEASUREMENT
FROM (
SELECT
load_instant_power AS home,
solar_instant_power AS solar,
abs(
(1 + battery_instant_power / abs(battery_instant_power)) * battery_instant_power / 2
) AS from_pw,
abs(
(1 - battery_instant_power / abs(battery_instant_power)) * battery_instant_power / 2
) AS to_pw,
abs(
(1 + site_instant_power / abs(site_instant_power)) * site_instant_power / 2
) AS from_grid,
abs(
(1 - site_instant_power / abs(site_instant_power)) * site_instant_power / 2
) AS to_grid,
percentage
FROM raw.http
)
GROUP BY time(1m), month, year
FILL(linear)
END The math for the summation (integral) of the data from W samples in kWh is here: CREATE CONTINUOUS QUERY cq_kwh ON powerwall
RESAMPLE EVERY 1m
BEGIN
SELECT
integral(home) / 1000 / 3600 AS home_kwh,
integral(solar) / 1000 / 3600 AS solar_kwh,
integral(from_pw) / 1000 / 3600 AS from_pw_kwh,
integral(to_pw) / 1000 / 3600 AS to_pw_kwh,
integral(from_grid) / 1000 / 3600 AS from_grid_kwh,
integral(to_grid) / 1000 / 3600 AS to_grid_kwh
INTO powerwall.kwh.:MEASUREMENT
FROM autogen.http
GROUP BY time(1h), month, year
TZ('America/Los_Angeles')
END |
Beta Was this translation helpful? Give feedback.
-
Hi @jasonacox, thanks for taking the time to provide the information. I will attempt the queries soon. I did notice that our electricity provider doesn't make any daylight savings adjustments with their data but that won't make such a major difference. Just out of curiosity, how often does the Dashboard query whatever it queries? |
Beta Was this translation helpful? Give feedback.
-
Hi Jason, The Home Usage is way too high but if the load is the home usage, it isn't. Does that make any sense? Cheers Stephen |
Beta Was this translation helpful? Give feedback.
-
Greetings,
Now that the installers have finally fixed their dodgy wiring (thanks to the Dashboard for giving me the information to determine that), I now have what looks like accurate data shown on the Dashboard. There are some significant differences between what my electricity providers data (what I get billed on) and what is shown on the Dashboard.
I assume that the data comes from the Telsa API and it is much the same format as the data.csv we can download from the Tesla App, which is:
DateTime Home (kW) Powerwall (kW) Solar (kW) Grid (kW)
The Dashboard shows:
"To Grid" with 14.1 kWh where my provider shows 28.64 kWh. has been exported.
"Solar Energy" (48.4 - provider v 48.9 - Tesla) and "From grid" (5.16 - provider v 4.2 - Tesla) which are close enough and are probably just rounding errors for five minute intervals.
The Dashboard has Home Usage at 36.8 kWh. The difference between what is exported to the grid which is 28.64 kWh and our home usage (charging the battery from our solar and whatever we use of our own solar or battery) which is 48.4 kWh is 19.76 kWh which is what I would think is home usage.
"Too Powerwall" looks about right at close to 10 kWh over the 24 hour period given there are two distinct charging times (some off peak and the rest solar during the day).
So I am a bit baffled at "Home Usage" and "To Grid". This also causes problems with "Net Grid Usage". The Dashboard shows -9.9 kWh where it is 28.64 - 5.6 which is a net grid usage of - 23.04 kWh.
Am I missing something here?
Cheers
Stephen
Beta Was this translation helpful? Give feedback.
All reactions