I am trying to turn on a switch in Hubitat using the following single script command:
&IF (hs.devicevalueex(970) - hs.devicevalueex(971))>0 THEN hs.SetDeviceValueByRef 988,255,true
The switch turns on in HS4 but not in Hubitat. When I turn the switch on and off manually in the HS4 device interface it works. Any thoughts on what else I need to do to activate this switch? The device is set as a virtual switch in Hubitat. Thanks.
&IF (hs.devicevalueex(970) - hs.devicevalueex(971))>0 THEN hs.SetDeviceValueByRef 988,255,true
The switch turns on in HS4 but not in Hubitat. When I turn the switch on and off manually in the HS4 device interface it works. Any thoughts on what else I need to do to activate this switch? The device is set as a virtual switch in Hubitat. Thanks.
Comment