Commit Graph

27 Commits

Author SHA1 Message Date
Edward Firmo
6687c5c6a5 Fix other references to gang_count_plural_suffix 2025-08-01 09:01:37 +02:00
Edward Firmo
3cdd9f87af Standardize std::to_string 2025-07-10 00:29:34 +02:00
Edward Firmo
5ea4f2015b Support to ESPHome 2025.7.0
- Resolve duplicated names
- Rebuilt HA event calls
2025-07-09 23:36:54 +02:00
Edward Firmo
e69873cab5 Create standard package 2024-12-27 01:42:41 +01:00
Edward Firmo
81c6620fbf Split files even more 2024-12-25 23:01:33 +01:00
Edward Firmo
5ddf5388bd Handle unknown states 2024-12-25 03:00:56 +01:00
Edward Firmo
7aee88c38f CodeRabbitAI suggestions 2024-12-25 02:34:18 +01:00
Edward Firmo
e546fedf08 Add dump config
To help troubleshooting
2024-12-25 02:11:10 +01:00
Edward Firmo
403cdce2b5 Expose relay-indicator LEDs
The lights will be available on Home Assistant, so users will be able to set it's color and brightness, then this will be used when the relay turn on-off as the indicator for the relay status.
Resolves #57
2024-12-24 23:31:50 +01:00
Edward Firmo
60a3248c6b Adds "Relay n (API failsafe only)" to button's actions
Solves #23
2024-12-23 20:30:32 +01:00
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