Setting a contact sensor's value


(Leo Forney) #1

Hi all! I was wondering how do you set the value of a contact sensor like “open” or “closed” from a smartapp?


You can’t. The sensor reports its value to the hub. Most sensors don’t accept any incoming commands except a request to report their status. Or reconfigure their timing parameters and sensitivity.


You can use Mike Maxwell’s universal device type to have a switch appear to be an open/close sensor so you can create a virtual contact sensor that you can control, if that’s of any help.

(Leo Forney) #3

thanks that is exactly what I was looking for!