Add esphome
This commit is contained in:
parent
a24aa4dde2
commit
3c389f912c
3 changed files with 63 additions and 0 deletions
5
esphome/.gitignore
vendored
Normal file
5
esphome/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# Gitignore settings for ESPHome
|
||||
# This is an example and may include too much for your use-case.
|
||||
# You can modify this file to suit your needs.
|
||||
/.esphome/
|
||||
/secrets.yaml
|
||||
56
esphome/door.yaml
Normal file
56
esphome/door.yaml
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
esphome:
|
||||
name: "door"
|
||||
friendly_name: "Door"
|
||||
platform: ESP32
|
||||
board: esp-wrover-kit
|
||||
|
||||
api:
|
||||
encryption:
|
||||
key: !secret apikey_door
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
password: !secret otapass_door
|
||||
|
||||
ethernet:
|
||||
type: LAN8720
|
||||
mdc_pin: GPIO23
|
||||
mdio_pin: GPIO18
|
||||
clk_mode: GPIO0_IN
|
||||
phy_addr: 1
|
||||
power_pin: GPIO16
|
||||
|
||||
logger:
|
||||
|
||||
output:
|
||||
- platform: gpio
|
||||
pin: GPIO2
|
||||
id: output_relay
|
||||
|
||||
button:
|
||||
- platform: template
|
||||
name: "door opener"
|
||||
id: btn_door_opener
|
||||
icon: mdi:lock-open
|
||||
on_press:
|
||||
- output.turn_on: output_relay
|
||||
- delay: 2s
|
||||
- output.turn_off: output_relay
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
timezone: Europe/Berlin
|
||||
servers:
|
||||
- 0.pool.ntp.org
|
||||
- 1.pool.ntp.org
|
||||
- 2.pool.ntp.org
|
||||
|
||||
wireguard:
|
||||
address: 10.20.16.2
|
||||
private_key: !secret wireguard_key_door
|
||||
peer_endpoint: jalr-bw.duckdns.org
|
||||
peer_public_key: Ew25M4+OxfBGfW3g98m2chq+TIgWhxpVulrsuFmwOic=
|
||||
netmask: 255.255.255.252
|
||||
peer_port: 51001
|
||||
peer_persistent_keepalive: 120s
|
||||
2
esphome/secrets.yaml.gpg
Normal file
2
esphome/secrets.yaml.gpg
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
└^cЭi5▌V└@#пмkf1▓8г^БdГЦ╦ПЗ╖CУ┴╞jMZп■Щeb0J>│╖╟P╜йpЭД╡ыP*)┤Ё┐╩м║ODж%╔ЮDЧ▌╞╫Ц2╖╠╢о0 ВрюH─▀2─ХvzЪFЭ▌┼?yL║3!┤╝░K║сцс┼Eд,|%tc4ИpZШ⌡ЧД▌#6т═koMx|Еe├┌V_9└S}7р╕в÷Bт┐]Жs°°НШtv▐ax╣╤>p╥И┴j%ZYкДог^Ф_pV║╟[Mh#╩b=щ═3~и:Ф{
|
||||
└oLOу∙MМtC╓<ar╥ZХ│&Уu╙┌,ы ╣н=z╣Ac╤>╜#lZЕOM═@╣┤ёЩiл═)Рзu╗ю╖;┘
|
||||
Loading…
Add table
Add a link
Reference in a new issue