From: David Woodhouse Date: Wed, 12 Feb 2025 16:22:39 +0000 (+0000) Subject: Stop motor *after* the part that depends on which way it's going... X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=345f66cb34bf9c09299f96f6045b330bed935be3;p=users%2Fdwmw2%2Fesp32-pool.git Stop motor *after* the part that depends on which way it's going... --- diff --git a/blind.yaml b/blind.yaml index bdb16f7..38da551 100644 --- a/blind.yaml +++ b/blind.yaml @@ -171,10 +171,10 @@ stepper: format: "Motor stalled at %f in direction %d, travel %s!" args: [ "id(encoder)->get_state()", "id(motor)->current_direction", "cover_operation_to_str(id(pd_blinds)->current_operation)" ] - - stepper.stop: motor #un-comment this to disable on stall - lambda: | if (id(motor).current_direction < 0) id(sensored_home_pos) = id(encoder)->get_state(); + - stepper.stop: motor - cover.template.publish: id: pd_blinds state: OPEN