Files
esphome-garage-door/garage-door.yaml
2025-11-04 14:01:25 +11:00

42 lines
742 B
YAML

substitutions:
name: "garage-door"
friendly_name: "Garage Door"
esphome:
name: "${name}"
friendly_name: "${friendly_name}"
project:
name: "mattway.garage_door"
version: "1.0.0"
esp8266:
board: esp01_1m
# Enable logging
logger:
hardware_uart: UART1
# Enable Home Assistant API
api:
ota:
- platform: esphome
uart:
tx_pin: 1
rx_pin: 3
baud_rate: 9600
button:
- platform: template
name: Door Button
id: door_button
on_press:
then:
- uart.write: [0xA0, 0x01, 0x01, 0xA2]
- delay: 0.2s
- uart.write: [0xA0, 0x01, 0x00, 0xA1]
dashboard_import:
package_import_url: "http://git.mattway.com.au/esphome-garage-door/garage-door.yaml@main"
import_full_config: false