Giter VIP home page Giter VIP logo

esphome-epaper-info-display's Introduction

esphome-epaper-info-display

Sharing my esphome code of my e-paper info display showing infos from Home-Assistant. I am using a 2.9in e-paper display from waveshare and a ESP32 flashed with esphome to display mainly weather information fetched from Home-Assistant.

Page 1

Page 2

Setup

Before you flash the controller you should check that you have all necessary sensors setup in Home-Assistant. For the sunset and sunrise info I've pulled the timestamp into a separate sensor:

# Example sensor.yaml
  - platform: template
    sensors:
      esphome_next_sunrise:
        friendly_name: "Esphome Next Sunrise"
        value_template: "{{ as_timestamp(states.sun.sun.attributes.next_dawn) | timestamp_custom ('%H:%M') }}"
      esphome_next_sunset:
        friendly_name: "Esphome Next Sunset"
        value_template: "{{ as_timestamp(states.sun.sun.attributes.next_setting) | timestamp_custom ('%H:%M') }}"

And for the weather warnings if also pulled some information out of the DWD sensor:

      act_weather_warning_level:
        friendly_name: "Aktuelle Warnstufe"
        value_template: >-
          {% if is_state('sensor.wetterwarnung_marburg_current_warning_level', '0') %}
            0
          {% else %}
            {{ state_attr('sensor.wetterwarnung_marburg_current_warning_level', 'warning_1_level') }}
          {% endif %}
        icon_template: mdi:cloud-alert
      act_weather_warning_headline:
        friendly_name: "Aktuelle Kurzmeldung"
        value_template: >-
          {% if is_state('sensor.wetterwarnung_your-city_current_warning_level', '0') %}
            Es liegen keine Meldungen vor
          {% else %}
            {{ state_attr('sensor.wetterwarnung_your-city_current_warning_level', 'warning_1_headline') }}
          {% endif %}
        icon_template: mdi:comment-alert

Now download the files, put the esp32-display.yaml and the folder fonts into your /config folder from esphome, adapt the board info and the pin numbering to your board, flash the ESP after compiling the firmware, connect the display and be happy.

esphome-epaper-info-display's People

Contributors

azrael783 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.