Announcement
Collapse
No announcement yet.
Is there a way to set a global variable as a result of an event?
Collapse
X
-
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.HS4 Pro, 4.2.19.16 Windows 10 pro, Supermicro LP Xeon
Comment