Use standard components for our ecosystem
This commit is contained in:
+34
-37
@@ -10,6 +10,10 @@ substitutions:
|
|||||||
dry_contact_close_pin: GPIO14
|
dry_contact_close_pin: GPIO14
|
||||||
dry_contact_light_pin: GPIO27
|
dry_contact_light_pin: GPIO27
|
||||||
|
|
||||||
|
web_server:
|
||||||
|
include_internal: true
|
||||||
|
local: true
|
||||||
|
|
||||||
esphome:
|
esphome:
|
||||||
name: garage-gate
|
name: garage-gate
|
||||||
friendly_name: ${friendly_name}
|
friendly_name: ${friendly_name}
|
||||||
@@ -30,6 +34,15 @@ external_components:
|
|||||||
path: components
|
path: components
|
||||||
components: [ ratgdo ]
|
components: [ ratgdo ]
|
||||||
|
|
||||||
|
packages:
|
||||||
|
wifi: !include templates/wifi.yaml
|
||||||
|
mqtt: !include templates/mqtt.yaml
|
||||||
|
ota: !include templates/ota.yaml
|
||||||
|
uptime: !include templates/uptime.yaml
|
||||||
|
restart: !include templates/restart.yaml
|
||||||
|
syslog: !include templates/syslog.yaml
|
||||||
|
time: !include templates/time.yaml
|
||||||
|
|
||||||
safe_mode:
|
safe_mode:
|
||||||
|
|
||||||
preferences:
|
preferences:
|
||||||
@@ -40,39 +53,33 @@ ratgdo:
|
|||||||
input_gdo_pin: ${uart_rx_pin}
|
input_gdo_pin: ${uart_rx_pin}
|
||||||
output_gdo_pin: ${uart_tx_pin}
|
output_gdo_pin: ${uart_tx_pin}
|
||||||
input_obst_pin: ${input_obst_pin}
|
input_obst_pin: ${input_obst_pin}
|
||||||
on_sync_failed:
|
#on_sync_failed:
|
||||||
then:
|
# then:
|
||||||
- homeassistant.service:
|
# - homeassistant.service:
|
||||||
service: persistent_notification.create
|
# service: persistent_notification.create
|
||||||
data:
|
# data:
|
||||||
title: "${friendly_name} sync failed"
|
# title: "${friendly_name} sync failed"
|
||||||
message: "Failed to communicate with garage opener on startup."
|
# message: "Failed to communicate with garage opener on startup."
|
||||||
notification_id: "esphome_ratgdo_${id_prefix}_sync_failed"
|
# notification_id: "esphome_ratgdo_${id_prefix}_sync_failed"
|
||||||
|
|
||||||
api:
|
#api:
|
||||||
id: api_server
|
# id: api_server
|
||||||
services:
|
# services:
|
||||||
- service: wipe_devices_from_gdo_memory
|
# - service: wipe_devices_from_gdo_memory
|
||||||
variables:
|
# variables:
|
||||||
devices_to_wipe: string
|
# devices_to_wipe: string
|
||||||
then:
|
# then:
|
||||||
- lambda: !lambda |-
|
# - lambda: !lambda |-
|
||||||
id($id_prefix).clear_paired_devices(devices_to_wipe);
|
# id($id_prefix).clear_paired_devices(devices_to_wipe);
|
||||||
|
|
||||||
ota:
|
ota:
|
||||||
- platform: esphome
|
|
||||||
id: ${id_prefix}_ratgdo_ota
|
|
||||||
- platform: web_server
|
- platform: web_server
|
||||||
id: ${id_prefix}_ratgdo_ota_ws
|
id: ${id_prefix}_ratgdo_ota_ws
|
||||||
|
|
||||||
web_server:
|
|
||||||
include_internal: true
|
|
||||||
local: true
|
|
||||||
|
|
||||||
# Sync time with Home Assistant.
|
|
||||||
time:
|
time:
|
||||||
- platform: homeassistant
|
- platform: sntp
|
||||||
id: homeassistant_time
|
id: sntp_time
|
||||||
|
servers: !secret sntp_servers
|
||||||
timezone: Europe/Zurich
|
timezone: Europe/Zurich
|
||||||
|
|
||||||
improv_serial:
|
improv_serial:
|
||||||
@@ -87,14 +94,10 @@ wifi:
|
|||||||
captive_portal:
|
captive_portal:
|
||||||
|
|
||||||
logger:
|
logger:
|
||||||
|
baud_rate: 115200
|
||||||
logs:
|
logs:
|
||||||
sensor: NONE
|
sensor: NONE
|
||||||
|
|
||||||
text_sensor:
|
|
||||||
- platform: version
|
|
||||||
id: ${id_prefix}_firmware_version
|
|
||||||
name: "Firmware Version"
|
|
||||||
|
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
- platform: ratgdo
|
- platform: ratgdo
|
||||||
type: motion
|
type: motion
|
||||||
@@ -192,9 +195,6 @@ sensor:
|
|||||||
entity_category: diagnostic
|
entity_category: diagnostic
|
||||||
name: "Paired Devices"
|
name: "Paired Devices"
|
||||||
icon: mdi:remote
|
icon: mdi:remote
|
||||||
- platform: wifi_signal
|
|
||||||
name: "WiFi Signal"
|
|
||||||
update_interval: 120s
|
|
||||||
- platform: ratgdo
|
- platform: ratgdo
|
||||||
id: ${id_prefix}_vehicle_distance_actual
|
id: ${id_prefix}_vehicle_distance_actual
|
||||||
type: distance
|
type: distance
|
||||||
@@ -346,9 +346,6 @@ light:
|
|||||||
name: "Light"
|
name: "Light"
|
||||||
|
|
||||||
button:
|
button:
|
||||||
- platform: restart
|
|
||||||
id: ${id_prefix}_restart
|
|
||||||
name: "Restart"
|
|
||||||
- platform: safe_mode
|
- platform: safe_mode
|
||||||
id: ${id_prefix}_safe_mode
|
id: ${id_prefix}_safe_mode
|
||||||
name: "Safe mode boot"
|
name: "Safe mode boot"
|
||||||
|
|||||||
Reference in New Issue
Block a user