esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 34 forks source link

x9c Electronic Pot #5419

Open SABristol opened 7 months ago

SABristol commented 7 months ago

The problem

Repeatedly setting x9c output.set_level to 1 causes the output to initially set the pot to max then gradually decrement it down.

Which version of ESPHome has the issue?

2023.12.8

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2024.1.3

What platform are you using?

ESP32

Board

az-delivery-devkit-v4

Component causing the issue

x9c

Example YAML snippet

# Repeat press of test button causes decreasing pot position value
button:
  - platform: template
    name: "Pot Output"
    on_press:
      then:
        - output.set_level:
            id: bcm_digi_pot
            level: 1

# X9C Electronic Potentiometer (0-1)
output:
  - platform: x9c
    id: bcm_digi_pot
    cs_pin: GPIO25
    inc_pin: GPIO26
    ud_pin: GPIO27
    initial_value: 0.01

Anything in the logs that might be useful for us?

Repeatedly hitting the test button causes the measured pot position to change.

Additional information

No response

andynumber2 commented 6 months ago

I ran into this while testing as well, and found the bug, but looks like it's already been fixed in https://github.com/esphome/esphome/pull/5483. Seems the change has not been rolled out yet but is in the latest pre-release build here https://github.com/esphome/esphome/releases/tag/2024.2.0b1