Announcement

Collapse
No announcement yet.

Is there a way to set a global variable as a result of an event?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is there a way to set a global variable as a result of an event?


  • #2
    I have never seen an event action that will "set a device value to that of a global variable". I would be curious where you saw this.

    Global variables are not durable. They must be declared each time HomeSeer starts up. You are better off using a virtual device. Then you can set a virtual device to a device or the reverse. You will need to use Spud's Easy Trigger to do this.

    If you want to use a global variable, you will need a script that will declare the variable, then save the device's value to the global variable. Then you will need a separate function or a new script to write the global variable back to the device. This will also require using CAPI control for the devices.
    Randy Prade
    Aurora, CO
    Prades.net

    PHLocation - Pushover - EasyTrigger - UltraECM3 - Ultra1Wire3 - Arduino

    Comment


    • #3
      Clever use of a virtual device! I'll do that!

      Comment

      Working...
      X