Just got my Optismart --- speedy next day delivery thanks,
I am looking to restart my previously failed project of trying to monitor and calculate my energy consumption/export.
I have a PV system when currently recording the generated energy from the inverter (may get an 2nd Optismart if the first turns out well).
I am using the Optismart to measure my Import meter and the clamp on the wire from the meter to the consumer unit.
Now previously I have only been able to estimate the energy flowing through the wire - but not the direction.
By monitoring the PV. Import Meter and flow I hope to be able to calculate Generated, Imported, Exported and Consumed values,
The assumption being that if there is energy reported on the CV Clamp while the Optimeter is reporting 0 usage then I am exporting.
Now the first hurdle is to get comparative readings.
Having paired the Optismart to Appliance 0 and 9 as per manual and the Clamp to Appliance 1 I am reading the output XML on my micro-server but the two appliances are coming 2 seconds apart.
Code:
<msg><src>CC128-v1.29</src><dsb>00381</dsb><time>21:02:08</time><tmpr>26.1</tmpr><sensor>9</sensor><id>02063</id><type>2</type><imp>0000030733</imp><ipu>1000</ipu></msg>
<msg><src>CC128-v1.29</src><dsb>00381</dsb><time>21:02:12</time><tmpr>26.0</tmpr><sensor>1</sensor><id>00815</id><type>1</type><ch1><watts>00712</watts></ch1></msg>
<msg><src>CC128-v1.29</src><dsb>00381</dsb><time>21:02:14</time><tmpr>26.0</tmpr><sensor>0</sensor><id>03386</id><type>1</type><ch1><watts>00654</watts></ch1></msg>
Is it possible to get them through in the same string to make the coding easier to apply my "0" import assumption?