Does anyone have an example of a script that saves a device value, does an action and then sets the device back to the orginal setting?
I am using the HS Russound plugin. I would like to:
1st Script
1) Check and save the device setting for a source (e.g. device value 1 = "Media Server")
(it could be saved in a .ini file or other place)
2) Change the device setting to the output from HomSeeer (6 = "Computer" )
Event
3) Run Event, for example HS.Speak Blah Blah
Second Script
4) Check orginal device setting from 1st script
5) Return source to that device (e.g. 1 = "Media Server" )
Thanks!
I am using the HS Russound plugin. I would like to:
1st Script
1) Check and save the device setting for a source (e.g. device value 1 = "Media Server")
(it could be saved in a .ini file or other place)
2) Change the device setting to the output from HomSeeer (6 = "Computer" )
Event
3) Run Event, for example HS.Speak Blah Blah
Second Script
4) Check orginal device setting from 1st script
5) Return source to that device (e.g. 1 = "Media Server" )
Thanks!
Comment