diff --git a/nspanel_esphome.yaml b/nspanel_esphome.yaml index c178b7d..63df42a 100644 --- a/nspanel_esphome.yaml +++ b/nspanel_esphome.yaml @@ -107,12 +107,22 @@ uart: baud_rate: 115200 id: tf_uart -###### REBOOT BUTTON ##### +##### START - BUTTON CONFIGURATION ##### button: + ###### REBOOT BUTTON ##### - platform: restart name: ${device_name} Restart id: restart_nspanel + ##### UPDATE TFT DISPLAY ##### + - platform: template + name: ${device_name} Update TFT display + icon: mdi:file-sync + id: tft_update + entity_category: config + on_press: + - delay: 16ms + - lambda: id(disp1).upload_tft(); ##### START - API CONFIGURATION ##### api: @@ -748,16 +758,6 @@ switch: restore_state: false optimistic: true - ##### UPDATE TFT DISPLAY ##### - - platform: template - name: ${device_name} Update TFT display - id: tft_update - entity_category: config - turn_on_action: - - delay: 16ms - - lambda: id(disp1).upload_tft(); - - switch.turn_off: tft_update - ##### PHYSICAL SWITCH 1 ##### - platform: gpio name: ${device_name} Relay 1