65 lines
1.1 KiB
YAML
65 lines
1.1 KiB
YAML
|
---
|
||
|
substitutions:
|
||
|
id_prefix: ratgdov32
|
||
|
friendly_name: "ratgdov32"
|
||
|
uart_tx_pin: GPIO17
|
||
|
uart_rx_pin: GPIO21
|
||
|
input_obst_pin: GPIO4
|
||
|
status_door_pin: GPIO26
|
||
|
status_obstruction_pin: GPIO25
|
||
|
dry_contact_open_pin: GPIO13
|
||
|
dry_contact_close_pin: GPIO14
|
||
|
dry_contact_light_pin: GPIO27
|
||
|
|
||
|
web_server:
|
||
|
|
||
|
esphome:
|
||
|
name: ${id_prefix}
|
||
|
friendly_name: ${friendly_name}
|
||
|
name_add_mac_suffix: true
|
||
|
project:
|
||
|
name: ratgdo.esphome
|
||
|
version: "32.0"
|
||
|
|
||
|
esp32:
|
||
|
board: esp32dev
|
||
|
|
||
|
dashboard_import:
|
||
|
package_import_url: github://ratgdo/esphome-ratgdo/v32board.yaml@main
|
||
|
|
||
|
packages:
|
||
|
remote_package:
|
||
|
url: https://github.com/ratgdo/esphome-ratgdo
|
||
|
files: [base.yaml]
|
||
|
refresh: 1s
|
||
|
# remote_package: !include
|
||
|
# file: base.yaml
|
||
|
|
||
|
switch:
|
||
|
- platform: ratgdo
|
||
|
ratgdo_id: ${id_prefix}
|
||
|
id: ${id_prefix}_led
|
||
|
type: led
|
||
|
pin: GPIO4
|
||
|
name: "LED"
|
||
|
entity_category: config
|
||
|
|
||
|
sensor:
|
||
|
- platform: wifi_signal
|
||
|
name: "WiFi Signal"
|
||
|
update_interval: 120s
|
||
|
|
||
|
# Sync time with Home Assistant.
|
||
|
time:
|
||
|
- platform: homeassistant
|
||
|
id: homeassistant_time
|
||
|
|
||
|
api:
|
||
|
id: api_server
|
||
|
|
||
|
improv_serial:
|
||
|
|
||
|
wifi:
|
||
|
ap:
|
||
|
|
||
|
logger:
|