Move "Nextion display - Power" to Diagnostic and disabled

This commit is contained in:
Edward Firmo
2023-11-24 18:33:55 +01:00
parent 18078ca1c0
commit 8b5d7bfb05

View File

@@ -1279,17 +1279,17 @@ switch:
id: refresh_relays id: refresh_relays
##### DISPLAY ALWAYS ON ##### ##### DISPLAY ALWAYS ON #####
- name: ${device_name} Screen Power - name: ${device_name} Nextion display - Power
platform: gpio platform: gpio
id: screen_power id: screen_power
entity_category: config entity_category: diagnostic
pin: pin:
number: 4 number: 4
inverted: true inverted: true
restore_mode: ALWAYS_ON restore_mode: ALWAYS_ON
internal: false internal: false
disabled_by_default: true
on_turn_on: on_turn_on:
- logger.log: screen_power turn-on
- wait_until: - wait_until:
condition: condition:
- lambda: !lambda return disp1->is_setup(); - lambda: !lambda return disp1->is_setup();
@@ -1300,7 +1300,6 @@ switch:
disp1->goto_page(wakeup_page_name->state.c_str()); disp1->goto_page(wakeup_page_name->state.c_str());
} }
on_turn_off: on_turn_off:
- logger.log: screen_power turn-off
- lambda: |- - lambda: |-
nextion_init->publish_state(false); nextion_init->publish_state(false);