Prior to the latest release, I used the following hs.SetDeviceValueByRef(452, hs.DeviceValueEx(1257), True) in a script which writes a virtual device with the value of the rain daily device. Now the virtual device doesn't get the value assigned.
I can write the log with &hs.writelog("Test", hs.DeviceValueEx(1257)) and it prints out the value.
Am I suffering from misfired neurons here? I don't get it.
Robert
EDIT: Sure looks like I had.. I needed to write the string first.
hs.SetDeviceString (452, "<img src='\Images\MyImgs\rain.gif' align=absmiddle>" & "<font size = 2 color='Blue'> Rain Today: " & hs.deviceValueEX(1257) & " mm", True)
I can write the log with &hs.writelog("Test", hs.DeviceValueEx(1257)) and it prints out the value.
Am I suffering from misfired neurons here? I don't get it.
Robert
EDIT: Sure looks like I had.. I needed to write the string first.
hs.SetDeviceString (452, "<img src='\Images\MyImgs\rain.gif' align=absmiddle>" & "<font size = 2 color='Blue'> Rain Today: " & hs.deviceValueEX(1257) & " mm", True)