This function sets a value that is associated with this device. Values are used to hold the dim level of a device. You can also use them as user variables in your scripts. Note that HomeSeer will overwrite this value if a command was received for this device. If you are going to use this as storage for your own information, pick a device that does not exist in your home. You can also use virtual devices (devices in the range "q -> z" or unit codes between 17 and 64).
Parameter: device
Type: string
Description: This is the device code, such as "A1".
Parameter: value
Type: long
Description: This is a numeric value, such as "50".
None.
sub main()
' set the dim value of device B2 to 60%
hs.SetDeviceValue "B2",60
end sub