ssieb / esphome_components

My collection of components for esphome
Other
191 stars 119 forks source link

Adafruit I2C Quad Rotary Encoder Breakout with NeoPixel / Seesaw Neopixel LED issue with 4 LED #74

Open lboue opened 5 months ago

lboue commented 5 months ago

Hello,

I am facing an issue with seesaw componant and my Adafruit I2C Quad Rotary Encoder Breakout with NeoPixel - STEMMA QT / Qwiic, Product ID: 5752. Encoders count in the wrong direction.

adafruit_products_dbl

The LED on the first encoder works correctly, but the other 3 LEDs cannot be controlled.

I am using the seesaw branch of this repo.

Tutorial : Adafruit I2C Quad Rotary Encoder Breakout tutorial

ESPHome config

external_components:
  - source:
      type: git
      url: https://github.com/ssieb/custom_components
      ref: seesaw
    components: [ seesaw ]

light:
  - platform: seesaw
    id: pixel0
    pin: 18
    name: "Seesaw neopixel"
    #num_leds: 4

  - platform: seesaw
    id: pixel0
    pin: 18
    name: "Seesaw neopixel"
    #num_leds: 4

The num_ledsparameter is not working:

Failed config

light.seesaw: [source /config/esphome/adafruit-matrixportal-s3.yaml:138]
  platform: seesaw
  id: pixel0
  pin: 18
  name: Seesaw neopixel

  [num_leds] is an invalid option for [light.seesaw]. Please check the indentation.
  num_leds: 4

Can you help to make it work?

ssieb commented 5 months ago

Yes, that's under development. I think I even mentioned to you that I'm figuring out how to implement that. Please don't make more issues here, you can contact me on discord. And you can't just make up undocumented parameters. :-)