Smartthings garage door smartapp9/26/2023 ![]() It also sends out a message to "smartthings//contact" topic when the physical magnetic contact switch is activated.The controller subscribes to "smartthings//switch" topic to activate the relay connected to the garage switch.It is flashed with a custom Espurna based firmware. It controls the garage opener and also acts as the open sensor. It has plenty of GPIO pins and is quite cost effective. The controller in my case was a ESP-12E module of ESP8266 microchip. This is why I had to modify the SmartThings MQTT Bridge. My open sensor was actually a virtual device based on this device handler. There are 3 devices involves - the XIP Virtual Garage Door based device and 2 contact sensors. Scroll down to My Apps and select XIP Virtual Garage Door, pick contact sensors and virtual garage door device and you are set. Launch the Classic SmartThings mobile app, go to SmartApps, add a SmartApp.Go to My SmartApps, click new SmartApp, use From Code and paste the raw app code.Give it a Name, Device Network id, Type "XIP Virtual Garage Door", Version "Published" and Hub. Go to My Devices, create a new device.Go to My Device Handlers, click Create New Device Handler, use From Code and paste the raw device handler code.If the door is opened through the app, then a verification check is done after a configurable amount of time. It syncs the device, if the door was opened through the physical switch. Virtual door device - this would be the XIP Virtual Garage Door device.Two contact sensor devices, one indicating completely opened state and the other closed state.The app is the brains linking the physical sensors and the virtual device. Smart App ( Two Sensor Garage Door Controller) if state=opening then actuate(), close() in 1 second.if state=closed/closing then no action needed.if state=closing then actuate(), open() in 1 second.if state=open/opening then no action needed.If the door is already opening/closing then pressing the opener cancels the current operation and pressing again reverses the operation. The standard push opener either opens or closes the door: It also exposes a custom command to allow interaction with the smart app. The main capabilities which it implements are Door Control and Switch. This represents a virtual garage door device. SmartThings Device Handler ( XIP Virtual Garage Door) This also gave me a chance to learn more about SmartThings structure. So, I wrote my own set of device handler and app. I had already interfaced some ESP8266 devices and exposed SmartThings devices to HomeAssistant using SmartThings MQTT Bridge. I found some virtual garage door controllers but just could not get them working with the standard push openers in my setup. The firmware is based on Espurna with many things turned off. ![]() FeaturesĪn ESP8266 device (ESP12 in my case) connects to the existing garage opener through a relay and receives input from 2 sensors (open sensor and closed sensor). So it just depends on why you want to have it.This project implements a garage door opener controller based on a ESP8266 device interfaced through SmartThings. In that case you might even bypass smartthings presence all together and just turn the virtual device on from the other platform. Or a lot of people will use a virtual presence sensor as a proxy so they can take the presence state from a different platform, as mentioned, that into smartthings, so they can then trigger routines off it. The point is you might want to have a Virtual presence sensor just as a Troubleshooting Device, so you can easily see what smartthings thinks your current presence is based on its own calculations. How to Use a Meross Plug to Use HomeKit Presence to Trigger ST Routines Since the OP mentioned iPhones, if Apple’s HomeKit presence is reliable and smartthings presence is not, you can also use a physical device visible to both platforms as a proxy, which is what I do. Presence in 2023, including multiple members and multiple locations There is a whole topic dedicated to location tracking and presence. What some people are doing is using the location tracking of another app such as Alexa or IFTTT and then changing the state of a ST virtual contact sensor in that app to signal their presence/absence. If you are using the location tracking of the ST app and it’s not reliable, then simply adding a virtual switch isn’t going to do anything about that. If what I saw about a virtual switch in another post is correct, it would be helpful to know if ST knows if I’m home or away. It doesn’t always work, on a motorcycle, it would be nice if it Always worked. When we arrive home, if the door is closed, open it. My issue is, I have two routines, one when we leave the house, if the garage door is open, close it. In the New IDE, where and how specifically, can I create a virtual switch for present sensor for my iPhones?
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |