Jump to content

Program Variables


ckubitz

Recommended Posts

Posted

It would be very useful to have the ability to create and use variables in programs. For example, query a dimmer and save the value for future 'standard' dimmer level.

 

A second request would be for a standard 'C' type 'case statement' using a variable to switch processing options.

 

Regards,

 

Carl

  • 2 months later...
Posted

+ 1 for variables. It would be nice to persist state somewhere other than on a physical device. Even if it was as primitive as a fake device with an on/off state. I like to have a current state for my house, e.g. Morning, Day, Evening, Sleep, Vacation, Emergency. I can use the state in programs to determine how the response to certain actions should proceed.

 

As far as a case statement, any ability to have nested IFs or Else Ifs would work. Else Ifs would also work in your GUI.

Posted

Michel,

 

Thanks for that. I did see that in another post and that will work in the near term. Instead of one state variable, I can have 6 programs for each state, and in the "Then" action section of each program, they can run the 'Else" action section of each of the other states, making the states exclusive. So running Sleep State Then will set Sleep State program to true, as well as set all the other states to false.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...