]> www.infradead.org Git - users/dwmw2/esp32-pool.git/commitdiff
Stop motor *after* the part that depends on which way it's going...
authorDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 12 Feb 2025 16:22:39 +0000 (16:22 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 12 Feb 2025 16:22:39 +0000 (16:22 +0000)
blind.yaml

index bdb16f7771333aa25df31ef61a892214104d4e27..38da55130e1e6d4982ce0aa20b0c4699d4888573 100644 (file)
@@ -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