I’m trying to make a dimmer with an esp and a rotary encoder.
Does anyone give me an hint.
I have a Rotary Encoder
sensor: - platform: rotary_encoder name: "Rotary Encoder" pin_a: D1 pin_b: D2 min_value: 0 max_value: 100 resolution: 2
light: - platform: monochromatic name: "Ceiling light" output: output_component1 output: - platform: esp8266_pwm id: output_component1 pin: D6
Invidually is this working but I want to dim the lights with the rotary-encoder but how must I program this in the ESP?