Compare different popular SDGE residential rates plans, using the Green Button Download exported usage file available from the SDGE portal.
TOU-DR1
, TOU-DR2
, EV-TOU-5
, EV-TOU-2
, DR
(for non-solar user), DR-SES
(for NEM1.0 user)git clone https://github.com/corruptbear/my_sdge
cd my_sdge
python3.9 -m pip install -r requirements.txt
Should work with both python3.9 and python3.10. Other versions are not tested.
If you have no idea how to get this to run, see the FAQ for a zero set-up option.
see the help:
python3.9 sdge_hourly.py --help
Usage: sdge_hourly.py [OPTIONS]
Options:
-f, --filename TEXT The full path of the 60-minute exported
electricity usage file. [required]
-z, --zone [coastal|inland|mountain|desert]
The climate zone of the house. [default:
coastal]
-s, --solar [NA|NEM1.0] The solar setup. [default: NA]
--pcia_year [2009|2010|2011|2012|2013|2014|2015|2016|2017|2018|2019|2020|2021|2022|2023]
The vintage of the PCIA fee. (indicated on
the bill) [default: 2021]
--help Show this message and exit.
An example 60-min resolution usage file (historical data) is provided.
To use the historical data to compare different plans using the current rates:
# ensure that you are currently in the downloaded repo folder
python3.9 sdge_hourly.py -f Electric_60_Minute_11-1-2022_11-30-2022_20230819.csv -z coastal --pcia_year 2021
Outputs (the plans are ranked from lowest cost to highest cost):
starting:2022-11-01 ending:2022-11-30
30 days, 0 summer days, 30 winter days
total_usage:817.4150 kWh
CCA-EV-TOU-5 $279.3905 $0.3418/kWh
EV-TOU-5 $281.6590 $0.3446/kWh
CCA-EV-TOU-2 $305.6914 $0.3740/kWh
EV-TOU-2 $307.9600 $0.3767/kWh
CCA-TOU-DR2 $374.1701 $0.4577/kWh
CCA-TOU-DR1 $374.6333 $0.4583/kWh
TOU-DR2 $375.9059 $0.4599/kWh
TOU-DR1 $376.3823 $0.4605/kWh
CCA-DR $378.3918 $0.4629/kWh
DR $380.2473 $0.4652/kWh
If you are a NEM1.0 user, add -s NEM1.0
to the end of the command.
Green Button Download
icon.Yes.
Some plans are advantageous in the summer, while others are advantageous in the winter, with a usage file covering more months you can then compare the overall costs of different plans over longer period.
Just make sure that the starting date and the ending date are spanning no more than one year. The ending date could be from the year following the year of the starting date, but could not include or pass the anniversary.
Please check SDGE's arcgis map : put your address into the search box, click Enter
, then see the result.
On your PDF SDGE bill, the year of your PCIA fee is indicated.
For example, on my bill, in the section above "Total Electric Charges", "PCIA 2021" is listed, which means the year is 2021.
As different years have different PCIA fee, if the fee for a particular year is high, it might make the usually slightly cheaper (in 2024, this is no longer true for summer months, you can examine the rates .yaml
files to view the rates) CCA plans slightly more expensive than non-CCA.
non-CCA: SDGE generation fee + SDGE delivery fee - allowance credit
CCA: CCA generation fee + SDGE delivery fee - allowance credit + PCIA
NEM1.0: similar to above; uses net consumption instead of consumption for calculations; applies the allowance credit as described in page 6. (the current calculation is estimate only, it has not taken non-bypassable into account yet, so it's NEM1.0)
You can simulate the EV by convert your current usage file to a new usage file with imaginary EV usage each day.
For example, you would like to simulate having an EV which consumes 10kWh per night (charged during the super offpeak hours).
On a Unix based computer, you can run the following command in the terminal to add extra usage during the super offpeak hours each day:
awk -F, -v increment=10 'BEGIN{OFS=FS=","}{
if ($3 == "\"12:00 AM\"") {
gsub(/"/, "", $5);
$5 = "\"" sprintf("%.4f", $5 + increment) "\"";
$7 = "\"" sprintf("%.4f", $7 + increment) "\"";
}
print $0
}' "Electric_60_Minute_11-1-2022_11-30-2022_20230819.csv" > output.csv
After running the command, you will have a new file named output.csv
. Then you can use it as the input for the bill comparison script.