Import tmc2209_hub in PD-Stepper-Blinds-Advanced.yaml

This commit is contained in:
C H R I S T I A N 2025-02-01 02:46:28 +01:00 committed by GitHub
parent 4642e53486
commit fa1b7a6172
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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};