Hi
I have connected a PD-Stepper to HA, and am using the code
PD-Stepper-Position-Control.yaml from GitHub.
So far so good. I can control position.
This will be my first YAML project.
I want to end up with a dial on my dashboard, with the numbers 0-9 around it, that will move the stepper motor to a particular numerical position for each number when clicked. For simplicity let’s say that each number is one rotation, or 200 steps. So if I click the number one, it will go to 200 (1 times 200 steps), 5 will give 1000 (5 times 200 steps).
Can someone point me to the right way to do this? Not sure what change in the YAML - if any, because there is a section in the YAML that will send it to a particular position (code below)
also don’t know what card to start with to implement this well
Can anyone point me toward the right direction?
number:
- platform: template
name: Target position
min_value: -10000
max_value: 10000
step: 100
lambda: return id(driver)->current_position;
update_interval: 1s
set_action:
- stepper.set_target:
id: driver
target: !lambda "return x;"