buzzer13 / esphome-components

Custom ESPHome components repository
GNU General Public License v3.0
4 stars 9 forks source link
esphome esphome-component

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: