Comfort  Automation/ Security System Forums Home
Home Search search Menu menu Not logged in - Login | Register
Comfort Automation/ Security System Forums > Software Applications > iOS Apps > Problem with Control in new G2 iOS application

Problem with Control in new G2 iOS application
 Moderated by: slychiu
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Saturday Oct 18th, 2014 05:20 pm
   PM  Quote  Reply 
1st Post
cc_uk
Member
 

Joined: Friday Mar 28th, 2014
Location:  
Posts: 66
Status: 
Offline

  back to top

I have loaded the new Comfort G2 iOS application onto an iPhone 5S running iOS 8.0.2

I have only one comfort profile defined and the config loads into that with no problem.

When I go into Control I have some counters I read which are temperature sensors.   However these appear as sliders, meaning I can change the value.  That doesn't make sense since in this instance the counter should be read only since it's a temperature value.

I can see the value in being able to change counter values, but think there should be a way in the cclx file to mark a counter as read only when it is a sensor value, as changing those via the application is not valid.



 Posted: Sunday Oct 19th, 2014 05:48 am
   PM  Quote  Reply 
2nd Post
ident
Administrator


Joined: Wednesday Aug 9th, 2006
Location: Singapore
Posts: 3493
Status: 
Offline

  back to top

Temperature and sensor values should be saved in Sensors in Comfort
Counters should be for dimming levels, setpoints etc that can be changed

It should be not difficult to read the values into sensors instead of counters



 Posted: Sunday Oct 19th, 2014 02:51 pm
   PM  Quote  Reply 
3rd Post
cc_uk
Member
 

Joined: Friday Mar 28th, 2014
Location:  
Posts: 66
Status: 
Offline

  back to top

I'll try to report on sensor values directly, however I want to have temperature in degrees C in the control menu - not sure if I can use a sensor value and convert to C ?

Also there is another counter which I use to count an event that occurs - again that should be read only from the iOS app, not changeable, since it is an event count, not a value that should be changeable.



 Posted: Sunday Oct 19th, 2014 06:14 pm
   PM  Quote  Reply 
4th Post
slychiu
Administrator


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

  back to top

Yes if yiour value is in F you can convert to C. There is an action Convert F to C (and vice versa)

The slider appears only if there are no actions in the control menu eg On or OFF, so if you add some action keys then the slider should not appear (I think)



 Posted: Sunday Oct 19th, 2014 06:23 pm
   PM  Quote  Reply 
5th Post
cc_uk
Member
 

Joined: Friday Mar 28th, 2014
Location:  
Posts: 66
Status: 
Offline

  back to top

OK I'll try to define a null action to see if that makes the slider go away.

When defining a Feedback I can select counter (which is set by an action to be the temperature sensor value converted from F to C) but if I define the feedback to be a sensor I have no way to convert it to C.

Last edited on Sunday Oct 19th, 2014 06:23 pm by cc_uk



 Posted: Sunday Oct 19th, 2014 08:11 pm
   PM  Quote  Reply 
6th Post
cc_uk
Member
 

Joined: Friday Mar 28th, 2014
Location:  
Posts: 66
Status: 
Offline

  back to top

also I have a control menu option that does have an action, that also has a counter as feedback - the actions don't work any longer.... unable to access them



 Posted: Monday Oct 20th, 2014 05:57 am
   PM  Quote  Reply 
7th Post
slychiu
Administrator


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

  back to top

When defining a Feedback I can select counter (which is set by an action to be the temperature sensor value converted from F to C) but if I define the feedback to be a sensor I have no way to convert it to C.
You can convert a value from F to C and save to sensor as shown below

Get Counter Counter000 ( or get the value from anywhere)
Convert F to C
Load Sensor Sensor00


also I have a control menu option that does have an action, that also has a counter as feedback - the actions don't work any longer.... unable to access them
I am not sure what you mean, can you show a screenshot or exammple



 Posted: Monday Oct 20th, 2014 11:58 pm
   PM  Quote  Reply 
8th Post
cc_uk
Member
 

Joined: Friday Mar 28th, 2014
Location:  
Posts: 66
Status: 
Offline

  back to top

Thanks I have tried that using a sensor to store the value instead of a counter and that does work as hoped - in that there is a value shown in the iOS application as opposed to a slider.

This seems to have also allowed the Aid conditioner control to work that wasn't before.

I do have a further question though - I have a counter that counts the number of times a given event has occurred which I need to display in the iOS app.   

That of course displays as a slider and I can therefore change that value, again not as I hoped.   I guess I could write the value back to a sensor instead of a counter and use that.  However this isn't really a sensor.    So What is your recommendation for supporting this.

I do still think a check box available in the Control menu in Comfigurator that could mark a counter response as read only in the CCLX file and thus to the iOS app would address this.

Last edited on Tuesday Oct 21st, 2014 12:12 am by cc_uk



 Posted: Wednesday Oct 22nd, 2014 06:15 am
   PM  Quote  Reply 
9th Post
slychiu
Administrator


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

  back to top

You can avoid showing the slider if you program actions

eg

Control Key Name = Counting, Feedback  Type = Counter
 Action Key 0 = xxx
Action key 1 = yyy

The action keys do nothing, the response can be null



In the app, the control page will show

Counting           View Actions

It is not the prettiest but it prevents the slider from apearing

We will look at a better solution in the future



 Current time is 09:57 am
Comfort Automation/ Security System Forums > Software Applications > iOS Apps > Problem with Control in new G2 iOS application
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems