ESP-Home configuration for Lilygo T-encoder

Lilygo® Ttgo T-encoder Esp32 Wireless Module Rgb Led Ring Encoder T-u2t Downloader Wifi Bluetooth Programming Development Board - Circuits - AliExpress

In case anyone want’s the configuration for this device here is what I have come up with

api:
  services:
    # Service to play a rtttl tone
    - service: play_rtttl
      variables:
        song_str: string
      then:
        - rtttl.play:
            rtttl: !lambda 'return song_str;'
    
binary_sensor:
  - platform: gpio
    pin: 
      number: GPIO38
      inverted: true
    name: "click"


sensor:
  - platform: rotary_encoder
    name: "Rotary Encoder"
    pin_a: GPIO36
    pin_b: GPIO37
    
light:
  - platform: neopixelbus
    type: GRB
    variant: WS2811
    pin: GPIO25
    num_leds: 2
    name: "NeoPixel Light"
    
    
output:
  - platform: ledc
    pin: GPIO19
    id: rtttl_out

rtttl:
  output: rtttl_out

It seems to work quite nice.
It’s very responsive, if I do a fast spin it seems to detect all the steps but it’s hard to know for sure.
With the limited tests so far, I would say it’s better than IKEA Symfonisk rotary encoder when it comes to responsiveness.
The button is too smal for my taste, but it works fine.

2 Likes

Quite cute, but as you say a little small.