This is my first forum post and I was wondering if anyone has ever used voltage input to declare whether a switch is on the on or off position in the smartthings app.
I am currently using mimolite in momentary switch position to turn my computer on and off but the problem that I’m having is that since the switch is momentary smartthings will say the computer is off when I have turned it on. I noticed that the voltage detected when the pc is off is 2.3v and 3v when the pc is on. I was hoping to take advantage of this to indicate in the smartthings app such that 3v would show the switch as on and when switches it would send an on signal to the switch to turn the pc off. And then when it is not 3v it would show switch as off and smartthings would send an on signal to switch the pc on.
I have tinkered with the device handler code but have had no luck in trying to get this code up and running at all. I am fairly new to the device handlers language at the moment.