Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

Add support for Toronto Hydro GreenButton Data #77

Open
rexbron opened this issue Jul 11, 2023 · 0 comments
Open

Add support for Toronto Hydro GreenButton Data #77

rexbron opened this issue Jul 11, 2023 · 0 comments

Comments

@rexbron
Copy link

rexbron commented Jul 11, 2023

Is your feature request related to a problem? Please describe.
The integration errors when pasting GreenButton XML Data downloaded from Toronto Hydro's Itron EE PowerLens Portal.

The sample XML data that throws an error.

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<feed xmlns="http://www.w3.org/2005/Atom" xsi:schemaLocation="http://naesb.org/espi espi.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <id>urn:uuid:67e8d322-225e-4113-b5a8-b3af1e00e4b4</id>
    <link href="/batch_feed" rel="self" />
    <title>Green Button Export: The data you have downloaded from the Green Button allows you to view your electricity usage by your interval length. This information can help you make money-saving and environmentally-friendly decisions. As you make changes, use Energy Charts to monitor how your energy use changes over time.
Data is Informational: Data presented in Energy Charts is for information only. Always refer to your bill for exact energy use and amount due.</title>
    <updated>2023-07-11T10:38:27-05:00</updated>
    <entry>
        <id>urn:uuid:6a3122c4-cb19-4c3c-8e35-c27dfd3f7582</id>
        <link href="/UsagePoint/1" rel="self" />
        <link href="/UsagePoint" rel="up" />
        <link href="/UsagePoint/1/MeterReading/1" rel="related" />
        <title>***REMOVEH***</title>
        <content type="xml">
            <UsagePoint xmlns="http://naesb.org/espi">
                <ServiceCategory>
                    <kind>0</kind>
                </ServiceCategory>
            </UsagePoint>
        </content>
        <updated>2023-07-11T10:38:27-05:00</updated>
    </entry>
    <entry>
        <id>urn:uuid:ee76710a-82d4-4459-910a-0d2e650d0c13</id>
        <link href="/UsagePoint/1/MeterReading/1" rel="self" />
        <link href="/ReadingType/1" rel="related" />
        <link href="/UsagePoint/1/MeterReading" rel="up" />
        <link href="/UsagePoint/1/MeterReading/1/IntervalBlock/1" rel="related" />
        <title>Meter Reading</title>
        <content type="xml">
            <MeterReading xmlns="http://naesb.org/espi" />
        </content>
        <updated>2023-07-11T10:38:27-05:00</updated>
    </entry>
    <entry>
        <id>urn:uuid:3bd2223d-0365-4223-828e-d191fb44d2ba</id>
        <link href="/ReadingType/1" rel="self" />
        <link href="/ReadingType" rel="up" />
        <title>Energy Delivered (WH_ELE_DEL)</title>
        <content type="xml">
            <ReadingType xmlns="http://naesb.org/espi">
                <accumulationBehaviour>0</accumulationBehaviour>
                <commodity>1</commodity>
                <dataQualifier>0</dataQualifier>
                <flowDirection>0</flowDirection>
                <kind>12</kind>
                <phase>0</phase>
                <powerOfTenMultiplier>0</powerOfTenMultiplier>
                <timeAttribute>0</timeAttribute>
                <uom>72</uom>
            </ReadingType>
        </content>
        <updated>2023-07-11T10:38:27-05:00</updated>
    </entry>
    <entry>
        <id>urn:uuid:552ab051-0b90-4a60-92da-aa09e222626a</id>
        <link href="UsagePoint/1/MeterReading/1/IntervalBlock/1" rel="self" />
        <link href="UsagePoint/1/MeterReading/1/IntervalBlock" rel="up" />
        <title>Usage Data</title>
        <content type="xml">
            <IntervalBlock xmlns="http://naesb.org/espi">
                <interval>
                    <duration>86400</duration>
                    <!--2023-06-01T00:00:00-05:00-->
                    <start>1685595600</start>
                </interval>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685595600</start>
                    </timePeriod>
                    <value>489</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685596500</start>
                    </timePeriod>
                    <value>426</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685597400</start>
                    </timePeriod>
                    <value>174</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685598300</start>
                    </timePeriod>
                    <value>162</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685599200</start>
                    </timePeriod>
                    <value>165</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685600100</start>
                    </timePeriod>
                    <value>150</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685601000</start>
                    </timePeriod>
                    <value>150</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685601900</start>
                    </timePeriod>
                    <value>144</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685602800</start>
                    </timePeriod>
                    <value>150</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685603700</start>
                    </timePeriod>
                    <value>408</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685604600</start>
                    </timePeriod>
                    <value>501</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685605500</start>
                    </timePeriod>
                    <value>492</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685606400</start>
                    </timePeriod>
                    <value>450</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685607300</start>
                    </timePeriod>
                    <value>165</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685608200</start>
                    </timePeriod>
                    <value>156</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685609100</start>
                    </timePeriod>
                    <value>159</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685610000</start>
                    </timePeriod>
                    <value>153</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685610900</start>
                    </timePeriod>
                    <value>153</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685611800</start>
                    </timePeriod>
                    <value>156</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685612700</start>
                    </timePeriod>
                    <value>183</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685613600</start>
                    </timePeriod>
                    <value>180</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685614500</start>
                    </timePeriod>
                    <value>228</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685615400</start>
                    </timePeriod>
                    <value>240</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685616300</start>
                    </timePeriod>
                    <value>168</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685617200</start>
                    </timePeriod>
                    <value>195</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685618100</start>
                    </timePeriod>
                    <value>165</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685619000</start>
                    </timePeriod>
                    <value>147</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685619900</start>
                    </timePeriod>
                    <value>24</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685620800</start>
                    </timePeriod>
                    <value>45</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685621700</start>
                    </timePeriod>
                    <value>0</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685622600</start>
                    </timePeriod>
                    <value>15</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685623500</start>
                    </timePeriod>
                    <value>3</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685624400</start>
                    </timePeriod>
                    <value>15</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685625300</start>
                    </timePeriod>
                    <value>12</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685626200</start>
                    </timePeriod>
                    <value>45</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685627100</start>
                    </timePeriod>
                    <value>0</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685628000</start>
                    </timePeriod>
                    <value>0</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685628900</start>
                    </timePeriod>
                    <value>9</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685629800</start>
                    </timePeriod>
                    <value>9</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685630700</start>
                    </timePeriod>
                    <value>0</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685631600</start>
                    </timePeriod>
                    <value>0</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685632500</start>
                    </timePeriod>
                    <value>0</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685633400</start>
                    </timePeriod>
                    <value>0</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685634300</start>
                    </timePeriod>
                    <value>0</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685635200</start>
                    </timePeriod>
                    <value>15</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685636100</start>
                    </timePeriod>
                    <value>9</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685637000</start>
                    </timePeriod>
                    <value>0</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685637900</start>
                    </timePeriod>
                    <value>0</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685638800</start>
                    </timePeriod>
                    <value>0</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685639700</start>
                    </timePeriod>
                    <value>0</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685640600</start>
                    </timePeriod>
                    <value>69</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685641500</start>
                    </timePeriod>
                    <value>54</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685642400</start>
                    </timePeriod>
                    <value>75</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685643300</start>
                    </timePeriod>
                    <value>291</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685644200</start>
                    </timePeriod>
                    <value>147</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685645100</start>
                    </timePeriod>
                    <value>87</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685646000</start>
                    </timePeriod>
                    <value>75</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685646900</start>
                    </timePeriod>
                    <value>27</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685647800</start>
                    </timePeriod>
                    <value>12</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685648700</start>
                    </timePeriod>
                    <value>60</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685649600</start>
                    </timePeriod>
                    <value>90</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685650500</start>
                    </timePeriod>
                    <value>126</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685651400</start>
                    </timePeriod>
                    <value>204</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685652300</start>
                    </timePeriod>
                    <value>225</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685653200</start>
                    </timePeriod>
                    <value>231</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685654100</start>
                    </timePeriod>
                    <value>0</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685655000</start>
                    </timePeriod>
                    <value>0</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685655900</start>
                    </timePeriod>
                    <value>15</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685656800</start>
                    </timePeriod>
                    <value>60</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685657700</start>
                    </timePeriod>
                    <value>357</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685658600</start>
                    </timePeriod>
                    <value>558</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685659500</start>
                    </timePeriod>
                    <value>561</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685660400</start>
                    </timePeriod>
                    <value>582</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685661300</start>
                    </timePeriod>
                    <value>600</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685662200</start>
                    </timePeriod>
                    <value>1026</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685663100</start>
                    </timePeriod>
                    <value>954</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685664000</start>
                    </timePeriod>
                    <value>951</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685664900</start>
                    </timePeriod>
                    <value>819</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685665800</start>
                    </timePeriod>
                    <value>486</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685666700</start>
                    </timePeriod>
                    <value>369</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685667600</start>
                    </timePeriod>
                    <value>573</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685668500</start>
                    </timePeriod>
                    <value>675</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685669400</start>
                    </timePeriod>
                    <value>717</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685670300</start>
                    </timePeriod>
                    <value>687</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685671200</start>
                    </timePeriod>
                    <value>690</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685672100</start>
                    </timePeriod>
                    <value>603</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685673000</start>
                    </timePeriod>
                    <value>654</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685673900</start>
                    </timePeriod>
                    <value>357</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685674800</start>
                    </timePeriod>
                    <value>255</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685675700</start>
                    </timePeriod>
                    <value>216</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685676600</start>
                    </timePeriod>
                    <value>213</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685677500</start>
                    </timePeriod>
                    <value>192</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685678400</start>
                    </timePeriod>
                    <value>210</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685679300</start>
                    </timePeriod>
                    <value>555</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685680200</start>
                    </timePeriod>
                    <value>546</value>
                </IntervalReading>
                <IntervalReading>
                    <timePeriod>
                        <duration>900</duration>
                        <start>1685681100</start>
                    </timePeriod>
                    <value>540</value>
                </IntervalReading>
            </IntervalBlock>
        </content>
        <updated>2023-07-11T10:38:27-05:00</updated>
    </entry>
</feed>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant