I’m trying to figure out just how to setup a pwm dimmer knob to esp8266 to act as fallback hardware input. IE change the knob, change the dimming level, but also change the dimming level via slider and ignore the knob input until it changes.
This example is a pwm output to control an led dimming.
light:
- platform: monochromatic
name: "Kitchen Lights"
output: output_component1
# Example output entry
output:
- platform: esp8266_pwm
id: output_component1
pin: D1
I want to add a pwm input as a hardware control (something like this) and it seems the pulse_counter would be the right choice
# Example configuration entry
sensor:
- platform: pulse_meter
pin: 12
name: "Pulse Meter"
It seems I’d run the pulse_meter value into a filter that resolves the two values based on a on_change event (last one changed is the right value).
I’m not sure how to glue these together though, anyone tried this?