Trying to do a very simple script do do the following.
1) compare the humidity from the Nest thermostat to the humidity of the bathroom.
2) Record the Nest Humidity every hour to a virtual device
I am completely new to scripting. here is what I started with but it does not change the value on the virtual device.
Sub Main(params as object)
' sets value of ambient humidity Device
hs.SetDeviceValue(421,hs.DeviceValueEx(419))
End Sub
3) after this I would like to compare the Master Bath humidity to the NEst value when the master bath value changes. If it is over a threshold value i would run an event.
No idea how to do this. Want to learn. Any help would be appreciated.
Jason
1) compare the humidity from the Nest thermostat to the humidity of the bathroom.
2) Record the Nest Humidity every hour to a virtual device
I am completely new to scripting. here is what I started with but it does not change the value on the virtual device.
Sub Main(params as object)
' sets value of ambient humidity Device
hs.SetDeviceValue(421,hs.DeviceValueEx(419))
End Sub
3) after this I would like to compare the Master Bath humidity to the NEst value when the master bath value changes. If it is over a threshold value i would run an event.
No idea how to do this. Want to learn. Any help would be appreciated.
Jason
Comment