Edward Firmo
2a8255b788
Use long_press and not long_click
2024-12-23 04:16:28 +01:00
Edward Firmo
4ea7f1ee57
New event handler
...
This rebuild the engine to send events to Home Assistant
2024-12-23 03:55:50 +01:00
Edward Firmo
552b83f065
Re-add button ids on substitutions
2024-12-23 01:03:51 +01:00
Edward Firmo
fbc5cb79cc
Reduce BUTTON_MULTI_CLICK_DELAY to 250ms
2024-12-22 01:46:28 +01:00
Edward Firmo
c65acc3298
Pass parameters to button_click_event
2024-12-22 01:37:07 +01:00
Edward Firmo
8c610a406a
Log long-press from component
...
If this works fine, it could replace this part on the new implementation.
2024-12-21 23:17:42 +01:00
Edward Firmo
5ae4564e6a
CodeRabbitAI Nitpick 2
2024-12-21 22:08:19 +01:00
Edward Firmo
857c43940d
CodeRabbitAI Nitpick
2024-12-21 21:54:54 +01:00
Edward Firmo
35cc0c4a8e
Reorganize scripts for better clarity
2024-12-21 21:18:54 +01:00
Edward Firmo
5c4581563e
Rebuild Button click engine
...
The native engine from ESPHome cannot be used here as a button press event is triggered on touch, which would trigger the click even on swipe.
Other projects solved this by tracking only single click and only at release, so we decided to implement this in a different way, so we can handle multiple or long-clicks also.
This should finally solve #14 , but some test is required to ensure nothing else was broken.
2024-12-21 21:14:41 +01:00
Edward Firmo
e0a5ea1cc8
Do not toggle if other action is on place
...
Helps with #18
2024-12-20 20:39:19 +01:00
Edward Firmo
59da9bcb96
Wait for initialization to complete before update relay status
...
That was crashing that method right after boot.
- Solves #28
2024-12-20 02:08:49 +01:00
Edward Firmo
62e4e3d511
More CodeRabbitAI suggestions
2024-12-19 23:52:21 +01:00
Edward Firmo
e9890c937e
CodeRabbitAI suggestions
2024-12-19 23:39:32 +01:00
Edward Firmo
2e15149d3d
Clean-up buttons
2024-12-19 21:11:55 +01:00
Edward Firmo
2f92e874b3
Clean-up relay mode select
2024-12-19 20:45:31 +01:00
Edward Firmo
b6d9ae5a96
Split files
...
To improve readability and increase my chances to have more people collaborating with this project.
Solves #27
2024-12-19 19:35:46 +01:00