upstatemike
Senior Member
I'm using a simple Homeseer script to copy data from my weather station into variables in my Stargate. For example, for humidity I use:
sub main()
hs.setDeviceValueByName("JDS vwshumid"),hs.DeviceValueByName("VWS Outsidehumidity")/100
end sub
The JDS and VWS represent the "room" that these Homeseer devices are in. The VWS plugin I am using has changed the default room for weather station devices to "Wx Station" and that space in the name seems to be messing up the syntax of the script. I could manually change the room name back to VWS but that is not optimal because every time I need to re-create the devices for some reason they are going to revert back to the default room name and I will have to go through a major manual process of resetting them again. It would be better to change the script to work with the default room name but I can't seem to find the right combination of quotes and/or parenthesis to make it work. Anybody have a suggestion for the correct syntax to replace "VWS" with "Wx Station" in this example?
sub main()
hs.setDeviceValueByName("JDS vwshumid"),hs.DeviceValueByName("VWS Outsidehumidity")/100
end sub
The JDS and VWS represent the "room" that these Homeseer devices are in. The VWS plugin I am using has changed the default room for weather station devices to "Wx Station" and that space in the name seems to be messing up the syntax of the script. I could manually change the room name back to VWS but that is not optimal because every time I need to re-create the devices for some reason they are going to revert back to the default room name and I will have to go through a major manual process of resetting them again. It would be better to change the script to work with the default room name but I can't seem to find the right combination of quotes and/or parenthesis to make it work. Anybody have a suggestion for the correct syntax to replace "VWS" with "Wx Station" in this example?