Coder Social home page Coder Social logo

stalar / powerdisplayhomeassistant Goto Github PK

View Code? Open in Web Editor NEW

This project forked from johannyren/powerdisplayhomeassistant

0.0 0.0 0.0 7.31 MB

A small display for Home Assistant to retrieve the current house consumption and energy price via a sensor in HA. Uses a Wemos D1 Mini and an ILI9341display.

License: MIT License

C++ 24.90% C 75.10%

powerdisplayhomeassistant's Introduction

PowerDisplayHomeAssistant

This is a small display that shows the current electricity consumption, together with a graph of the today's electricity price, using either NordPool or Tibber. The software pulls the data from a Home Assistant instance, so all sources must be available there.

alt text

The hardware consists of a Wemos D1 Mini and a ILI9341 display.

Wiring of the ILI9341:

ILI9341   -> WEMOS D1
VCC       -> 3.3V
GND       -> GND
CS        -> D2 (GPIO4)
RESET     -> D3 (GPIO0)
D/C       -> D4 (GPIO2)
SDI(MOSI) -> D7 (GPIO13)
SCK       -> D5 (GPIO14)
LED       -> 3.3V

alt text

alt text

Libraries

This sketch id using the library TFT_eSPI (https://github.com/Bodmer/TFT_eWidget) Be sure to update the file User_Setup.h in the \libraries\TFT_eSPI folder to set pin numbers.

To match the pin numbers for the ILI9341 wiring above, use the following:

// For NodeMCU - use pin numbers in the form PIN_Dx where Dx is the NodeMCU pin designation
    #define TFT_CS   PIN_D2  // Chip select control pin
    #define TFT_DC   PIN_D4  // Data Command control pin
    #define TFT_RST  PIN_D3  // Reset pin (could connect to NodeMCU RST, see next line)

Datasources and connection to Home Assistant

Data sources from Home Assistant are defined in settings.h, together with WiFi details and bearer token for accessing Home Assistant.

Icons for Grid and Solar symbols are defined in icons.h. A few variants are available - choose the ones you prefer.

Casing

STL files are available for 3D printing a casing for the display. Two variants - one straight for putting on a wall, and one tilted, optimal for a desktop display.

powerdisplayhomeassistant's People

Contributors

johannyren avatar stalar 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.