I'm trying to write a script that will take a device Value from a virtual device I setup and put it into a command script for my Amp.
This is the script. I set X as the volume value that I need to get from my virtual device.
So I can't figure out how to select my home seer device I need to value from and how to have this read the value.
This amp can have a volume of 1-36 and I was hoping to set it up on a slider. Currently I only have the slider on 1 - 3 just for test purposes. Previously I setup my system to use events to just select a few different Volumes.
Sorry for the bad scripting. at the top. This is my first time trying to program anything. Also I have no idea how to show the script in the message.
Thanks,
EDIT:
Ok I solved my problem.
I used the coding :
Dim DevRef as string
DevRef = hs.DeviceExistsCode("A19")
Vol = hs.DeviceValue(DevRef)
This is the script. I set X as the volume value that I need to get from my virtual device.
So I can't figure out how to select my home seer device I need to value from and how to have this read the value.
This amp can have a volume of 1-36 and I was hoping to set it up on a slider. Currently I only have the slider on 1 - 3 just for test purposes. Previously I setup my system to use events to just select a few different Volumes.
Sorry for the bad scripting. at the top. This is my first time trying to program anything. Also I have no idea how to show the script in the message.
Thanks,
EDIT:
Ok I solved my problem.
I used the coding :
Dim DevRef as string
DevRef = hs.DeviceExistsCode("A19")
Vol = hs.DeviceValue(DevRef)