mirror of
https://github.com/joshr120/PD-Stepper.git
synced 2025-11-04 14:49:56 +08:00
Import tmc2209_hub in PD-Stepper-Blinds-Advanced.yaml
This commit is contained in:
parent
4642e53486
commit
fa1b7a6172
@ -3,7 +3,7 @@
|
||||
|
||||
external_components:
|
||||
- source: github://slimcdk/esphome-custom-components
|
||||
components: [tmc2209, stepper]
|
||||
components: [tmc2209_hub, tmc2209, stepper]
|
||||
|
||||
substitutions:
|
||||
encoder_closed_pos: "30000" # full blinds length (in encoder counts) !! CHANGE TO SUIT YOUR SETUP !!
|
||||
@ -281,4 +281,4 @@ cover:
|
||||
position: !lambda return (1.0-id(pd_blinds)->position) * ${encoder_closed_pos} * ${stepper_encoder_ratio};
|
||||
- stepper.set_target:
|
||||
id: motor
|
||||
target: !lambda return (1.0-pos) * ${encoder_closed_pos} * ${stepper_encoder_ratio};
|
||||
target: !lambda return (1.0-pos) * ${encoder_closed_pos} * ${stepper_encoder_ratio};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user