I have been using a garage door esp file as follows for a few years with great success to open the garage door from the outside. However, in the last 6 months or so it quit working. I haven’t had time to figure out why it’s not working until now. When I press the open/close button on my dashboard it pops up “Action cover.open not found.” at the bottom of the screen and thus does not activate the relay to open the garage door.
I am terrible at coding and have gotten everything to work from copying others work. Any help would be greatly appreciated. Thank you much.
Here is my code that has worked for years:
esphome:
name: double_garage_door
platform: ESP8266
board: d1_mini
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
fast_connect: true
manual_ip:
# Set this to the IP of the ESP
static_ip: 192.168.0.201
# Set this to the IP address of the router. Often ends with .1
gateway: 192.168.0.111
# The subnet of the network. 255.255.255.0 works for most home networks.
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Double Garage Fallback Hotspot"
password: !secret esp8266_wifi_ap_password
captive_portal:
# Enable logging
logger:
baud_rate: 0
# Enable Home Assistant API
api:
ota:
- platform: esphome
switch:
- platform: gpio
internal: true
pin: D1
id: double_garage_door_relay
icon: "mdi:garage-variant"
restore_mode: ALWAYS_OFF
on_turn_on:
- delay: 500ms
- switch.turn_off: double_garage_door_relay
- platform: restart
name: "Double Garage Restart"
binary_sensor:
- id: double_garage_door_sensor
internal: true
platform: gpio
pin:
number: D2
mode: INPUT_PULLUP
inverted: False
device_class: garage_door
filters:
- delayed_on_off: 20ms
cover:
- platform: template
name: "Double Garage Door"
lambda: |-
if (id(double_garage_door_sensor).state) {
return COVER_OPEN;
} else {
return COVER_CLOSED;
}
open_action:
- switch.turn_on: double_garage_door_relay
- delay: 500ms
- switch.turn_off: double_garage_door_relay
close_action:
- switch.turn_on: double_garage_door_relay
- delay: 500ms
- switch.turn_off: double_garage_door_relay
stop_action:
- switch.turn_on: double_garage_door_relay
- delay: 500ms
- switch.turn_off: double_garage_door_relay