Shelly 2.5 as a Door Closer #1559
bencharlesrhys
started this conversation in
MEPLHAA Scripts Collection
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After following this tutorial: https://homekitnews.com/2021/05/16/smart-home-door-closer-a-guide/ I wanted to run HAA so I wasn't dependant on HomeKit automations for the Door Reset function which can be problematic if the network is down or hubs aren't responding. I also wanted to use the Garage Door accessory type so Siri picked up "hey Siri, close bedroom door" correctly.
This creates 4 accessories:
The JSON functions like this:
It took some time for me to work this out so hoping others will be able to make use of it :)
JSON including 4th Accessory (to manually calibrate door close)
{"c":{"ct":12,"o":0,"l":0,"n":"Bedroom-Door","b":[{"g":2,"t":1}]},"a":[{"0":{"r":[{"g":4,"v":1,"i":14}],"m":[[2,1]]},"1":{"r":[]},"t":40,"vs":1,"s":0,"d":1,"c":14},{"0":{"m":[[3,1]]},"1":{},"i":15,"s":0},{"0":{"r":[{"g":15}]},"1":{"r":[{"g":15,"v":1}]},"b":[{"g":5,"p":0,"t":0}],"i":14,"s":0},{"0":{"r":[{"g":4}]},"1":{"r":[{"g":4,"v":1}]},"b":[{"g":13,"p":0,"t":0}]}]}
JSON with only 3 accessories (no calibration for door close):
{"c":{"ct":12,"o":0,"l":0,"n":"Bedroom-Door","b":[{"g":2,"t":1}]},"a":[{"0":{"r":[{"g":4,"v":1,"i":14}],"m":[[2,1]]},"1":{"r":[]},"t":40,"vs":1,"s":0,"d":1,"c":14},{"0":{"m":[[3,1]]},"1":{},"i":15,"s":0},{"0":{"r":[{"g":15}]},"1":{"r":[{"g":15,"v":1}]},"b":[{"g":5,"p":0,"t":0}],"i":14,"s":0}]}
I tried to flash the Shelly 2.5 OTA with HAA using MGOS to Tasmota, but I couldn't get it to join my wifi network. Decided to hard flash HAA through the serial ports on the back similar to here: https://michlstechblog.info/blog/tasmota-flashing-and-setup-a-shelly-2-5/. Dupont cables don't fit, so I soldered some cutoffs from resistors to the ends of the Dupont cables. Needed to short GPIO0 to GND when powering up to enter flash mode of the Shelly 2.5 and flashed using NodeMCU PyFlasher
Beta Was this translation helpful? Give feedback.
All reactions