jasonacox / Powerwall-Dashboard

Grafana Monitoring Dashboard for Tesla Solar and Powerwall Systems
MIT License
296 stars 63 forks source link

v4.0.1 - Powerwall Voltages #426

Closed mcbirse closed 8 months ago

mcbirse commented 8 months ago

v4.0.1 - Powerwall Voltages

jasonacox commented 8 months ago

This is great! I'm seeing the data already.

In the US, the new data is is based on the combined L1/L2 lines (phase) so we have the old data tracking at 122V and the new data at 244V.

image

I created an Override using the regex .*[ ](L[1-2])\b for the name to identify the L1/L2 labels and push them to the right axis.

image image

But I'm not sure it is worth adjusting as it probably wouldn't work outside the US and all of this L1/L2 Vsplit data will be gone after vitals are removed.

I'm in favor of proceeding with the merge. Everything else looks good.

mcbirse commented 8 months ago

But I'm not sure it is worth adjusting as it probably wouldn't work outside the US and all of this L1/L2 Vsplit data will be gone after vitals are removed.

Great solution with the regex based axis override! I just tested this and it seems acceptable for 220V-240V standards as well.

I think it is worth including in that case, so as not to mess up the graph for 120V users. I will include your change and merge this. It also highlighted an extraneous override "Solar Energy" (color scheme) that was probably copied by accident from another panel, which I will remove.

For 220V-240V the left/right axis may be slightly skewed, but it's pretty minor.

image

The oddity of the graph with both a left/right axis will eventually disappear as more people are upgraded to the new firmware and vitals are removed.

image

In the meantime, having the axis split seems sensible while there is a transition period and PW voltages are being displayed from both vitals and battery blocks at the same time.

jasonacox commented 8 months ago

Excellent! Thanks @mcbirse 🙏

billraff commented 8 months ago

I have received the update that caused Vitals to disappear a couple nights ago. On my test box I upgraded successfully to 4.0.1 but I am not seeing voltages as seen in the thread. Do I manually add a panel? I tried reloading the json but things look no different.

jasonacox commented 8 months ago

Hi @billraff, I doubt this since you just did an upgrade, but did you happen to switch to cloud mode? Run ./verify.sh or go to http://pypowerwall:8675/help to see what mode it is running.

Try going to http://pypowerwall:8675/api/system_status - that is where the new voltage data is coming from. If that isn't working, there is something with InfluxDB not running the CQs, otherwise you would see it in the updated dashboard.json file that you loaded.

billraff commented 8 months ago

Yes, this is on my test box so it is running cloud mode:

Verify Powerwall-Dashboard 4.0.1 on MacOS - Timezone: America/Los_Angeles

This script will attempt to verify all the services needed to run Powerwall-Dashboard. Use this output when you open an issue for help: https://github.com/jasonacox/Powerwall-Dashboard/issues/new

Checking pypowerwall

Checking telegraf

Checking influxdb

Checking grafana

Checking weather411

Not sure where I should be looking for that data.

Screenshot 2024-01-29 at 1 17 05 PM

Edit to add the output from the system_status url:

{"command_source": "Configuration", "battery_target_power": 0, "battery_target_reactive_power": 0, "nominal_full_pack_energy": 29935, "nominal_energy_remaining": 23928.684210526313, "max_power_energy_remaining": 0, "max_power_energy_to_be_charged": 0, "max_charge_power": 10000, "max_discharge_power": 10000, "max_apparent_power": 10000, "instantaneous_max_discharge_power": 0, "instantaneous_max_charge_power": 0, "instantaneous_max_apparent_power": 0, "hardware_capability_charge_power": 0, "hardware_capability_discharge_power": 0, "grid_services_power": 0, "system_island_state": "SystemGridConnected", "available_blocks": 2, "available_charger_blocks": 0, "battery_blocks": [], "ffr_power_availability_high": 0, "ffr_power_availability_low": 0, "load_charge_constraint": 0, "max_sustained_ramp_rate": 0, "grid_faults": [], "can_reboot": "Yes", "smart_inv_delta_p": 0, "smart_inv_delta_q": 0, "last_toggle_timestamp": "2023-10-13T04:08:05.957195-07:00", "solar_real_power_limit": 5620, "score": 10000, "blocks_controlled": 2, "primary": true, "auxiliary_load": 0, "all_enable_lines_high": true, "inverter_nominal_usable_power": 0, "expected_energy_remaining": 0}

jasonacox commented 8 months ago

Cloud Mode: YES

You are running in cloud mode. Unless you have a Powerwall 3, you should be able to switch to local mode to get the additional data. You can do that by running the setup.sh again and selecting local mode.

Cloud mode doesn't provide voltage data. As you can see in the payload "battery_blocks": [] is empty.