CurrentCost EcoManager Support
Is it possible to include support for the EDF branded EcoManager as a CurrentCost device? 1+14 channels, 57600 baud.
Here is sample output for a couple of minutes (whole house, and Ch3 connected) -seems to be two sections - live and history.
<msg><src>EMC2-v1.79</src><date>14/01/2012</date><time>11:39:00</time><sensor>H</sensor><id>2317</id><type>1</type><ch01><watts>0</watts></ch01><ch02><watts>0</watts></ch02><ch03><watts>0</watts></ch03><ch04><watts>0</watts></ch04><ch05><watts>0</watts></ch05><ch06><watts>0</watts></ch06><ch07><watts>0</watts></ch07><ch08><watts>0</watts></ch08><ch09><watts>0</watts></ch09><ch10><watts>0</watts></ch10><ch11><watts>0</watts></ch11><ch12><watts>0</watts></ch12><ch13><watts>0</watts></ch13><ch14><watts>0</watts></ch14><chH><watts>788</watts></chH></msg>
<msg><src>EMC2-v1.79</src><date>14/01/2012</date><time>11:39:00</time><d14m01><kwh>12</kwh></d00m01><d15m01><kwh>0</kwh></d01m01><d16m01><kwh>0</kwh></d02m01><d17m01><kwh>0</kwh></d03m01><d18m01><kwh>0</kwh></d04m01><d19m01><kwh>0</kwh></d05m01><d20m01><kwh>0</kwh></d06m01><d21m01><kwh>0</kwh></d07m01><d22m01><kwh>0</kwh></d08m01><d23m01><kwh>0</kwh></d09m01><d24m01><kwh>0</kwh></d10m01><d25m01><kwh>0</kwh></d11m01><d26m01><kwh>0</kwh></d12m01><d27m01><kwh>0</kwh></d13m01><d28m01><kwh>0</kwh></d14m01><d29m01><kwh>0</kwh></d15m01><d30m01><kwh>0</kwh></d16m01><d31m01><kwh>0</kwh></d17m01><d01m02><kwh>0</kwh></d18m02><d02m02><kwh>0</kwh></d19m02><d03m02><kwh>0</kwh></d20m02><d04m02><kwh>0</kwh></d21m02><d05m02><kwh>0</kwh></d22m02><d06m02><kwh>0</kwh></d23m02><d07m02><kwh>0</kwh></d24m02><d08m02><kwh>0</kwh></d25m02><d09m02><kwh>0</kwh></d26m02><d10m02><kwh>0</kwh></d27m02><d11m02><kwh>0</kwh></d28m02><d12m02><kwh>0</kwh></d29m02><d13m02><kwh>0</kwh></d30m02><msg><src>EMC2-v1.79</src><date>14/01/2012</date><time>11:39:00</time><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><msg><src>EMC2-v1.79</src><date>14/01/2012</date><time>11:40:00</time><sensor>H</sensor><id>2317</id><type>1</type><ch01><watts>0</watts></ch01><ch02><watts>0</watts></ch02><ch03><watts>26</watts></ch03><ch04><watts>0</watts></ch04><ch05><watts>0</watts></ch05><ch06><watts>0</watts></ch06><ch07><watts>0</watts></ch07><ch08><watts>0</watts></ch08><ch09><watts>0</watts></ch09><ch10><watts>0</watts></ch10><ch11><watts>0</watts></ch11><ch12><watts>0</watts></ch12><ch13><watts>0</watts></ch13><ch14><watts>0</watts></ch14><chH><watts>789</watts></chH></msg>
<msg><src>EMC2-v1.79</src><date>14/01/2012</date><time>11:40:00</time><d14m01><kwh>12</kwh></d00m01><d15m01><kwh>0</kwh></d01m01><d16m01><kwh>0</kwh></d02m01><d17m01><kwh>0</kwh></d03m01><d18m01><kwh>0</kwh></d04m01><d19m01><kwh>0</kwh></d05m01><d20m01><kwh>0</kwh></d06m01><d21m01><kwh>0</kwh></d07m01><d22m01><kwh>0</kwh></d08m01><d23m01><kwh>0</kwh></d09m01><d24m01><kwh>0</kwh></d10m01><d25m01><kwh>0</kwh></d11m01><d26m01><kwh>0</kwh></d12m01><d27m01><kwh>0</kwh></d13m01><d28m01><kwh>0</kwh></d14m01><d29m01><kwh>0</kwh></d15m01><d30m01><kwh>0</kwh></d16m01><d31m01><kwh>0</kwh></d17m01><d01m02><kwh>0</kwh></d18m02><d02m02><kwh>0</kwh></d19m02><d03m02><kwh>0</kwh></d20m02><d04m02><kwh>0</kwh></d21m02><d05m02><kwh>0</kwh></d22m02><d06m02><kwh>0</kwh></d23m02><d07m02><kwh>0</kwh></d24m02><d08m02><kwh>0</kwh></d25m02><d09m02><kwh>0</kwh></d26m02><d10m02><kwh>0</kwh></d27m02><d11m02><kwh>0</kwh></d28m02><d12m02><kwh>0</kwh></d29m02><d13m02><kwh>0</kwh></d30m02><msg><src>EMC2-v1.79</src><date>14/01/2012</date><time>11:40:00</time><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><msg><src>EMC2-v1.79</src><date>14/01/2012</date><time>11:41:00</time><sensor>H</sensor><id>2317</id><type>1</type><ch01><watts>0</watts></ch01><ch02><watts>0</watts></ch02><ch03><watts>26</watts></ch03><ch04><watts>0</watts></ch04><ch05><watts>0</watts></ch05><ch06><watts>0</watts></ch06><ch07><watts>0</watts></ch07><ch08><watts>0</watts></ch08><ch09><watts>0</watts></ch09><ch10><watts>0</watts></ch10><ch11><watts>0</watts></ch11><ch12><watts>0</watts></ch12><ch13><watts>0</watts></ch13><ch14><watts>0</watts></ch14><chH><watts>793</watts></chH></msg>
<msg><src>EMC2-v1.79</src><date>14/01/2012</date><time>11:41:00</time><d14m01><kwh>12</kwh></d00m01><d15m01><kwh>0</kwh></d01m01><d16m01><kwh>0</kwh></d02m01><d17m01><kwh>0</kwh></d03m01><d18m01><kwh>0</kwh></d04m01><d19m01><kwh>0</kwh></d05m01><d20m01><kwh>0</kwh></d06m01><d21m01><kwh>0</kwh></d07m01><d22m01><kwh>0</kwh></d08m01><d23m01><kwh>0</kwh></d09m01><d24m01><kwh>0</kwh></d10m01><d25m01><kwh>0</kwh></d11m01><d26m01><kwh>0</kwh></d12m01><d27m01><kwh>0</kwh></d13m01><d28m01><kwh>0</kwh></d14m01><d29m01><kwh>0</kwh></d15m01><d30m01><kwh>0</kwh></d16m01><d31m01><kwh>0</kwh></d17m01><d01m02><kwh>0</kwh></d18m02><d02m02><kwh>0</kwh></d19m02><d03m02><kwh>0</kwh></d20m02><d04m02><kwh>0</kwh></d21m02><d05m02><kwh>0</kwh></d22m02><d06m02><kwh>0</kwh></d23m02><d07m02><kwh>0</kwh></d24m02><d08m02><kwh>0</kwh></d25m02><d09m02><kwh>0</kwh></d26m02><d10m02><kwh>0</kwh></d27m02><d11m02><kwh>0</kwh></d28m02><d12m02><kwh>0</kwh></d29m02><d13m02><kwh>0</kwh></d30m02><msg><src>EMC2-v1.79</src><date>14/01/2012</date><time>11:41:00</time><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><msg><src>EMC2-v1.79</src><date>14/01/2012</date><time>11:42:00</time><sensor>H</sensor><id>2317</id><type>1</type><ch01><watts>0</watts></ch01><ch02><watts>0</watts></ch02><ch03><watts>26</watts></ch03><ch04><watts>0</watts></ch04><ch05><watts>0</watts></ch05><ch06><watts>0</watts></ch06><ch07><watts>0</watts></ch07><ch08><watts>0</watts></ch08><ch09><watts>0</watts></ch09><ch10><watts>0</watts></ch10><ch11><watts>0</watts></ch11><ch12><watts>0</watts></ch12><ch13><watts>0</watts></ch13><ch14><watts>0</watts></ch14><chH><watts>781</watts></chH></msg>
<msg><src>EMC2-v1.79</src><date>14/01/2012</date><time>11:42:00</time><d14m01><kwh>12</kwh></d00m01><d15m01><kwh>0</kwh></d01m01><d16m01><kwh>0</kwh></d02m01><d17m01><kwh>0</kwh></d03m01><d18m01><kwh>0</kwh></d04m01><d19m01><kwh>0</kwh></d05m01><d20m01><kwh>0</kwh></d06m01><d21m01><kwh>0</kwh></d07m01><d22m01><kwh>0</kwh></d08m01><d23m01><kwh>0</kwh></d09m01><d24m01><kwh>0</kwh></d10m01><d25m01><kwh>0</kwh></d11m01><d26m01><kwh>0</kwh></d12m01><d27m01><kwh>0</kwh></d13m01><d28m01><kwh>0</kwh></d14m01><d29m01><kwh>0</kwh></d15m01><d30m01><kwh>0</kwh></d16m01><d31m01><kwh>0</kwh></d17m01><d01m02><kwh>0</kwh></d18m02><d02m02><kwh>0</kwh></d19m02><d03m02><kwh>0</kwh></d20m02><d04m02><kwh>0</kwh></d21m02><d05m02><kwh>0</kwh></d22m02><d06m02><kwh>0</kwh></d23m02><d07m02><kwh>0</kwh></d24m02><d08m02><kwh>0</kwh></d25m02><d09m02><kwh>0</kwh></d26m02><d10m02><kwh>0</kwh></d27m02><d11m02><kwh>0</kwh></d28m02><d12m02><kwh>0</kwh></d29m02><d13m02><kwh>0</kwh></d30m02><msg><src>EMC2-v1.79</src><date>14/01/2012</date><time>11:42:00</time><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12><m01y12><kwh>22</kwh></m01y12>
I simply piped your first XML fragment in as a file to xap-currentcost and I managed to get a result, this is how I tested as I don't have an EDF unit (nor a livebox for that matter). Do make sure you have configured a CC128 unit otherwise the baud rate will not be right and you'll get nothing.
If you want to run this in debug mode -d 6 and send me some logs (as a ZIP attachment please) I can take a look at why data is not being parsed for you.
This note pertains to the RAW XML from the EDF Unit: If you capture a decent interval of data (say 5 minutes worth) and compress and ZIP attach I will have a better sample of data to test and work with. A single fragment QA does not make.
I can then fully support sensors and the like and make web page amendment to integrate this unit more natively.
Brett
Well that explain why you are seeing nothing! No data is coming into the process.
Drop down to Level 7 and you might see something, the serial input data is only displayed at these deeper levels of debugging, but you are going to get a LOT more information too.
Brett
I've push a new BETA 302.6 which now has native support for the EDF unit. You will need to select this from the WEB GUI before things will work correctly. I've also incorporated all 14 sensors are part of the xAP data reported. Please supply me more XML so I can verify my code - or else you will need to do this yourself.
Brett
That trace was way to short to be useful - it just started getting interesting and then you terminated it. You need to sent a much larger trace - nothing was looking wrong when I was reading it. Only the fact that it hadn't got a SYNC on the start of a <msg> frame yet. Until it does you won't get xAP message.
I really need to rewrite the code so it read from the open file descriptor straight into the SAX parser instead of accumulating in memory first this would solve your problem, I suspect, and make the code more efficient.
In the meantime a longer log file would be useful.
Brett
WTF ? You have screwed up.... You are feeding the CurrentCOST data into xap-serial !?
Double/Triple check what you are running and how you have configured your system.
xap-header
{
v=12
hop=1
uid=FF00D500
class=Serial.Comms
source=dbzoo.livebox.Serial
}
Serial.Received
{
port=/dev/ttyUSB0
data=<msg><src>EMC2-v1.79</src><date>14/01/2012</date><time>18:42:00</time><d14m01><kwh>23</kwh></d00m01><d15m01><kwh>0</kwh></d01m01
}
Brett
Well this is why we call it BETA. Lets try with 302.7 - I think I know the problem.
If that doesn't fix it then you will need to supply an XML data feed collected from the device , this will be my last post for quite a bit.
Brett
I fed this through and I see only a single reading on the 1st fragment too. However this data looks partially corrupt and by that I mean the XML isn't well formed and its looks truncated in places.
Almost as if its hit some sort of maximum line length on capture. Are you sure about how this data was captured?
Please plug the UNIT into your PC and run PUTTY against the COM port directly and try again.
Brett
I know you are trying to help me, however I need some intelligent hands operating the equipment at the other end and doing diagnostics and examining the information for correctness, and perhaps troubleshooting before just shunting it all my way. I'm a busy man and I want to help you, however I don't have time to waste on examining data that you could have done yourself to discover what I've just told you. I literally get 2 hrs a day to work on the HAH project so the more you help me the more efficient I can be with the VERY limited time that I have.
Brett
I had a look at the file putty.log that was uploaded by andy_godber.
Unfortunately, or fortunately depending on your point of view, it contained the [useless] daily and monthly historic data that currentcost insist on in all but the earliest of their devices.
The xml 'lines' for these are exceptionaly long, and have excceded the buffer length allowed for in putty or its logger.
I haven't got my eco manager hooked up at the moment so I have edited andys file to remove the noise and leave the one minute data ( there is about an hours worth) in the hope that this will move things along
( I am assuming you must have had the oven on to cook dinner Andy ;) !)
kevint
Attachment | Size |
---|---|
eco.xml | 31.61 KB |
Well small world!, I was living here then.
Which clamp are you using for the CC whole house? I found that replacing the rather large clamp with a later smaller one which was at right angle to the live cable and a tighter fit gave me 'better' readings
You should be able to check the setting of the counter on your bill, if not specifically mention you should be able to see the calculation/conversrion
Be aware that the CC units cannot be considered to be fiscal meters, but should at least "parallel" the metered values
I am unconvinced that Power Factor has any significant effect on the readings in a normal domestic property, and while I admire those people who post on the net who seem to be able to get their electricity down to low hundreds of of watts, I am sure they either are not real or that they lead sad lives on their own in a very small bedsit ;) ... My background wattage is 750 and I have replaced all incandescent bulbs with energy saving or LED ones, etc. I am quite pleased with that.
I see that you have also had a go at water meter monitoring - I need to attack this as well. The Openenergy emonTx and nanodes use the RFM12 tranceivers as well, not sure about the frequency, so would or could be made compatible with the HAH's Jeenode/HAHnode subsystem
kevint
I'm not too familiar with the PF etc that is under discussion but for what it's worth, I don't consider myself to lead a "sad life in a very small bedsit" (actually a four bed shack shared with 3 other people) but my background useage at night seems to vary between about 100 and 350 watts presumably depending on the activity of fridge/freezer etc. Pachube feed 36589 stream 2.
Evening useage with lights/computers/TV's on, seems to be in the 500-900 watt range except when boiling kettles etc.
As you can see, the typical consumption figure for gas has
decreased. But the figure for electricity has stayed the same.
For households on a time of use tariff, such as Economy 7,
the typical medium consumption figure for electricity is 5,000
kWh, compared to the old value of 6,600 kWh.
Customers may choose to be on a time of use tariff because
it fits their pattern of energy consumption. Some households
on a time of use tariff may have a higher consumption
of electricity than those on standard tariffs because they use
electricity to heat their home or provide hot water.
Typical low consumption values:
Gas - 11,000 kWh,
Electricity - 2,100 kWh.
Typical high consumption values:
Gas - 23,000 kWh, Electricity - 5,100 kWh
Gas Electricity
New typical medium consumption figures 16,500 kWh 3,300 kWh
Old typical medium consumption figures 20,500 kWh 3,300 kWh
http://www.ofgem.gov.uk/Media/FactSheets/Documents1/domestic%20energy%20consump%20fig%20FS.pdf
http://en.wikipedia.org/wiki/List_of_countries_by_electricity_consumption
Always good to provoke a reaction ;) and nothing personal of course.
Interesting to compare similar countrys in the
http://en.wikipedia.org/wiki/List_of_countries_by_electricity_consumption tables
particiularly that UK average is lower than EU average, and France and Germany particularly.
Obviously some of the differences are due to climate, infrasturcture, and consumer sophistication, but local pricing must also be a factor
kevint
OK so I have to admit to being a little bit sad! My long term electricity use over the last decade in a largish 4 bed place with up to 5 people is within a whisker of 14KwH per day before the installation of PV. That's just a little over 5000KwH per year. More recently (after low energy light bulbs etc.) the annual average has dropped to about 12.9 KwH per day.
25KwH per day seems quite high unless you are using some high wattage devices on a regular basis.
I live in a 4bed with a stay at home wife and two kids who do not know what a light switch is for. we regularly use dishwasher, dryer and washing machine. our typical usage is 12-18kwh. Think we did peak at 25 once but this was exceptional. 25ave sound really high. Pachube 21773
I expect that, like my kids, they know half of what a light switch is for. That'll be switching a light ON! It's the other bit that seems to be beyond them. Grrrrrrrrrr!
Not a new problem I think, and not restricted to children..
Now I realise why the X10 system had a command "all lights off" !
kevint
I've added minimal support for the the <chH> channel.
[inf][tx.c:19:xapSend] send
xap-header
{
v=12
hop=1
uid=FF00DC01
class=xAPBSC.event
source=dbzoo.livebox.CurrentCost:ch.H
}
input.state
{
state=on
text=788
displaytext=788 Watts
}
Update to the BETA and let me know how that goes. You need to configure as a CC128 unit.