No announcement yet.

Copy value from Rain device to virtual device

  • Filter
  • Time
  • Show
Clear All
new posts

    Copy value from Rain device to virtual device

    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.


    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)
    HS3PRO as a Fire Daemon service, Windows 2016 Server Std Intel Core i5 PC HTPC Slim SFF 4GB, 120GB SSD drive, WLG800, RFXCom, TI103,NetCam, UltraNetcam3, BLBackup, CurrentCost 3P Rain8Net, MCsSprinker, HSTouch, Ademco Security plugin/AD2USB, JowiHue, various Oregon Scientific temp/humidity sensors, Z-Net, Zsmoke, Aeron Labs micro switches, Amazon Echo Dots, WS+, WD+ ... on and on.