@@ -838,9 +838,23 @@ display:
|
||||
page_changed->execute(page_names[x]);
|
||||
}
|
||||
}
|
||||
|
||||
on_touch:
|
||||
lambda: |-
|
||||
timer_reset_all->execute(page_names[page_id]);
|
||||
if (not id(is_uploading_tft)) {
|
||||
timer_reset_all->execute(page_names[page_id]);
|
||||
switch (page_id) {
|
||||
case 0: // home
|
||||
break;
|
||||
case 10: // light
|
||||
switch (component_id) {
|
||||
case 34: // power_button
|
||||
ha_call_service->execute("light.toggle", "", "", detailed_entity->state.c_str());
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
##### START - GLOBALS CONFIGURATION #####
|
||||
globals:
|
||||
|
||||
Reference in New Issue
Block a user