Posts: 1,255
Threads: 219
Joined: May 2007
Reputation:
0
02-08-2009, 01:35 PM
(This post was last modified: 02-08-2009, 01:36 PM by juwi_uk.)
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
Posts: 1,200
Threads: 262
Joined: Mar 2007
Reputation:
0
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
Posts: 1,255
Threads: 219
Joined: May 2007
Reputation:
0
Thanks. Sounds great. I look forwards to having the opportunity to test this.
Regards
Julian
Posts: 1,255
Threads: 219
Joined: May 2007
Reputation:
0
Cool, I\'m going to test this later today and let you know how I get on.
J
Posts: 1,255
Threads: 219
Joined: May 2007
Reputation:
0
02-14-2009, 10:08 AM
(This post was last modified: 02-14-2009, 10:09 AM by juwi_uk.)
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.
Posts: 1,255
Threads: 219
Joined: May 2007
Reputation:
0
02-14-2009, 04:49 PM
(This post was last modified: 02-15-2009, 01:25 PM by juwi_uk.)
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)
Posts: 1,255
Threads: 219
Joined: May 2007
Reputation:
0
02-15-2009, 01:57 PM
(This post was last modified: 02-15-2009, 02:19 PM by juwi_uk.)
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