Update P1 Smart Meter
Posted: Monday 28 December 2015 7:30
Hi
I'm trying to monitor the consumption and production of electricity in my house.
With 2 electric meter I have data of production and consumption.
I would like to merge them into a single device so that you have one graph.
I am trying to send data to a dummy p1 smart meter but something is wrong.
What's wrong?
There is another method for comparing production / consumption?
I'm trying to monitor the consumption and production of electricity in my house.
With 2 electric meter I have data of production and consumption.
I would like to merge them into a single device so that you have one graph.
I am trying to send data to a dummy p1 smart meter but something is wrong.
Code: Select all
--IDX p1 Smart Meter = 8
--Produczion Meter
solarPower, solarEnergy = string.match(otherdevices_svalues['Produzione'], "(%d+%.*%d*);(%d+%.*%d*)")
--Consume Meter
ConsPower, consEnergy = string.match(otherdevices_svalues['Consumo'], "(%d+%.*%d*);(%d+%.*%d*)")
commandArray['UpdateDevice'] = "8" .."|" ..consEnergy.."|0|" .. solarEnergy .. "|0|" .. consPower .."|" .. solarPower
-- Generate string 8|1930589|0|15246948.000|0|768.91|0.000
There is another method for comparing production / consumption?