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 0000000000000000000000000000000000000000..78fd62b0faae584807072a7d633fffc3d1457d00 --- /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);