Coder Social home page Coder Social logo

esphome-tm1650's Introduction

ESPHome custom components

This repository contains a collection of my custom components for ESPHome.

Usage

Add this to your .yaml file:

external_components:
  - source: github://buzzer13/esphome-components@main

Components

tm1650

7-segment LED display driver component.

Based on the TM1637 ESPHome component and analysis of 303WIFILC01 clock.

Example

Check out example_tm1650.yaml or code below:

external_components:
  - source: github://buzzer13/esphome-components@main
    components:
      - tm1650

time:
  - platform: homeassistant
    id: tm_hass

i2c:
  - id: i2c_main
    sda: 13
    scl: 12
    scan: true

display:
  - platform: tm1650
    id: disp_tm1650
    # i2c_id: i2c_main
    # intensity: 1
    # length: 4
    # mode: 0
    # power: true
    # segment_map: PABCDEFG
    update_interval: 500ms
    lambda: |-
      static int dot = 0;

      if (++dot & 1) {
        it.strftime("%H.%M", id(tm_hass).now());
      } else {
        it.strftime("%H%M", id(tm_hass).now());
      }

Configuration for 303WIFILC01 clock

There are two sample configurations for the clock in this repository:

  • Minimal config. Configures basic time sync, status led and display.
  • Full config. Includes everything from minimal config plus:
    • Handles Set/Up/Down push buttons (mapped to the display brightness control by default).
    • Automatically turns off display at night and startup from 12 AM till 8 AM.
    • Displays multiple text strings pulled from Home Assistant API.
    • Exposes following configuration switches to the Home Assistant:
      • Display brightness (current, day and night).
      • Time and text display timeouts in seconds.

esphome-tm1650's People

Contributors

cryan209 avatar buzzer13 avatar trip5 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.