Is it possible to use a stepper with an endstop in ESPHome?
I want to motorise a blind using a stepper. Because we have fairly frequent power issues I would like to set it to a known position at boot. Desired sequence something like:
- power restored
- 5S delay
- stepper slowly moves blind up until top (and only) endstop reached
- ‘home’ position set
The blind could then work in stepper only mode (by setting target positions) or could use stepper mode down and stop at the endstop for up.
The problem I’m facing is how to stop the stepper when the endstop is triggered, so that the home position can be assigned.
Has anyone cracked this, please?