New event handler

This rebuild the engine to send events to Home Assistant
This commit is contained in:
Edward Firmo
2024-12-23 03:55:50 +01:00
parent bd4f6836c9
commit 4ea7f1ee57
7 changed files with 595 additions and 193 deletions

View File

@@ -189,7 +189,7 @@ script:
}
// Toggle relay if corresponding button action is enabled
switch (button_id) {
switch (button) {
case ${BUTTON_1_ID}:
if (sl_button_1_action->state != "${RELAY_MODE_TEXT_NOT_USED}")
sw_relay_1->toggle();