Well that is a bit disappointing, I have had a play with lambda options and the duty cycle bit works with this:
name: "Rotary1"
id: rotary1
pin_a: GPIO36
pin_b: GPIO25
min_value: 0
max_value: 100
publish_initial_value: true
filters:
- debounce: 0.1s
resolution: 2
on_clockwise:
then:
- logger.log: "Turned Clockwise 1"
- output.set_level:
id: slow_pwm3
level: !lambda |-
return id(rotary1).state / 100;
on_anticlockwise:
then:
- logger.log: "Turned Anticlockwise 1"
- output.set_level:
id: slow_pwm3
level: !lambda |-
return id(rotary1).state / 100;
The real bummer is that the period value in the slow_pwm component is not templatable, so the whole idea is not really usable if I can’t adjust the time.
Any ideas on how I can work around this ??