I would like to control the X9C digital potentiometer from Monochromatic Light. I wrote the code as below but nothing happens when I change the brightness from Monochromatic Light. I checked that the potentiometer is connected correctly - setting initial_value and set_level works. What’s wrong with this code? Thank you for any help.
# PSU main switch
light:
- platform: binary
name: "Dom podswietlenie"
output: light_output
- platform: monochromatic
name: "Dom podswietlenie dim"
output: x9c_pot
# x9c - cyfrowy potencjometr do sterowania prądem wyjsciowym
output:
- platform: x9c
id: x9c_pot
cs_pin: GPIO27
inc_pin: GPIO25
ud_pin: GPIO26
initial_value: 0.95
- platform: gpio
id: light_output
pin: GPIO32