esphome / feature-requests

ESPHome Feature Request Tracker
https://esphome.io/
420 stars 26 forks source link

ESPHome ac-dimmer with MCP23S17 Component #2945

Open NytoxRex0 opened 1 week ago

NytoxRex0 commented 1 week ago

The problem

The "_GatePin" from _ACDimmer component is not available to use for pins of the MCP23S17. This device should be more than fast enough for this application, please alter the code to allow this configuration.

Which version of ESPHome has the issue?

2024.8.3

What type of installation are you using?

Docker

Which version of Home Assistant has the issue?

2024.9.1

What platform are you using?

ESP32

Board

WROOM-S2

Component causing the issue

ac-dimmer, MCP23S17

Example YAML snippet

spi:
  clk_pin: GPIO14
  mosi_pin: GPIO13
  miso_pin: GPIO12

mcp23s17:
  - id: 'mcp23s17_hub'
    cs_pin: GPIO02
    deviceaddress: 0

output:
  - platform: ac_dimmer
    id: dimmer1
    gate_pin: 
      mcp23xxx: mcp23s17_hub
      # Use pin number 0
      number: 0
      # One of INPUT or INPUT_PULLUP
      mode:
        output: true
      inverted: false
    zero_cross_pin:
      number: GPIO35
      mode:
        input: true
      inverted: yes

light:
  - platform: monochromatic
    output: dimmer1
    name: Dimmerized Light

Anything in the logs that might be useful for us?

No response

Additional information

No response