Virtual switch/contact sensor?

I'm trying to integrate my MyQ garage door w/ Hubitat using IFTTT to get around not having a tilt sensor. I'm following this guide. Is it possible to create the combination virtual switch/contact sensor device that's required in Hubitat?

UPDATE:

From playing around, it seems like IFTTT can directly control virtual contact switches now. I got it working.

Care to share your method ?

I made a virtual contact switch, and then made an applet in IFTTT that opens the contact switch when the garage door opens, and closes it when the garage door closes.

I made this a while back while testing code that I never ended up using. I think it should work if all you need is a contact sensor and switch combo driver. It's been siting on my hub unused for a while but I uploaded to my github so it might actually see the light of day. Feel free to try it out.

https://raw.githubusercontent.com/stephack/Hubitat/master/drivers/Virtual%20Contact%20Sensor%20with%20Switch.groovy

2 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.