Current cost gas smart released
I've had one on beta test for a few months, working well and nicely integrates with the Current Cost dashboard, also doubles up as a nicely manufactured reed switch housing for my gasnode :)
Cool! Does anyone know if you can just plug & play then push data streight to Cosm as we do with other data or are you forced to use the Current Cost online Dashboard?
OK great yeah makes sense!
OK so I bought one of these Gas Sensors and I'm now trying to make sense of the data I am getting from it, just wondered if anyone can help?
Hooked it up to my CC as an appliance and to my HAH which is pushing data to Cosm. As I understand it the Gas sensor counts the pulses from the gas meter so I was expecting to see a stream of steady data however this doesn't seem to be the case.
In my xfx viewer I am seeing a stream of zero values and then little bursts of outputs with values and the positive values are making it to Cosm however it just shows at the moment as peaks whereas the data from my xfx viewer has varying values see the xAPMessageHistory.txt attachment and screen shots.
Now using Open.SE to count/total the feed data....
On my Gas meter it says 1 pulse = 10dm3
Anyone know what is going on/how to make sense of the data?
Attachment | Size |
---|---|
xAPMessageHistory.txt | 1.8 KB |
Capture.PNG | 41.2 KB |
sum.PNG | 10.2 KB |
events.PNG | 93.45 KB |
No readings are being displayed on the CC screen
How did you connet to the CC. I had to register it with a spare channel as and set the imp/m3. The display should then show data. Then you register also on the main screen.
The full instructions are here http://www.currentcost.com/product-optismart-installation.html
A more detailed explanation is here http://currentcost.posterous.com/optismart-guidelines-for-developers
OK looks like I may need to do more to pair it up, will give it another go later
Mark are you actually pushing data to Cosm as well?
I think I am being a bit thick on this pairing lark! There is a double pairing processes involved where you pair once to an appliance and the other you pair to the display screen however on my I CC128 EnviR I only have 1 display screen which is what I assumed my main whole house sensors are paired to and I don't want to mess up the pairing of this, do I pair this second sensor to the main display screen or something else?
Thanks for that, they look identical to my CC128 thought mine was the Envir version, thing is I am getting bursts of data though to my HAH to Cosm so thought I old use it, might just have to upgrade my kit then.
Hi Dean, did you get my email about your Envir?
OK I’ve not hooked up a new EnviR (thank you Dean!) as apparently my CC128 was not compatible with the GaSmart sensor. I’ve double paired this once as a data channel to appliance 9 (single flash of the LED) and then also to appliance 1 as display (3 flashes of the LED) as instructed by CC. I queried with CC and they have said not to expect any output to the screen of the EnviR it only records the data to XML and then they are pushing you to buy their subscription Web service to see the data.
When I use xFx to view I can now see sensor 1 and all it seems to show is an On/Off state see the attached screenshot.
Anyone know where I go from here with it, i.e. how I get at the actual data so I can push to cosm?
Attachment | Size |
---|---|
EnviR-Gas.PNG | 79.39 KB |
Does anyone have any idea how I can reteive/read the data for the EnviR CC say that it is stored as XML?
The data is transmitted from the Envi as XML everytime a sensor is received. At 5 minutes past every odd hour the whole data history is downloaded, also in XML format. Alternatively to force a download of the history press V and OK at the same time until the LED flashes
The XML format is described here http://www.currentcost.com/download/Envi%20XML%20v19%20-%202011-01-11.pdf
Thanks Mark, do you know if I can get my HAH to retreive this data so I can automatically push this to Cosm directly without having to connect the CC to my PC?
I'm working on a roomnode sketch with a 433MHz receiver to decode the CC stuff
I've got the WH weather station working but found I could also use the same node for CC.
Watch this space
Another bonus is I can see what RF commands have been sent. I know it's not confirmation that RF switches have recieved but if I see an RF command I know it didn't collide with another RF transmission on the 433 band
Are you proposing to capture the raw data from the sensors via RF? If so I assume would still need a new method to push this to Cosm as I assume I wouldn't be able to use the scripts built into HAH for this.
Is there a way to just read the XML stored on the CC right now and for me to push this as a stream to Cosm?
The xap-currentcost program does support reading XML data from the ENVI along with up to 9 sensors. http://www.dbzoo.com/livebox/xap_currentcost This does require the unit to be tethered with a USB cable.
I guess I need to write a xap-gassmart reader !
Brett
Data is captured and will either be presented as BSC endpoints within the sketch or decoded via a lua serial script
either way its uploading to Cosm without the Envir receiver and usb connection
Hi Brett!
Would be great if I could read/capture the data and push to Cosm, if you are happy to write the code I'm obviously more than happy to be the tester for this to get it all working etc
KR,
Chris
Well the sensors for xap-currentcost can be setup as digital or analoge. So the question is?
How smart is the gas smart sensor? Is this a analoge device that counts pulses in a period and sends you a value OR its it dumb and it just counts (Gas pulses) until a perdetermined number have passed and then it sends one of its own to indicate some quanity of gas has been used.
If its the later then we need to setup your initial METER reading for xap-currentcost and then look for these PULSES from the gas smart sensor and increment this meter reading by some constant. This new meter value is then fed to cosm for consumption and graphing along with being stored back onto the HAH incase of a reset so it can pickup where it left off.
I see Mark pasted a url for the spec a little earlier - I can answer my own question. It's a "Meter Impluse" counter. You define the "Meter impulse per unit" count and it will send you a TICK when this many impulses have been seen. Page 3 of the spec http://www.currentcost.com/download/Envi%20XML%20v19%20-%202011-01-11.pdf
Just send me a LARGE slab of XML with various sensors being reported and I can work with this to get it being processed correctly.
Brett
The Gas Smart unit seems to do the same as my gas node. It sends how many pulses it has received since it's last send BUT it also seems to keep a rolling count of what has been counted. The implulses/unit are entered into the CC receiver, so it is the receiver that does the conversion from pulses to units
Brett, I'll hook the CC up to a port for a while and grab some XML for you if you like
How do I get the XML off the CC connect to PC using the USB cable? Do I need any software to read the data?
You just need the USB cable (if it came with one) and if you're using a PC, use hyperterminal (it's part of Windoze). Select the COM port that the USB lead has taken and set the COM port settings to 115,200 Baud, 8 bit, 1 data bit, no parity and watch the data come in
I can't get the USB to work keeps saying
Device driver software was not successfuly installed
Prolific USB-to-Serial Comm Port (COM16) Failed
I'm on Windows 7, I've tried different USB ports and rebooting both my PC and the CC, any ideas?
The correct USB drivers are already on your HAH unit. You could use that to grab some sample data.
Derek
I also vote for just using the HAH to collect the data http://www.dbzoo.com/livebox/xap_currentcost#troubleshooting PC's can be such a pain in the backside for driver issues. Linux just works.
Just make your putty buffer large enough so the results don't scroll away and then "save buffer".
Brett
OK so I SSH onto HAH please can you tell me how to Shutdown the xap-currentcost daemon first?
killall xap-currentcost
OK got some XML (attached) my sensor 9 <imp> seems to be getting data from the GaSmart
Attachment | Size |
---|---|
CC-XML.txt | 29.36 KB |
Got that data thanks.
Just one question I noticed that <tempr> is sent for <sensor>0</sensor> which is called whole of house, but this is also sent with other sensors too like in your example <sensor>9</sensor>. So my question is.... does each sensor also have a temperature sensor or is this just the CC unit including the whole of house reading as part of the msg ?
If each external sensor also has a temp sensor then I have a bug I need to fix !
The documentation isn't clear on this point. A little testing should clear this up. Just warm/cool an external sensor and see if this value radically changes from the tmpr reading for sensor 0 OR if your GAS sensor is outside where is COLD and the CC unit is inside then I'd have my answer anyway. As the delta between the <tmpr> from the whole of house to sensor 9 is only a few points of a degree (which is just wobble).
UPDATE: beta 308.1 available.
I would not upgrade to this unless you have an impulse meter and you want to help me test.
This really is BETA due to the LARGE amount of code I rewrote and the limited testing I can do without all the hardware.
I did however push a large number of XML slabs through it and nothing crashed however the proof is in the running for you guys.
More importantly the Impulse meters will now work. At the moment I'm just pushing out the RAW meter number which is an ever increasing counter. This is probably not what you need for graphing, you'd want a delta from the last value (I think), but its a place to start and its an improvement on what you have which is nothing. Lets see what happens.
ALSO: If it turns out sensors have their own temperature probe I can now very easily cope with this too. For the moment I'll assume <tempr> for a sensor is still the base unit adding information as per the existing logic.
Brett
Hi Brett,
The sensor is fitted in the box which is located on the OUTSIDE wall of my house.
Would be good to be able to properly graph the output, that's what I was hoping to acheive as you say lets see what happens when we start pushing the data.
I'll get my box upgraded 308.1 and let you know when this is done
Kind Regards,
Chris
Hi Brett,
OK HAH now upgraded to:
Build: 308/1.0
What now?
... so long as all you want to do is read the CC via USB/feed to cosm.
/etc_ro_fs/update-dev hah-beta.dbzoo.com
should get you the latest beta.
Derek.
Brett the <tempr> is indeed the 'whole house' temperature from the CC base unit. Individual sensors do not have temperature capabilty
Still not got around to fitting the PBC as yet. Do I just enter/etc_ro_fs/update-dev hah-beta.dbzoo.com at the command prompt?
Simple as that!
good luck
OK yes got the beta now...
Build: 308.1/1.0
What's next?
Fire up the XfxViewer and see what it says for sensor.9 as it reports in. If you are feeding this to COSM, which I think you said you were, then you should see what is happening on the graphs now with your usage. There should be no configuration change needed on your end as the issue was a code one.
Also validate that all the other feeds from currentcost are continuing to work as normal.
Brett
OK thanks I will try this when I get home later, I did try this on the 'non-beta' 308 and the sensor.9 was not visible ONLY sensor.1 was visible with the Watts On/Off messages in XfxViewer . I'll report back later.
OK good news! I didn't realise Sensor.9 has actually been pushing data since this morning when I upgraded my HAH to the beta version which is great is just a stream of ascending values so not too sure if I can get any useful graphing or synchronise my actual meter reading etc?
https://xively.com/feeds/56174/
Attachment | Size |
---|---|
Capture.PNG | 40.79 KB |
thanks was waiting for these...