Comfort  Automation/ Security System Forums Home
Home Search search Menu menu Not logged in - Login | Register

Sensors and Counters
 Moderated by: admin
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Sunday Feb 8th, 2009 12:35 pm
   PM  Quote  Reply 
1st Post
juwi_uk
Member


Joined: Friday May 25th, 2007
Location: Newbury, United Kingdom
Posts: 1255
Status: 
Offline

  back to top

Hi,

I have temperature monitored by a SCS and temperature monitored by the Smartfit UCM card.

Smartfit stores it's temperature in a counter in Celcius.

SCS stores it's temperature in a sensor register in Fahrenheit.

We can't convert from one to the other in a response as no divide/multiply calcs  (presumably difficult to implement as integer counters rather than decimal counters).

Looked through both SCS and Smartfit docs and whilst you can change the scale the keypads report on,  I cant see any way to change what the registers/counters store.

So how do I compare the two temperatures?  In my example above the SCS is measuring outside temp and Smartfit the inside Central Heating room temp. Want to know the difference!

J

 

Last edited on Sunday Feb 8th, 2009 12:36 pm by juwi_uk



 Posted: Monday Feb 9th, 2009 11:57 am
   PM  Quote  Reply 
2nd Post
admin
Administrator


Joined: Saturday Mar 3rd, 2007
Location: Singapore
Posts: 1200
Status: 
Offline

  back to top

We will introduce a beta firmware soon which will have new actions to announce any value
There will also be an action to convert a value from F to C
hence you could have the follwoing actions

Get Sensor Register 6
Convert to C
Announce in Degrees

This will replace all the If /Then lines that you had before




 Posted: Monday Feb 9th, 2009 12:20 pm
   PM  Quote  Reply 
3rd Post
juwi_uk
Member


Joined: Friday May 25th, 2007
Location: Newbury, United Kingdom
Posts: 1255
Status: 
Offline

  back to top

Thanks.  Sounds great.  I look forwards to having the opportunity to test this.

Regards

Julian



 Posted: Saturday Feb 14th, 2009 08:44 am
   PM  Quote  Reply 
4th Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 5498
Status: 
Offline

  back to top

Ultra II 5.166 beta firmware is now available for testing, see http://www.comfortforums.com/view_topic.php?id=1352&forum_id=60
This allows the temperature to be converted from deg F to deg C and announced
Note that this is a version after the release firmware 5.164

This may overcome any shortcomings with the smartfit temperature readings not available when heating is off



 Posted: Saturday Feb 14th, 2009 08:54 am
   PM  Quote  Reply 
5th Post
juwi_uk
Member


Joined: Friday May 25th, 2007
Location: Newbury, United Kingdom
Posts: 1255
Status: 
Offline

  back to top

Cool, I'm going to test this later today and let you know how I get on.

J



 Posted: Saturday Feb 14th, 2009 09:08 am
   PM  Quote  Reply 
6th Post
juwi_uk
Member


Joined: Friday May 25th, 2007
Location: Newbury, United Kingdom
Posts: 1255
Status: 
Offline

  back to top

Any chance you can publish the "What's fixed" list for the 5.164 firmware too (even if you dont want to post it yet) so we can see what is fixed.

Last edited on Saturday Feb 14th, 2009 09:09 am by juwi_uk



 Posted: Saturday Feb 14th, 2009 09:14 am
   PM  Quote  Reply 
7th Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 5498
Status: 
Offline

  back to top

See here
http://www.cytech.biz/Default.aspx?cmd=sQ0OYE9X66w%2b0P%2bAcFsmAI3j73Rwtfrj&fileid=214&dcid=1&pageindex=



 Posted: Saturday Feb 14th, 2009 03:49 pm
   PM  Quote  Reply 
8th Post
juwi_uk
Member


Joined: Friday May 25th, 2007
Location: Newbury, United Kingdom
Posts: 1255
Status: 
Offline

  back to top

Hi

I'm trying to correct the problem with the 69 being set in the counter (counter 19) by Smartfit when the heating is off. My base offset is 16.

If Counter RoomTempSP = 69 Then
    Copy Counter SaveRoomSP To RoomTempSP ! Replace wrong setting
Else
    Copy Counter RoomTempSP To SaveRoomSP ! Save correct setting
End If

So under normal situation the Room Temperature setpoint is stored in "RoomTempSP" and for my system normally reads 21 when heating is on.  When off it goes to 69 which is incorrect as should always be 21!!.

So here I'm trying to copy the counter to a SAVE counter to be used later if the counter flips to 69.  The idea is that I make this a response attached to the Smartfit (RoomTempSP) counter so it corrects itself. {Update:  Actually thinking about this without the benefit of the 3 Gin and Tonics I had at the time yesterday then this would not be such a good idea as it'll loop forever if i did this?}

Trouble is the "SaveRoomTemp" counter value is always zero (after the response is run) and the Smartfit counter still shows 69.

What am I doing wrong? (I'm using beta firmware 5.166)

Last edited on Sunday Feb 15th, 2009 12:25 pm by juwi_uk



 Posted: Sunday Feb 15th, 2009 12:57 pm
   PM  Quote  Reply 
9th Post
juwi_uk
Member


Joined: Friday May 25th, 2007
Location: Newbury, United Kingdom
Posts: 1255
Status: 
Offline

  back to top

OK, with a clear head I fixed this now.

Just created a new counter (RoomTempSP),  renamed the normal Smartfit Counter (to RoomTempSPOld) and created this response:

If Counter RoomTempSPOld <> 69 Then
    Copy Counter RoomTempSPOld To RoomTempSP ! Save correct setting
End If


Added this response as a CounterResponse for RoomTemSPOld so that every time Smartfit updates this counter the response also updates my modified one.

I show the modified one as a feedback in the control menu.

Was simple, dont know why I didn't think of this earlier (the G+T factor I guess)!:?.

Thanks.

J

Last edited on Sunday Feb 15th, 2009 01:19 pm by juwi_uk



 Current time is 02:14 am
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems