From 345f66cb34bf9c09299f96f6045b330bed935be3 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Wed, 12 Feb 2025 16:22:39 +0000 Subject: [PATCH] Stop motor *after* the part that depends on which way it's going... --- blind.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.1