-
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Plugin Version
0.6.2
gpiozero 2.0.1
octopi 1.1.0 (bookworm)
GPIOZERO_PIN_FACTORY=lgpio
Describe the bug
Pressing the button causes the action to be executed multiple times.
My button is a normally-open microswitch connected between BCM 5 and GND.
The only action is TOGGLE of BCM 17.
I tested different "Hold Time"s from 10ms to 500ms and "Async" true or false.
It really looks like a debouncing issue, because the number varies from 2 to 4 depending on how long I press.
It looks like the Hold Time is ignored, but I don't know if it was intended as a debouncing.
To Reproduce
click a physical button
Expected behavior
action is executed once
for some reason -- Failed to upload "octoprint.log" --
I paste here the content
2025-06-08 11:05:12,074 - octoprint.plugins.physicalbutton - DEBUG - Reacting to button Light switch
2025-06-08 11:05:12,075 - octoprint.plugins.physicalbutton - DEBUG - Sending activity with identifier 'Light' ...
2025-06-08 11:05:12,078 - octoprint.plugins.physicalbutton - DEBUG - The activity with identifier 'Light' was executed successfully!
2025-06-08 11:05:12,081 - octoprint.plugins.physicalbutton - DEBUG - Reacting to button Light switch
2025-06-08 11:05:12,084 - octoprint.plugins.physicalbutton - DEBUG - Sending activity with identifier 'Light' ...
2025-06-08 11:05:12,091 - octoprint.plugins.physicalbutton - DEBUG - The activity with identifier 'Light' was executed successfully!
2025-06-08 11:05:35,092 - octoprint.plugins.physicalbutton - DEBUG - Reacting to button Light switch
2025-06-08 11:05:35,092 - octoprint.plugins.physicalbutton - DEBUG - Sending activity with identifier 'Light' ...
2025-06-08 11:05:35,095 - octoprint.plugins.physicalbutton - DEBUG - Reacting to button Light switch
2025-06-08 11:05:35,098 - octoprint.plugins.physicalbutton - DEBUG - The activity with identifier 'Light' was executed successfully!
2025-06-08 11:05:35,102 - octoprint.plugins.physicalbutton - DEBUG - Reacting to button Light switch
2025-06-08 11:05:35,099 - octoprint.plugins.physicalbutton - DEBUG - Sending activity with identifier 'Light' ...
2025-06-08 11:05:35,105 - octoprint.plugins.physicalbutton - DEBUG - Sending activity with identifier 'Light' ...
2025-06-08 11:05:35,110 - octoprint.plugins.physicalbutton - DEBUG - Reacting to button Light switch
2025-06-08 11:05:35,113 - octoprint.plugins.physicalbutton - DEBUG - The activity with identifier 'Light' was executed successfully!
2025-06-08 11:05:35,114 - octoprint.plugins.physicalbutton - DEBUG - The activity with identifier 'Light' was executed successfully!
2025-06-08 11:05:35,116 - octoprint.plugins.physicalbutton - DEBUG - Sending activity with identifier 'Light' ...
2025-06-08 11:05:35,123 - octoprint.plugins.physicalbutton - DEBUG - The activity with identifier 'Light' was executed successfully!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working