Current cost gas smart released

97 replies [Last post]
g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011

http://www.currentcost.com/gasmart.html

 

no good for me as i have Oil :(

AndrewJ
Offline
United Kingdom
Joined: 22 Nov 2012
thanks was waiting for

thanks was waiting for these...

mark_baldwin
Offline
Blackburn, United Kingdom
Joined: 19 May 2012
Gas Smart

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 :)

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
Cool! Does anyone know if you

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?

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
don't see why not

Its picked up by current cost therefore HAH can pick it up and hence it can be sent to cosm (or wherever the hah can send it)

 

Dean

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
OK great yeah makes sense!

OK great yeah makes sense!

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
How to make sense of the data?

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?

AttachmentSize
xAPMessageHistory.txt 1.8 KB
Capture.PNG 41.2 KB
sum.PNG 10.2 KB
events.PNG 93.45 KB
g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
doubt i can help but

doubt i can help but what does the cc display?

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
No readings are being

No readings are being displayed on the CC screen

mark_baldwin
Offline
Blackburn, United Kingdom
Joined: 19 May 2012
How did you connet to the CC.

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

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
OK looks like I may need to

OK looks like I may need to do more to pair it up, will give it another go later

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
Mark are you actually pushing

Mark are you actually pushing data to Cosm as well?

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
I think I am being a bit

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?

 

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
do you have an envi or envir?

from cc website:-

 

All existing EnviR and NetSmart owners can now monitor gas consumption by using our GaSmart technology. An easy to install sensor, simply clips onto the front of your gas meter and sends meter read information to your Current Cost online Dashboard. Depending on the meter and its internal construction Current Cost have several options available.

 

the cc128 is an envi not an envir.

 

I have emailed cc for you and asked if the gas thingy is compatible with the envi or just the envir

 

there are a few ending on fleabay shortly

http://www.ebay.co.uk/sch/i.html?LH_Auction=1&_sacat=0&_from=R40&_nkw=e-...

 

 

Dean

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
From cc

A reply to ticket #775200 has been added.

 

Hello Sir,

 

The GaSmart is compatible only with the Envi R and NetSmart bridge.

 

Kind Regards,

 

Elliot Dix.

 

 

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
Thanks for that, they look

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.

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
If you just need the display

I may be able to help as i have one i was thinking of fleabaying.

Brand new still with protective screen.

Branded eon not current cost but hey its still an Envir.

I am open to offers :)

Dean

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
Hi Dean, did you get my email

Hi Dean, did you get my email about your Envir?

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
 OK I’ve not hooked up a new

 

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?

 

AttachmentSize
EnviR-Gas.PNG 79.39 KB
DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
Does anyone have any idea how

Does anyone have any idea how I can reteive/read the data for the EnviR CC say that it is stored as XML?

mark_baldwin
Offline
Blackburn, United Kingdom
Joined: 19 May 2012
data

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

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
Thanks Mark, do you know if I

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?

mark_baldwin
Offline
Blackburn, United Kingdom
Joined: 19 May 2012
HAH CC

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

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
Are you proposing to capture

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?

brett
Offline
Providence, United States
Joined: 9 Jan 2010
The xap-currentcost program

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

AndrewJ
Offline
United Kingdom
Joined: 22 Nov 2012
Data is captured and will

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

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
Hi Brett!Would be great if I

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

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Well the sensors for

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

mark_baldwin
Offline
Blackburn, United Kingdom
Joined: 19 May 2012
Gas smart

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

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
How do I get the XML off the

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? 

mark_baldwin
Offline
Blackburn, United Kingdom
Joined: 19 May 2012
XML 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

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
yes software is also avalible
DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
I can't get the USB to work

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?

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
have you installed correct device driver?

http://www.currentcost.com/software-downloads.html

Option a windows 7 if using a white ended cable

 

http://currentcost.com/download/InstallingthedriversfortheCurrentCostDat...

 

"Please run the driver installer and reboot before connecting the USB Data Cable to a spare USB port on your PC."

 

start right click my computer select manage then device manager, bet your com port has a yellow symbol over it.

 

Dean

derek
Offline
Glasgow, United Kingdom
Joined: 26 Oct 2009
Use your HAH

The correct USB drivers are already on your HAH unit. You could use that to grab some sample data.

Derek

brett
Offline
Providence, United States
Joined: 9 Jan 2010
I also vote for just using

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

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
OK so I SSH onto HAH please

OK so I SSH onto HAH please can you tell me how to  Shutdown the xap-currentcost daemon first?

garrydwilms
Offline
United Kingdom
Joined: 31 Mar 2011
Killall xap-currentcost

killall xap-currentcost

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
OK got some XML (attached) my

OK got some XML (attached) my sensor 9 <imp> seems to be getting data from the GaSmart

AttachmentSize
CC-XML.txt 29.36 KB
brett
Offline
Providence, United States
Joined: 9 Jan 2010
Got that data thanks.Just one

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

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
Hi Brett,The sensor is fitted

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

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
Hi Brett,OK HAH now upgraded

Hi Brett,

OK HAH now upgraded to:

Build: 308/1.0

What now?

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
That does not look right

308/1.0

 

the 1 bothers me as that means its not seeing the HAH pcb, have you connected it yet?

 

Also 308.1 is a BETA version, others will be able to advise how to upgrade to that:-

 

Telnet/ssh in and cd to /etc/init.d

 

cd /etc/init.d

then

./update

 

will only put you on a "released" version and i cannot remember how to get a Beta (sorry)

 

Dean

 

derek
Offline
Glasgow, United Kingdom
Joined: 26 Oct 2009
No need for the PCB

... 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.

mark_baldwin
Offline
Blackburn, United Kingdom
Joined: 19 May 2012
tempr

Brett the <tempr> is indeed the 'whole house' temperature from the CC base unit. Individual sensors do not have temperature capabilty

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
Still not got around to

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?

garrydwilms
Offline
United Kingdom
Joined: 31 Mar 2011
Yes

Simple as that!

 

good luck

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
OK yes got the beta

OK yes got the beta now...

Build: 308.1/1.0

What's next?

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Fire up the XfxViewer and see

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

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
OK thanks I will try this

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.

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
 OK good news! I didn't realise Sensor.9 has

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/

AttachmentSize
Capture.PNG 40.79 KB
Hardware Info