Files
espHome-NBS-files/garage1.yaml

71 lines
1.3 KiB
YAML

substitutions:
garageSide: sy # sy, wo
esphome:
name: garage${garageSide}
esp32:
board: wemos_d1_mini32
framework:
type: arduino # esp-idf is used by side wo, but sy uses an older esp32 chip that seems to crash with esp-idf (likely power issues)
ota:
- platform: esphome
password: !secret gd_passwd
api:
encryption:
key: !secret gd_key
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
power_save_mode: none
fast_connect: true
logger:
#level: VERY_VERBOSE
external_components:
- source:
type: local
path: external_components/
components: [ hoermann_door ]
cover:
- platform: hoermann_door
name: door_${garageSide}
hoermann_controller: door_controll_internal
uart:
rx_pin: 16
tx_pin: 17
baud_rate: 57600
id: hm_connection
data_bits: 8 # Standard, just defined for clarity
parity: EVEN # The chip uses even parity
stop_bits: 1 # Standard, just defined for clarity
hoermann_door:
id: door_controll_internal
uart_connection: hm_connection
tx_pin:
number: 25
inverted: false
light:
- platform: binary
name: door_${garageSide}_lamp
id: lamp_id_${garageSide}
output: light_out
output:
- id: light_out
platform: hoermann_door
state_callback: lamp_id_${garageSide}
hoermann_controller: door_controll_internal