Create initial template
This commit is contained in:
42
garage-door.yaml
Normal file
42
garage-door.yaml
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user