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