Remove restart with 15sec press
The benefit was small compared to the restriction caused. Still available as a customization or with the reset button. Helps with #1711
This commit is contained in:
@@ -58,7 +58,8 @@ We did our best to support your legacy settings and avoid breaking your system,
|
|||||||
|
|
||||||
We understand this change can require substantial work on the exisiting automations with direct calls to the panel's services,
|
We understand this change can require substantial work on the exisiting automations with direct calls to the panel's services,
|
||||||
however this will significantly improve the future customizations by providing compreensive documentation, standardizing and optimizing services calls.
|
however this will significantly improve the future customizations by providing compreensive documentation, standardizing and optimizing services calls.
|
||||||
3. **`captive_portal` and `web_server` are back to basic package**. If you want to remove those to free-up memory, please use [customizations](docs/customization.md#remove-non-essential-components).
|
3. **`captive_portal` and `web_server` are back to basic package**. If you want to remove those to free-up memory, please look at "[Customizations - Remove non-essential components](docs/customization.md#remove-non-essential-components)".
|
||||||
|
4. **15s hardware button press no longer restarts the device**. The benefits of this were too small compared to leaving the button available for other uses. If you still want the 15s restart behaviour, you can look at "[Customizations - Restart with 15s button press](docs/customization.md#restart-with-15s-button-press) and, in addition to that, the [reset pin in the bottom of your panel](docs/pics/eu_reset_button.png) can be used.
|
||||||
|
|
||||||
## Overview of noteworthy changes
|
## Overview of noteworthy changes
|
||||||
1. New default framework
|
1. New default framework
|
||||||
|
|||||||
@@ -698,3 +698,33 @@ captive_portal: !remove
|
|||||||
# Removes embedded web server
|
# Removes embedded web server
|
||||||
web_server: !remove
|
web_server: !remove
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Restart with 15s button press
|
||||||
|
This could be used to have an easy way to restart your panel locally in addition to the [reset pin in the bottom of your panel](pics/eu_reset_button.png).
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
binary_sensor:
|
||||||
|
# Restarts the Nextion display after pressing and holding the left button for 15s
|
||||||
|
- id: !extend left_button
|
||||||
|
on_multi_click:
|
||||||
|
- timing:
|
||||||
|
- ON for at least 15.0s
|
||||||
|
invalid_cooldown: ${invalid_cooldown}
|
||||||
|
then: # Restart the display
|
||||||
|
- switch.turn_off: screen_power
|
||||||
|
- delay: 5s
|
||||||
|
- switch.turn_on: screen_power
|
||||||
|
- delay: 2s
|
||||||
|
- lambda: disp1->soft_reset();
|
||||||
|
- delay: 2s
|
||||||
|
- script.execute: setup_sequence
|
||||||
|
|
||||||
|
# Restarts ESPHome after pressing and holding the right button for 15s
|
||||||
|
- id: !extend right_button
|
||||||
|
on_multi_click:
|
||||||
|
- timing:
|
||||||
|
- ON for at least 15.0s
|
||||||
|
invalid_cooldown: ${invalid_cooldown}
|
||||||
|
then: # Restart the panel
|
||||||
|
- button.press: restart_nspanel
|
||||||
|
```
|
||||||
|
|||||||
@@ -1582,17 +1582,6 @@ binary_sensor:
|
|||||||
page: !lambda return current_page->state.c_str();
|
page: !lambda return current_page->state.c_str();
|
||||||
component: "hw_bt_left"
|
component: "hw_bt_left"
|
||||||
command: "short_click"
|
command: "short_click"
|
||||||
- timing: &hold_to_restart-timing
|
|
||||||
- ON for at least 15.0s
|
|
||||||
invalid_cooldown: ${invalid_cooldown}
|
|
||||||
then:
|
|
||||||
- switch.turn_off: screen_power
|
|
||||||
- delay: 5s
|
|
||||||
- switch.turn_on: screen_power
|
|
||||||
- delay: 2s
|
|
||||||
- lambda: disp1->soft_reset();
|
|
||||||
- delay: 2s
|
|
||||||
- script.execute: setup_sequence
|
|
||||||
|
|
||||||
##### RIGHT BUTTON BELOW DISPLAY TO TOGGLE RELAY #####
|
##### RIGHT BUTTON BELOW DISPLAY TO TOGGLE RELAY #####
|
||||||
- name: Right Button
|
- name: Right Button
|
||||||
@@ -1633,10 +1622,6 @@ binary_sensor:
|
|||||||
page: !lambda return current_page->state.c_str();
|
page: !lambda return current_page->state.c_str();
|
||||||
component: "hw_bt_right"
|
component: "hw_bt_right"
|
||||||
command: "short_click"
|
command: "short_click"
|
||||||
- timing: *hold_to_restart-timing
|
|
||||||
invalid_cooldown: ${invalid_cooldown}
|
|
||||||
then: # Restart the panel
|
|
||||||
- button.press: restart_nspanel
|
|
||||||
|
|
||||||
##### Restart NSPanel Button - Setting Page #####
|
##### Restart NSPanel Button - Setting Page #####
|
||||||
- name: Restart
|
- name: Restart
|
||||||
|
|||||||
Reference in New Issue
Block a user