Giter VIP home page Giter VIP logo

ha-epaper-display's Introduction

HA Sensor ePaper Display

E-Paper display for viewing sensor data from Home Assistant. This firmware is based on ESPhome, so you need to install ESPhome and compile .yaml file by yourself.

header

Sensors data

The display shows PM2.5 value, temperature and humidity. Each set for indoor and outdoor.

I made PM2.5 the most prominent value. Because air pollution is currently a serious problem here in my hometime. Moreover, if the value exceeds the safety threshold, a warning sign will be displayed.

Hardware

hw

Parts:

  1. Waveshare 4.2" ePaper display
  2. ESP8266 Wemos D1 Mini
  3. 3D-Printed Case, it can be found on my thingiverse page. [https://www.thingiverse.com/thing:4772803]
  4. Stock M3 Screws from ePaper display

Note: You might need to apply some adhesives to 3d-printed parts joints, and also put some counterweight on the base to make it harder to tip over. This is my very first time designing 3D things, so it’s not perfect yet.

Wiring:

Connecting the display to Wemos D1 Mini is very straightforward. However, I soldered all wires diretly on both display and MCU in order to make it low-profile as much as possible.

ePaper Display Pin ESP8266 Pin
BUSY GPIO16
RST GPIO04
DC GPIO12
CS GPIO15
CLK GPIO14
DIN GPIO13
GND GND
3.3v 3.3v

How to use?

  1. Install ESPhome on your computer or Home Assistant Add-on
  2. Copy yaml file and fonts folder to your ESPhome folder.
  3. Edit your Wi-Fi SSID/Password, sensors entity ID, etc. as your own preference.
  4. Connect hardwares together.
  5. Flash the firmware. I reccommended you to not flash via OTA.
  6. Go to Home Assistant, it should automatically discovered your espHome display. If not, add it manually using IP address via ESPhome integration.
  7. Enjoy!

ha-epaper-display's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ha-epaper-display's Issues

GPIO15 not available for general purpose GPIO and causes issues flashing D1 Mini

Hi,

Thanks for this project, I have really enjoyed putting it together.

The README suggests connecting the screen's CS pin to GPIO15, which I found caused issues flashing the D1 Mini. The ESPHome ESP8266 documentation says GPIO15 is a "Special Pin" used to control the boot mode and isn't available for general purpose GPIO, which explains my issue.

I swapped the CS pin from GPIO15 to GPIO5 which is available for general purpose GPIO and things are back to working.

May I suggest modifying the README to replace the reference to GPIO15 with GPIO5.

An example configuration YAML would look like this:

spi:
  clk_pin: 14 # or GPIO14
  mosi_pin: 13

display:
  - platform: waveshare_epaper
    id: epaper_display
    cs_pin: 5
    dc_pin: 12
    busy_pin: 16
    reset_pin: 4
    model: 4.20in
    update_interval: 30s
    lambda: |-

# etc

Power Source

Hey,

What is the power source for this. It looks built-in from the pictures but I did not see a schematic or part for batteries.

edit: never mind it looks like that was just static displaying.

Temp

How to make temperature and pollution change place?? Please help :)

How display thermometer icon

  • file: 'fonts/materialdesignicons-webfont.ttf'
    id: mdi_small
    size: 31
    glyphs: [
    '󰤫', # mdi-wifi-strength-alert-outline
    '󰔏', # mdi-themometer
    '󰖎' # mdi-water-percent
    ]

    it.print(375, 75 + offsetY, id(mdi_small), TextAlign::BASELINE_CENTER, "󰔏"); //thermometer

can display the thermometer icon?
how display other icon?

Battery

Hi,

great job :-)
Is it possible to powered the device with battery ?

STL Files

Nice Project.
I use it for display some datas from my Huawei Solar Stuff.
Can u provide the STL Files for the case?

Displaying Time

Can you use an e-ink display as a clock?, is it fast enough to refresh every minute?

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.