From 14e321d5a6009e668647293194e6857651c0858f Mon Sep 17 00:00:00 2001
From: jabertwo <mail@jabertwo.de>
Date: Sat, 22 Oct 2022 19:50:33 +0200
Subject: [PATCH] Add new file

---
 .../templates/config/esphome_obegraensad.yaml | 45 +++++++++++++++++++
 1 file changed, 45 insertions(+)
 create mode 100644 warpsrvint/docker_esphome/templates/config/esphome_obegraensad.yaml

diff --git a/warpsrvint/docker_esphome/templates/config/esphome_obegraensad.yaml b/warpsrvint/docker_esphome/templates/config/esphome_obegraensad.yaml
new file mode 100644
index 00000000..78fd62b0
--- /dev/null
+++ b/warpsrvint/docker_esphome/templates/config/esphome_obegraensad.yaml
@@ -0,0 +1,45 @@
+{% set devicename = "esphome_obegraensad"  %}
+
+{% include "/includes/ansible.inc.yaml" %}
+{% include "/includes/board.d1_mini.inc.yaml" %}
+{% include "/includes/common.inc.yaml" %}
+
+
+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);
-- 
GitLab