Skip to content
Snippets Groups Projects
Commit 38a20054 authored by jabertwo's avatar jabertwo
Browse files

Add new file

parent a830be06
No related branches found
No related tags found
No related merge requests found
##############################################################################
## Wichtig:
## Diese Device-Konfiguration wird über Ansible verwaltet.
## Direkte Änderungen in ESPHome sind nur temporär und müssen anschließend
## in das Ansible Repo übernommen werden
## https://gitlab.warpzone.ms/infrastruktur/ansible-warpzone/-/tree/master/warpsrvint/docker_esphome/templates/config
##############################################################################
esphome:
name: "esphome_frekvens"
platform: ESP8266
board: d1_mini
platformio_options:
upload_speed: 115200
lib_deps:
- me-no-dev/ESPAsyncTCP
- adafruit/Adafruit GFX Library # Required for FrekvensPanel.
- Adafruit BusIO # Required by GFX Library.
- Wire # Also required by GFX.
- SPI # Also required by GFX.
# WiFi settings
wifi:
ssid: "Internet-of-Shit"
password: "N0FGgaI5"
use_address: "esphome_frekvens.warpzone"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "esphome_frekvens_fallback"
# WLAN selection in fallback mode
captive_portal:
# Enable OTA
ota:
# Enable logging
logger:
level: DEBUG
# Enable integrated WebServer
web_server:
port: 80
css_include: "webserver-v1.min.css"
css_url: ""
js_include: "webserver-v1.min.js"
js_url: ""
# Activates prometheus /metrics endpoint
prometheus:
# MQTT config
mqtt:
broker: 192.168.0.201
discovery: false
topic_prefix: "ESPHome/esphome_frekvens"
external_components:
- source:
type: local
path: .
light:
- platform: monochromatic
name: 'Brightness'
output: matrix_brightness
restore_mode: RESTORE_DEFAULT_ON
output:
- platform: esp8266_pwm
# Enables brightness control.
id: matrix_brightness
pin:
number: GPIO14
inverted: True
time:
- platform: sntp
id: ntp_time
timezone: 'Europe/Paris'
font:
- file: "frekvens_panel/04B03.ttf"
id: b03
size: 8
display:
- platform: frekvens_panel
latch_pin: 12
clock_pin: 04
data_pin: 05
lambda: |-
auto time = id(ntp_time).now();
it.printf(0, 0, id(b03), "%d:%d", time.hour, time.minute);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment