commit e499a963de64286b71e238dfcf747672bd42470b Author: Matt Way Date: Tue Nov 4 14:01:25 2025 +1100 Create initial template diff --git a/garage-door.yaml b/garage-door.yaml new file mode 100644 index 0000000..71f6939 --- /dev/null +++ b/garage-door.yaml @@ -0,0 +1,42 @@ +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 \ No newline at end of file