DIY Smart Home - Ep#7 | Smart Garage Door Solutions | How to with no fees or cloud



We added a bit of DIY automation to the garage door for minimal costs and of course without any fees or forced cloud control  Taking a deep dive for the new folks to the DIY Garage scene and for the semi-DIY'ers we also show some other easy solutions.

Parts


Tasmota Garage Setup & Rules (for easy copy and paste from the video)

switchmode2 1
poweronstate 0
setoption0 0
pulsetime1 10
Rule1 on switch2#state=0 do publish2 stat/%topic%/status closed endon on switch2#state=1 do publish2 stat/%topic%/status open endon

Sample YAML Config

cover:
  - platformmqtt
    name"Garage Door"
    command_topic"cmnd/GarageDoor/POWER"
    state_topic"stat/GarageDoor/status"
    availability_topic"tele/GarageDoor/LWT"
    qos1
    payload_available"Online"
    payload_not_available"Offline"
    payload_open"ON"
    payload_close"ON"
    payload_stop"ON"
    state_open"open"
    state_closed"closed"
    device_classgarage

Change the MQTT Topic of "GarageDoor" in all three spots if  you use a different topic in the Tasmota MQTT Config

How to Utilize a Wireless Door/Window Sensor (Wyze, Zwave, Zigbee, 433mhz etc)

Setup the wireless sensor in Home Assistant and verify it is working.  The switch2 rule and setup of the wired reed sensor will not be needed in Tasmota.  You will still need the pulsetime1 command done to only make the relay toggle for the short period to simulate the garage door button push.  

Create an automation in Home Assistant either via the YAML editor or Automation GUI as follows.  Edit the binary_sensor and MQTT topic name as needed. This will push the state of the wireless sensor state changes into MQTT which Home Assistant will then read as an all in one sensor/relay from the Garage Door.  A small but quick loop around trick!  

YAML Method

id'15912322314808'
  aliasReed2MQTT
  description''
  trigger:
  - entity_idbinary_sensor.wyzebenchreed
    platformstate
  action:
  - data:
      payload_template"{{ states.binary_sensor.wyzebenchreed.state }}"
      topicstat/GarageDoor/status
    servicemqtt.publish

GUI Method



YAML Config (small change to state payloads)

cover:
  - platformmqtt
    name"Garage Door"
    command_topic"cmnd/GarageDoor/POWER"
    state_topic"stat/GarageDoor/status"
    availability_topic"tele/GarageDoor/LWT"
    qos1
    payload_available"Online"
    payload_not_available"Offline"
    payload_open"ON"
    payload_close"ON"
    payload_stop"ON"
    state_open"on"
    state_closed"off"
    device_classgarage


-=-=-=-Products We Use/Recommend-=-=-=-

-=-=-=-Come chat with us!-=-=-=-

Comments

  1. Hey,

    I have subscribed to your channel on youtube and looked just the latest videos of smart garage door. I have a similar project where I am installing in my warehouse electric lock.
    But I'm having trouble getting the lock reed switch to work.

    I also have a tasmotised sonoff sv which is modified in isolated mode and the reed switch is connected to the gpio 14 pin.

    I know the reed switch works and I have the right cables connected because if I move the door then sonoff sv behaves the same as in your video before you modified the settings from the console.

    Can you help me get the reed switch to work in sonoff sv and get the information about the door status sent to the home assistant.
    Best regards
    Mika Nenonen

    ReplyDelete
    Replies
    1. That might not be bad to solve but probably easier to jump into the discord chat server and hit me up instead of the messaging back and forth here.

      Delete

Post a Comment

Popular posts from this blog

Tuya Convert 2.3 Update | Flash Tuya Smartlife Devices | No Soldering! | Remove the cloud | Custom Firmware

Tuya Convert 2 - Flash Tuya Smartlife Devices - No Soldering - Remove the cloud with Tasmota ESPHome

Smart Laundry Notifications with a Sonoff S31 & Home Assistant