Jump to content
c4forums | The Control4 Community

Editing variables


South Africa C4 user

Recommended Posts

Having the ability to change variables easily (at least Boolean and numbers) from the Touchscreen would be a huge step forward.  

Currently I use StartHere! for this and it is great but as StartHere! seems to be a thing of the past, A decent variable editor would be great! Ideally this should allow one to link a string to numeric variable values (should be easy to do using a basic array). The reason this is necessary is that I (and presumably many others) often use numeric variables that code things. For instance, I have a variable called alarm mode which works something like the following:

0 = alarm off

1 = normal mode (alarm turns on at 10pm and off at 7 am)

2 = early mode (alarm turns on at 10pm and off at 6am)

3 = holiday mode (alarm turns on at 7pm and off at 7am and stays on at weekends

Ideally a variable editor needs to allow one to link the above strings to the values so that one can see what one is setting. I can do all this with StartHere! but want to get rid of my V2 Touchscreens and cannot at this stage :-(. I have kept 2 of my 4 old Touchscreens (primarily due to the lack of ability to use bookmarks and because I use StartHere as a very fancy, easy to understand - due to a complex setup - variable editor).

Link to comment
Share on other sites


Unless I don't understand what you're trying to achieve, this can be done by having custom buttons in the home screen that change a variable to any value you want.

Alarm Off= set variable alarm mode to 0.

Normal= set variable alarm mode to 1

Early mode= set variable alarm mode to 2

 

You create a macro for each mode

Then you create an event,

when variable alarm mode changes

if variable alarm mode =1
execute macro normal mode

If variable alarm mode=2
execute macro early mode

if variable alarm mode=3
execute macro holiday mode

 

Personally, I would use string variables, but numbers work as well.

 

 

 

Link to comment
Share on other sites

  • 2 weeks later...
On May 10, 2016 at 3:35 AM, etrochez said:

Unless I don't understand what you're trying to achieve, this can be done by having custom buttons in the home screen that change a variable to any value you want.

Alarm Off= set variable alarm mode to 0.

Normal= set variable alarm mode to 1

Early mode= set variable alarm mode to 2

 

You create a macro for each mode

Then you create an event,

when variable alarm mode changes

if variable alarm mode =1
execute macro normal mode

If variable alarm mode=2
execute macro early mode

if variable alarm mode=3
execute macro holiday mode

 

Personally, I would use string variables, but numbers work as well.

 

 

 

Quite correct but I have around 150 variables that I currently control from StartHere! using 6 main screens that I have custom designed and have their own sunscreens... The problem with having so many variables is that changing them all using custom buttons would take many many rooms worth of custom buttons and it is not easy to make logical sense of the 150 in lists of 6... I have laid them all out logically on StartHere! Screens with commentary in the StartHere! dialog box which means that anyone (including my wife and kids) can navigate through these screens and change things logically...

 

Link to comment
Share on other sites

  • 3 weeks later...

if you have keypads colored lights would be great indicator

touchscreens can receive notifications but will eventually disappear.

also a room with fake lights could be used to indicate status

i think chowmain even has a security driver that may be able to fake modes

Link to comment
Share on other sites

On June 7, 2016 at 0:25 AM, Matt Lowe said:

if you have keypads colored lights would be great indicator

touchscreens can receive notifications but will eventually disappear.

also a room with fake lights could be used to indicate status

i think chowmain even has a security driver that may be able to fake modes

Thanks... I will need to look into the Chowmain driver

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...