Temperature, Hunidity, Pressure and Garage Door Relay

Hello

I’m looking for some advice on the type of device I can install that will give me temperature, humidity, barometric pressure and also act as a garage door relay / opener / closer. It must be able to plug into an electrical outlet as once I have it installed I don’t want to break out a ladder and change out the batteries. It will be installed at the peak of the garage roof. It can run Tasmota or Zigbee or ESPHome. I realize that to accomplish this might take two devices.

Does anyone have a suggestion?

Thanks in advance for any help that can be provided.

Hello! I have built something that closely matches what you are looking for. I used Esphome on an ESP32, a step-down transformer to convert 110v to 5v, 2 relays for the garage doors, 2 rotary encoders to track the position of the doors, and an i2c temp/humidity sensor (htu21d) that can be replaced with a bme280 if you require pressure readings. The system has been working perfectly for the past 12 months
Here is my esphome program:

esphome:
  name: garage

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "VT1QcmKdxxxxxxxxxxxxxxxxxxxxxxxxxw8VUNuv37keCcak="

ota:
  password: "e2xxxxxxxxxxxxxxxxxxxxxxxxxxx44"

wifi:
  ssid: "MyWifiSSID"
  password: "MyWifiPassword"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Garage Fallback Hotspot"
    password: "0byloq"

captive_portal:

bluetooth_proxy:
  active: true

i2c:
  sda: 21
  scl: 22

sensor:
  - platform: htu21d
    temperature:
      name: "Garage Temperature"
    humidity:
      name: "Garage Humidity"
    update_interval: 60s
  - platform: rotary_encoder
    name: "Rotary Encoder #1"
    pin_a: 33
    pin_b: 25
    min_value: 0
    max_value: 95
    publish_initial_value: true
  - platform: rotary_encoder
    name: "Rotary Encoder #2"
    pin_a: 5
    pin_b: 18
    min_value: 0
    max_value: 95
    publish_initial_value: true

switch:
  - platform: gpio
    name: "Relay 1"
    id: garage_1
    pin: 32
    inverted: true
  - platform: gpio
    name: "Relay 2"
    id: garage_2
    pin: 19
    inverted: true

cover:
  - platform: template
    name: "Garage Door 1"
    open_action:
      - switch.turn_on: garage_1
      - delay: 0.3s
      - switch.turn_off: garage_1
    close_action:
      - switch.turn_on: garage_1
      - delay: 0.3s
      - switch.turn_off: garage_1
    stop_action:
      - switch.turn_on: garage_1
      - delay: 0.3s
      - switch.turn_off: garage_1
    optimistic: true
    assumed_state: true
  - platform: template
    name: "Garage Door 2"
    open_action:
      - switch.turn_on: garage_2
      - delay: 0.3s
      - switch.turn_off: garage_2
    close_action:
      - switch.turn_on: garage_2
      - delay: 0.3s
      - switch.turn_off: garage_2
    stop_action:
      - switch.turn_on: garage_2
      - delay: 0.3s
      - switch.turn_off: garage_2
    optimistic: true
    assumed_state: true

I hope it helps… Let me know if you have any question!

2 Likes

Hello
Thanks very much for the feed back.
This sounds like an interesting project; one that I’ve never done before (that is custom build a device). I have a friend that could help me out with this and I do have two garage doors that I could connect to. Do you happen to have a parts list as I have none of the parts required. Also whee did you source the items (what web site) and is there a housing that can fit all the parts in and protect them from the elements. I live in Canada and I would imaging the temperature swings would be vast; say -30C to +90 maybe even a greater range. Will these items stand such ex-streams?

I’ve been very pleased with this company’s products. 2nd link below is an example product that might be in line with your needs. Folks from this company are active on several of the home automation forums, including here I believe. Having a device that is low voltage DC or AC powered makes for simpler and safer wiring in garage, most garages already have a place with one or more low voltage transformers for existing garage door, watering and/or landscape lighting. Do go with a ESP32 based device for the MCU, as both the Tasmota and espHome projects are starting to use the power of these chips for Bluetooth and Matter abilities. Not sure what your wireless signal strength is out to your garage, so connecting to this device from your home might require some thinking around WiFi range extending or using another wireless technology like sub 1 Ghz (433 mhz, Zwave, LoRa etc) or Zigbee using it’s mesh networking abilities. Good hunting!

1 Like

Thanks for the links, Dave. I’ll take a look at them. I’m okay for Wi-Fi signal as I have an Ubiquiti AP in the garage and a Sonoff ZigBee smart plug that can act as a router for the mesh network.

1 Like

Have a look at some of their videos on YouTube as well, and I think they have some newer products that what I cited. And a general recommendation from experience:

My garage has been doing ‘garage things’ for 60+ years… in this age of appliance life times of 2 to 5 years …

and two adages I use:

  1. why by one when you can buy two for twice the price (aka spare)
  2. if it is ‘good’ is it probably ‘gone’…
1 Like