Blackymas / NSPanel_HA_Blueprint

This allows you to configure your complete NSPanel via Blueprint with UI and without changing anything in the code
1.43k stars 259 forks source link

`Bug` Panel boot looping on "Initializing..." screen after TFT update #1698

Closed NoFace3D closed 9 months ago

NoFace3D commented 9 months ago

TFT Version

4.2.4

ESPHome Version

2023.12.8

Blueprint Version

4.2.4

Panel Model

NSPanel EU Model

What is the bug?

Panel boot looping on "Initializing..." screen after TFT update

Steps to Reproduce

I've updated panel from 4.1.3 to new version 4.2.4, esphome to 2023.12.8 also blueprint to 4.2.4. After update of TFT to 4.2.4, the panel is not connecting to ESPHome and boot looping on "Initializing..." screen. I am using my own API encryption key in the config. Panel is visible in HA and I am able to connect to it.

I've tried already the following: Reboot of device Reinstallation of esphome firmware Deletion and readding device in HA Reuploading blank TFT or older TFT version is not possible

My other panels are currently working correctly with updated 4.2.4 firmware but with old TFT version.

Your panel's YAML

substitutions:
  ###### CHANGE ME START ######
  device_name: "nspanelhostovska" 
  wifi_ssid: !secret esphome_wifi_ssid
  wifi_password: !secret esphome_wifi_password

  nextion_update_url: "http://192.168.1.25:8123/local/nspanel_eu.tft"

  ##### addon-configuration #####
  ## addon_climate ##
  heater_relay: "1" # default=0 possible values 1/2
  temp_units: "°C" # default="°C"
  temp_min: "18"
  temp_max: "25"
  temp_step: "0.5"
  min_off_time: "60" # default=300
  min_run_time: "60" # default=300
  min_idle_time: "30" # default=30
  ##### CHANGE ME END #####

packages:
  remote_package:
    url: https://github.com/Blackymas/NSPanel_HA_Blueprint
    ref: main
    files:
      - nspanel_esphome.yaml # Core package
      - nspanel_esphome_advanced.yaml # activate advanced (legacy) elements - can be useful for troubleshooting
      # - nspanel_esphome_addon_climate_cool.yaml # activate for local climate (cooling) control
      - nspanel_esphome_addon_climate_heat.yaml # activate for local climate (heater) control
    refresh: 300s
esp32:
  framework:
    type: esp-idf

##### My customization - Start #####
api:
  encryption:
    key: !secret esphome_api_key

ota:
  password: !secret esphome_ota_password

climate:
  - id: !extend thermostat_embedded
    default_preset: "Home"
    preset:
      - name: "Off" # OFF, ECO, AWAY, BOOST, COMFORT, HOME, SLEEP, ACTIVITY
        default_target_temperature_low: ${temp_min} ${temp_units}
        mode: "off" # OFF, AUTO, HEAT
      - name: Home
        default_target_temperature_low: 23.0 ${temp_units}
        mode: "heat"
      - name: Away
        default_target_temperature_low: 18.0 ${temp_units}
        mode: "heat"
      - name: Eco
        default_target_temperature_low: 20.0 ${temp_units}
        mode: "heat"
      - name: Sleep
        default_target_temperature_low: 21.0 ${temp_units}
        mode: "heat"
    #heat_action:
    #  - switch.turn_off: relay_${heater_relay} # Required for T30NO
    #idle_action:
    #  - switch.turn_on: relay_${heater_relay} # Required for T30NO

button:
  - platform: template
    name: "${device_name} Short Click Left"
    id: left_short_click
    on_press:
      then:
        - logger.log: "Left Short Click - HA"
        - script.execute:
            id: ha_button
            page: screensaver
            component: "hw_bt_left"
            command: "short_click"
  - platform: template
    name: "${device_name} Short Click Right"
    id: right_short_click
    on_press:
      then:
        - logger.log: "Right Short Click - HA"
        - script.execute:
            id: ha_button
            page: screensaver
            component: "hw_bt_right"
            command: "short_click"
  - platform: template
    name: "${device_name} Long Click Left"
    id: left_long_click
    on_press:
      then:
        - logger.log: "Left Long Click - HA"
        - script.execute:
            id: ha_button
            page: screensaver
            component: "hw_bt_left"
            command: "long_click"
  - platform: template
    name: "${device_name} Long Click Right"
    id: right_long_click
    on_press:
      then:
        - logger.log: "Right Long Click - HA"
        - script.execute:
            id: ha_button
            page: screensaver
            component: "hw_bt_right"
            command: "long_click"
##### My customization - End #####

ESPHome logs

INFO ESPHome 2023.12.8
INFO Reading configuration /config/esphome/nspanel-hostovska.yaml...
INFO Detected timezone 'Europe/Prague'
INFO Starting log output from 192.168.1.245 using esphome API
INFO Successfully connected to nspanelhostovska @ 192.168.1.245 in 0.211s
INFO Successful handshake with nspanelhostovska @ 192.168.1.245 in 0.108s
[18:01:07][I][app:102]: ESPHome version 2023.12.8 compiled on Jan 20 2024, 17:17:34
[18:01:07][C][wifi:573]: WiFi:
[18:01:07][C][wifi:405]:   Local MAC: xxx
[18:01:07][C][wifi:410]:   SSID: [redacted]
[18:01:07][C][wifi:411]:   IP Address: 192.168.1.245
[18:01:07][C][wifi:413]:   BSSID: [redacted]
[18:01:07][C][wifi:414]:   Hostname: 'nspanelhostovska'
[18:01:07][C][wifi:416]:   Signal strength: -65 dB ▂▄▆█
[18:01:07][C][wifi:420]:   Channel: 6
[18:01:07][C][wifi:421]:   Subnet: 255.255.255.0
[18:01:07][C][wifi:422]:   Gateway: 192.168.1.1
[18:01:07][C][wifi:423]:   DNS1: 192.168.1.1
[18:01:07][C][wifi:424]:   DNS2: 0.0.0.0
[18:01:07][C][logger:439]: Logger:
[18:01:07][C][logger:440]:   Level: DEBUG
[18:01:07][C][logger:441]:   Log Baud Rate: 0
[18:01:07][C][logger:443]:   Hardware UART: UART0
[18:01:07][W][nextion:081]: Nextion is not connected! 
[18:01:07][C][uart.idf:139]: UART Bus 0:
[18:01:07][C][uart.idf:140]:   TX Pin: GPIO16
[18:01:07][C][uart.idf:141]:   RX Pin: GPIO17
[18:01:07][C][uart.idf:143]:   RX Buffer Size: 256
[18:01:07][C][uart.idf:145]:   Baud Rate: 921600 baud
[18:01:07][C][uart.idf:146]:   Data Bits: 8
[18:01:07][C][uart.idf:147]:   Parity: NONE
[18:01:07][C][uart.idf:148]:   Stop bits: 1
[18:01:07][C][ledc.output:164]: LEDC Output:
[18:01:07][C][ledc.output:165]:   Pin GPIO21
[18:01:07][C][ledc.output:166]:   LEDC Channel: 0
[18:01:07][C][ledc.output:167]:   PWM Frequency: 1000.0 Hz
[18:01:07][C][ledc.output:168]:   Bit depth: 16
[18:01:07][C][template.binary_sensor:028]: Template Binary Sensor 'nspanelhostovska Nextion display'
[18:01:07][C][template.binary_sensor:028]:   Device Class: 'connectivity'
[18:01:07][C][template.number:050]: Template Number 'nspanelhostovska Display Brightness'
[18:01:07][C][template.number:050]:   Unit of Measurement: '%'
[18:01:07][C][template.number:051]:   Optimistic: YES
[18:01:07][C][template.number:052]:   Update Interval: 60.0s
[18:01:07][C][template.number:050]: Template Number 'nspanelhostovska Display Brightness Dimdown'
[18:01:07][C][template.number:050]:   Unit of Measurement: '%'
[18:01:07][C][template.number:051]:   Optimistic: YES
[18:01:07][C][template.number:052]:   Update Interval: 60.0s
[18:01:07][C][template.number:050]: Template Number 'nspanelhostovska Temperature Correction'
[18:01:07][C][template.number:050]:   Unit of Measurement: '°C'
[18:01:07][C][template.number:051]:   Optimistic: YES
[18:01:07][C][template.number:052]:   Update Interval: 60.0s
[18:01:07][C][template.number:050]: Template Number 'nspanelhostovska Timeout Page'
[18:01:07][C][template.number:050]:   Icon: 'mdi:timer'
[18:01:07][C][template.number:050]:   Unit of Measurement: 's'
[18:01:07][C][template.number:051]:   Optimistic: YES
[18:01:07][C][template.number:052]:   Update Interval: 60.0s
[18:01:07][C][template.number:050]: Template Number 'nspanelhostovska Timeout Dimming'
[18:01:07][C][template.number:050]:   Icon: 'mdi:timer'
[18:01:07][C][template.number:050]:   Unit of Measurement: 's'
[18:01:07][C][template.number:051]:   Optimistic: YES
[18:01:07][C][template.number:052]:   Update Interval: 60.0s
[18:01:07][C][template.number:050]: Template Number 'nspanelhostovska Timeout Sleep'
[18:01:07][C][template.number:050]:   Icon: 'mdi:timer'
[18:01:07][C][template.number:050]:   Unit of Measurement: 's'
[18:01:07][C][template.number:051]:   Optimistic: YES
[18:01:07][C][template.number:052]:   Update Interval: 60.0s
[18:01:07][C][template.select:065]: Template Select 'nspanelhostovska Wake-up page'
[18:01:07][C][template.select:065]:   Icon: 'mdi:page-next-outline'
[18:01:07][C][template.select:066]:   Update Interval: 60.0s
[18:01:07][C][template.select:069]:   Optimistic: YES
[18:01:07][C][template.select:070]:   Initial Option: home
[18:01:07][C][template.select:071]:   Restore Value: YES
[18:01:07][C][uptime.sensor:031]: Uptime Sensor 'nspanelhostovska Uptime seconds'
[18:01:07][C][uptime.sensor:031]:   Device Class: 'duration'
[18:01:07][C][uptime.sensor:031]:   State Class: 'total_increasing'
[18:01:07][C][uptime.sensor:031]:   Unit of Measurement: 's'
[18:01:07][C][uptime.sensor:031]:   Accuracy Decimals: 0
[18:01:07][C][uptime.sensor:031]:   Icon: 'mdi:timer-outline'
[18:01:07][C][template.sensor:022]: Template Sensor 'nspanelhostovska API uptime'
[18:01:07][C][template.sensor:022]:   Device Class: 'timestamp'
[18:01:07][C][template.sensor:022]:   State Class: ''
[18:01:07][C][template.sensor:022]:   Unit of Measurement: ''
[18:01:07][C][template.sensor:022]:   Accuracy Decimals: 0
[18:01:07][C][template.sensor:023]:   Update Interval: never
[18:01:07][C][template.sensor:022]: Template Sensor 'nspanelhostovska Device uptime'
[18:01:07][C][template.sensor:022]:   Device Class: 'timestamp'
[18:01:07][C][template.sensor:022]:   State Class: ''
[18:01:07][C][template.sensor:022]:   Unit of Measurement: ''
[18:01:07][C][template.sensor:022]:   Accuracy Decimals: 0
[18:01:07][C][template.sensor:023]:   Update Interval: never
[18:01:07][C][template.text_sensor:020]: Template Sensor 'nspanelhostovska Detailed Entity'
[18:01:07][C][template.text_sensor:020]:   Icon: 'mdi:tablet-dashboard'
[18:01:07][C][template.text_sensor:020]: Template Sensor 'nspanelhostovska Notification Label'
[18:01:07][C][template.text_sensor:020]: Template Sensor 'nspanelhostovska Notification Text'
[18:01:07][C][switch.gpio:068]: GPIO Switch 'nspanelhostovska Relay 1'
[18:01:07][C][switch.gpio:091]:   Restore Mode: restore defaults to OFF
[18:01:07][C][switch.gpio:031]:   Pin: GPIO22
[18:01:07][C][switch.gpio:068]: GPIO Switch 'nspanelhostovska Relay 2'
[18:01:07][C][switch.gpio:091]:   Restore Mode: restore defaults to OFF
[18:01:07][C][switch.gpio:031]:   Pin: GPIO19
[18:01:07][W][nextion:081]: Nextion is not connected! 
[18:01:07][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanelhostovska Left Button'
[18:01:07][C][gpio.binary_sensor:016]:   Pin: GPIO14
[18:01:07][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanelhostovska Right Button'
[18:01:07][C][gpio.binary_sensor:016]:   Pin: GPIO27
[18:01:07][C][switch.gpio:068]: GPIO Switch 'nspanelhostovska Nextion display - Power'
[18:01:07][C][switch.gpio:091]:   Restore Mode: always ON
[18:01:07][C][switch.gpio:031]:   Pin: GPIO4
[18:01:07][C][template.switch:068]: Template Switch 'nspanelhostovska Notification sound'
[18:01:07][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[18:01:07][C][template.switch:057]:   Optimistic: YES
[18:01:07][C][template.switch:068]: Template Switch 'nspanelhostovska Relay 1 Local'
[18:01:07][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[18:01:07][C][template.switch:057]:   Optimistic: YES
[18:01:07][C][template.switch:068]: Template Switch 'nspanelhostovska Relay 2 Local'
[18:01:07][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[18:01:07][C][template.switch:057]:   Optimistic: YES
[18:01:07][C][template.switch:068]: Template Switch 'nspanelhostovska Relay 0 (dummy)'
[18:01:07][C][template.switch:091]:   Restore Mode: always OFF
[18:01:07][C][template.switch:057]:   Optimistic: YES
[18:01:07][C][template.switch:068]: Template Switch 'nspanelhostovska Notification unread'
[18:01:07][C][template.switch:091]:   Restore Mode: always OFF
[18:01:07][C][template.switch:057]:   Optimistic: YES
[18:01:08][C][rtttl:029]: Rtttl
[18:01:08][C][nextion:128]: Nextion:
[18:01:08][C][nextion:129]:   Device Model:     
[18:01:08][C][nextion:130]:   Firmware Version: 
[18:01:08][C][nextion:131]:   Serial Number:    
[18:01:08][C][nextion:132]:   Flash Size:       
[18:01:08][C][nextion:133]:   Wake On Touch:    YES
[18:01:08][C][nextion:134]:   Exit reparse:     NO
[18:01:08][C][nextion:145]:   Start Up Page:    8
[18:01:08][C][restart.button:017]: Restart Button 'nspanelhostovska Restart'
[18:01:08][C][adc:097]: ADC Sensor 'ntc_source'
[18:01:08][C][adc:097]:   Device Class: 'voltage'
[18:01:08][C][adc:097]:   State Class: 'measurement'
[18:01:08][C][adc:097]:   Unit of Measurement: 'V'
[18:01:08][C][adc:097]:   Accuracy Decimals: 2
[18:01:08][C][adc:107]:   Pin: GPIO38
[18:01:08][C][adc:122]:  Attenuation: 11db
[18:01:08][C][adc:142]:   Update Interval: 60.0s
[18:01:08][C][resistance:010]: Resistance Sensor 'resistance_sensor'
[18:01:08][C][resistance:010]:   State Class: 'measurement'
[18:01:08][C][resistance:010]:   Unit of Measurement: 'Ω'
[18:01:08][C][resistance:010]:   Accuracy Decimals: 1
[18:01:08][C][resistance:010]:   Icon: 'mdi:flash'
[18:01:08][C][resistance:011]:   Configuration: DOWNSTREAM
[18:01:08][C][resistance:012]:   Resistor: 11200.00Ω
[18:01:08][C][resistance:013]:   Reference Voltage: 3.3V
[18:01:08][W][nextion:081]: Nextion is not connected! 
[18:01:08][C][ntc:014]: NTC Sensor 'nspanelhostovska Temperature'
[18:01:08][C][ntc:014]:   Device Class: 'temperature'
[18:01:08][C][ntc:014]:   State Class: 'measurement'
[18:01:08][C][ntc:014]:   Unit of Measurement: '°C'
[18:01:08][C][ntc:014]:   Accuracy Decimals: 1
[18:01:08][C][version.text_sensor:021]: Version Text Sensor 'nspanelhostovska ESPhome Version'
[18:01:08][C][version.text_sensor:021]:   Icon: 'mdi:new-box'
[18:01:08][C][thermostat.climate:1290]: Thermostat 'nspanelhostovska Thermostat'
[18:01:08][C][thermostat.climate:1295]:   Start-up Delay Enabled: NO
[18:01:08][C][thermostat.climate:1311]:   Heating Parameters:
[18:01:08][C][thermostat.climate:1312]:     Deadband: 0.5°C
[18:01:08][C][thermostat.climate:1313]:     Overrun: 0.5°C
[18:01:08][C][thermostat.climate:1320]:     Minimum Off Time: 60s
[18:01:08][C][thermostat.climate:1322]:     Minimum Run Time: 60s
[18:01:08][C][thermostat.climate:1337]:   Minimum Idle Time: 30s
[18:01:08][C][thermostat.climate:1338]:   Supports AUTO: NO
[18:01:08][C][thermostat.climate:1339]:   Supports HEAT/COOL: NO
[18:01:08][C][thermostat.climate:1340]:   Supports COOL: NO
[18:01:08][C][thermostat.climate:1341]:   Supports DRY: NO
[18:01:08][C][thermostat.climate:1342]:   Supports FAN_ONLY: NO
[18:01:08][C][thermostat.climate:1344]:   Supports FAN_ONLY_ACTION_USES_FAN_MODE_TIMER: NO
[18:01:08][C][thermostat.climate:1345]:   Supports FAN_ONLY_COOLING: NO
[18:01:08][C][thermostat.climate:1350]:   Supports FAN_WITH_HEATING: NO
[18:01:08][C][thermostat.climate:1352]:   Supports HEAT: YES
[18:01:08][C][thermostat.climate:1353]:   Supports FAN MODE ON: NO
[18:01:08][C][thermostat.climate:1354]:   Supports FAN MODE OFF: NO
[18:01:08][C][thermostat.climate:1355]:   Supports FAN MODE AUTO: NO
[18:01:08][C][thermostat.climate:1356]:   Supports FAN MODE LOW: NO
[18:01:08][C][thermostat.climate:1357]:   Supports FAN MODE MEDIUM: NO
[18:01:08][C][thermostat.climate:1358]:   Supports FAN MODE HIGH: NO
[18:01:08][C][thermostat.climate:1359]:   Supports FAN MODE MIDDLE: NO
[18:01:08][C][thermostat.climate:980]:       SLEEP Default Mode: HEAT
[18:01:08][C][thermostat.climate:1377]:   Supported CUSTOM PRESETS: 
[18:01:08][C][thermostat.climate:1381]:     Supports Off: YES
[18:01:08][C][homeassistant.time:010]: Home Assistant Time:
[18:01:08][C][homeassistant.time:011]:   Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[18:01:08][C][status:034]: Status Binary Sensor 'nspanelhostovska Status'
[18:01:08][C][status:034]:   Device Class: 'connectivity'
[18:01:08][C][captive_portal:088]: Captive Portal:
[18:01:08][C][web_server:168]: Web Server:
[18:01:08][C][web_server:169]:   Address: nspanelhostovska.local:80
[18:01:08][W][nextion:081]: Nextion is not connected! 
[18:01:08][C][mdns:115]: mDNS:
[18:01:08][C][mdns:116]:   Hostname: nspanelhostovska
[18:01:08][C][ota:097]: Over-The-Air Updates:
[18:01:08][C][ota:098]:   Address: nspanelhostovska.local:3232
[18:01:08][C][ota:101]:   Using Password.
[18:01:08][C][api:139]: API Server:
[18:01:08][C][api:140]:   Address: nspanelhostovska.local:6053
[18:01:08][C][api:142]:   Using noise encryption: YES
[18:01:08][C][wifi_info:009]: WifiInfo IPAddress 'nspanelhostovska IP'
[18:01:08][C][wifi_info:011]: WifiInfo SSID 'nspanelhostovska SSID'
[18:01:08][C][wifi_info:012]: WifiInfo BSSID 'nspanelhostovska BSSID'
[18:01:08][C][http_request:013]: HTTP Request:
[18:01:08][C][http_request:014]:   Timeout: 5000ms
[18:01:08][C][http_request:015]:   User-Agent: ESPHome
[18:01:08][C][http_request:016]:   Follow Redirects: 1
[18:01:08][C][http_request:017]:   Redirect limit: 3
[18:01:08][C][wifi_signal.sensor:009]: WiFi Signal 'nspanelhostovska RSSI'
[18:01:08][C][wifi_signal.sensor:009]:   Device Class: 'signal_strength'
[18:01:08][C][wifi_signal.sensor:009]:   State Class: 'measurement'
[18:01:08][C][wifi_signal.sensor:009]:   Unit of Measurement: 'dBm'
[18:01:08][C][wifi_signal.sensor:009]:   Accuracy Decimals: 0
[18:01:09][W][nextion:081]: Nextion is not connected! 
[18:01:09][W][nextion:081]: Nextion is not connected! 
[18:01:09][W][component:214]: Component display took a long time for an operation (0.17 s).
[18:01:09][W][component:215]: Components should block for at most 20-30ms.
[18:01:10][W][nextion:081]: Nextion is not connected! 
[18:01:10][W][nextion:081]: Nextion is not connected! 
[18:01:11][W][nextion:081]: Nextion is not connected! 
[18:01:11][W][nextion:081]: Nextion is not connected! 
[18:01:12][W][nextion:081]: Nextion is not connected! 
[18:01:12][W][nextion:081]: Nextion is not connected! 
[18:01:13][W][nextion:081]: Nextion is not connected! 
[18:01:14][W][nextion:081]: Nextion is not connected! 
[18:01:14][W][nextion:081]: Nextion is not connected! 
[18:01:15][W][nextion:081]: Nextion is not connected! 
[18:01:15][W][nextion:081]: Nextion is not connected! 
[18:01:16][W][nextion:081]: Nextion is not connected! 
[18:01:16][W][nextion:081]: Nextion is not connected! 
[18:01:17][W][nextion:081]: Nextion is not connected! 
[18:01:17][W][nextion:081]: Nextion is not connected! 
[18:01:18][W][nextion:081]: Nextion is not connected! 
[18:01:18][W][nextion:081]: Nextion is not connected! 
[18:01:19][W][nextion:081]: Nextion is not connected! 
[18:01:19][W][nextion:081]: Nextion is not connected! 
[18:01:19][W][component:214]: Component display took a long time for an operation (0.17 s).
[18:01:19][W][component:215]: Components should block for at most 20-30ms.
[18:01:20][W][nextion:081]: Nextion is not connected! 
[18:01:21][W][nextion:081]: Nextion is not connected! 
[18:01:21][W][nextion:081]: Nextion is not connected! 
[18:01:22][W][nextion:081]: Nextion is not connected! 
[18:01:22][W][nextion:081]: Nextion is not connected! 
[18:01:23][W][nextion:081]: Nextion is not connected! 
[18:01:23][W][nextion:081]: Nextion is not connected! 
[18:01:24][W][nextion:081]: Nextion is not connected! 
[18:01:24][W][nextion:081]: Nextion is not connected! 
[18:01:25][W][nextion:081]: Nextion is not connected! 
[18:01:25][D][sensor:094]: 'nspanelhostovska RSSI': Sending state -65.00000 dBm with 0 decimals of accuracy
[18:01:25][W][nextion:081]: Nextion is not connected! 
[18:01:26][W][nextion:081]: Nextion is not connected! 
[18:01:26][W][nextion:081]: Nextion is not connected! 
[18:01:27][W][nextion:081]: Nextion is not connected! 
[18:01:27][W][nextion:081]: Nextion is not connected! 
[18:01:28][W][nextion:081]: Nextion is not connected! 
[18:01:28][W][nextion:081]: Nextion is not connected! 
[18:01:29][W][nextion:081]: Nextion is not connected! 
[18:01:30][W][nextion:081]: Nextion is not connected! 
[18:01:30][W][component:214]: Component display took a long time for an operation (0.17 s).
[18:01:30][W][component:215]: Components should block for at most 20-30ms.
[18:01:30][W][nextion:081]: Nextion is not connected! 
[18:01:31][W][nextion:081]: Nextion is not connected! 
[18:01:31][W][nextion:081]: Nextion is not connected! 
[18:01:32][W][nextion:081]: Nextion is not connected! 
[18:01:32][W][nextion:081]: Nextion is not connected! 
[18:01:33][W][nextion:081]: Nextion is not connected! 
[18:01:33][W][nextion:081]: Nextion is not connected! 
[18:01:34][W][nextion:081]: Nextion is not connected! 
[18:01:34][W][nextion:081]: Nextion is not connected! 
[18:01:35][W][nextion:081]: Nextion is not connected! 
[18:01:35][W][nextion:081]: Nextion is not connected! 
[18:01:36][W][nextion:081]: Nextion is not connected! 
[18:01:36][W][nextion:081]: Nextion is not connected! 
[18:01:37][W][nextion:081]: Nextion is not connected! 
[18:01:37][W][nextion:081]: Nextion is not connected! 
[18:01:38][W][nextion:081]: Nextion is not connected! 
[18:01:38][W][nextion:081]: Nextion is not connected! 
[18:01:39][W][nextion:081]: Nextion is not connected! 
[18:01:40][W][nextion:081]: Nextion is not connected! 
[18:01:40][W][component:214]: Component display took a long time for an operation (0.17 s).
[18:01:40][W][component:215]: Components should block for at most 20-30ms.
[18:01:40][W][nextion:081]: Nextion is not connected! 
[18:01:41][W][nextion:081]: Nextion is not connected! 
[18:01:41][W][nextion:081]: Nextion is not connected! 
[18:01:42][W][nextion:081]: Nextion is not connected! 
[18:01:42][W][nextion:081]: Nextion is not connected! 
[18:01:43][W][nextion:081]: Nextion is not connected! 
[18:01:43][W][nextion:081]: Nextion is not connected! 
[18:01:44][W][nextion:081]: Nextion is not connected! 
[18:01:44][W][nextion:081]: Nextion is not connected! 
[18:01:45][W][nextion:081]: Nextion is not connected! 
[18:01:45][D][sensor:094]: 'ntc_source': Sending state 1.59900 V with 2 decimals of accuracy
[18:01:45][D][resistance:039]: 'resistance_sensor' - Resistance 10528.4Ω
[18:01:45][D][sensor:094]: 'resistance_sensor': Sending state 10528.39551 Ω with 1 decimals of accuracy
[18:01:45][D][ntc:026]: 'nspanelhostovska Temperature' - Temperature: 23.8°C
[18:01:45][D][sensor:094]: 'nspanelhostovska Temperature': Sending state 24.84570 °C with 1 decimals of accuracy
[18:01:45][D][climate:396]: 'nspanelhostovska Thermostat' - Sending state:
[18:01:45][D][climate:399]:   Mode: HEAT
[18:01:45][D][climate:401]:   Action: IDLE
[18:01:45][D][climate:410]:   Preset: HOME
[18:01:45][D][climate:419]:   Current Temperature: 24.85°C
[18:01:45][D][climate:425]:   Target Temperature: 23.00°C
[18:01:45][D][main:1786]: Climate state changed - Start
[18:01:45][D][text_sensor:064]: 'nspanelhostovska Detailed Entity': Sending state 'embedded_climate'
[18:01:45][D][main:1793]: Climate state changed - End
[18:01:45][W][nextion:081]: Nextion is not connected! 
[18:01:46][W][nextion:081]: Nextion is not connected! 
[18:01:46][W][nextion:081]: Nextion is not connected! 
[18:01:47][W][nextion:081]: Nextion is not connected! 
[18:01:48][W][nextion:081]: Nextion is not connected! 
[18:01:48][W][nextion:081]: Nextion is not connected! 
[18:01:49][W][nextion:081]: Nextion is not connected! 
[18:01:49][W][nextion:081]: Nextion is not connected! 
[18:01:50][W][nextion:081]: Nextion is not connected! 
[18:01:50][W][component:214]: Component display took a long time for an operation (0.17 s).
[18:01:50][W][component:215]: Components should block for at most 20-30ms.
[18:01:50][W][nextion:081]: Nextion is not connected! 
[18:01:51][W][nextion:081]: Nextion is not connected! 
[18:01:51][W][nextion:081]: Nextion is not connected! 
[18:01:52][W][nextion:081]: Nextion is not connected! 
[18:01:52][W][nextion:081]: Nextion is not connected! 
[18:01:53][W][nextion:081]: Nextion is not connected! 
[18:01:53][W][nextion:081]: Nextion is not connected! 
[18:01:54][W][nextion:081]: Nextion is not connected! 
[18:01:54][W][nextion:081]: Nextion is not connected! 
[18:01:55][W][nextion:081]: Nextion is not connected! 
[18:01:55][W][nextion:081]: Nextion is not connected! 
[18:01:56][W][nextion:081]: Nextion is not connected! 
[18:01:57][W][nextion:081]: Nextion is not connected! 
[18:01:57][W][nextion:081]: Nextion is not connected! 
[18:01:58][W][nextion:081]: Nextion is not connected! 
[18:01:58][W][nextion:081]: Nextion is not connected! 
[18:01:59][W][nextion:081]: Nextion is not connected! 
[18:01:59][W][nextion:081]: Nextion is not connected! 
[18:02:00][W][nextion:081]: Nextion is not connected! 
[18:02:00][W][component:214]: Component display took a long time for an operation (0.17 s).
[18:02:00][W][component:215]: Components should block for at most 20-30ms.
[18:02:00][W][nextion:081]: Nextion is not connected! 
[18:02:01][W][nextion:081]: Nextion is not connected! 
[18:02:01][W][nextion:081]: Nextion is not connected! 
[18:02:02][W][nextion:081]: Nextion is not connected! 
[18:02:02][W][nextion:081]: Nextion is not connected! 
[18:02:03][W][nextion:081]: Nextion is not connected! 
[18:02:03][W][nextion:081]: Nextion is not connected! 
[18:02:04][W][nextion:081]: Nextion is not connected! 
[18:02:04][D][sensor:094]: 'nspanelhostovska Uptime seconds': Sending state 536.44800 s with 0 decimals of accuracy
[18:02:04][D][esp32.preferences:114]: Saving 1 preferences to flash...
[18:02:04][D][esp32.preferences:143]: Saving 1 preferences to flash: 1 cached, 0 written, 0 failed
[18:02:05][W][nextion:081]: Nextion is not connected! 
[18:02:05][W][nextion:081]: Nextion is not connected! 
[18:02:06][W][nextion:081]: Nextion is not connected! 
[18:02:06][W][nextion:081]: Nextion is not connected! 
[18:02:07][W][nextion:081]: Nextion is not connected! 
[18:02:07][W][nextion:081]: Nextion is not connected! 
[18:02:08][W][nextion:081]: Nextion is not connected! 
[18:02:08][W][nextion:081]: Nextion is not connected! 
[18:02:09][W][nextion:081]: Nextion is not connected! 
[18:02:09][W][nextion:081]: Nextion is not connected! 
[18:02:10][W][nextion:081]: Nextion is not connected! 
[18:02:10][W][component:214]: Component display took a long time for an operation (0.17 s).
[18:02:10][W][component:215]: Components should block for at most 20-30ms.
[18:02:10][W][nextion:081]: Nextion is not connected! 
[18:02:11][W][nextion:081]: Nextion is not connected! 
[18:02:12][W][nextion:081]: Nextion is not connected! 
[18:02:12][W][nextion:081]: Nextion is not connected! 
[18:02:13][W][nextion:081]: Nextion is not connected! 
[18:02:13][W][nextion:081]: Nextion is not connected! 
[18:02:14][W][nextion:081]: Nextion is not connected! 
[18:02:14][W][nextion:081]: Nextion is not connected! 
[18:02:15][W][nextion:081]: Nextion is not connected! 
[18:02:15][W][nextion:081]: Nextion is not connected! 
[18:02:16][W][nextion:081]: Nextion is not connected!

Home Assistant logs

No response

edwardtfn commented 9 months ago

[18:01:07][C][uart.idf:145]: Baud Rate: 921600 baud

Take a look at the baud rate in the top-right corner of your display. It is probably 115200 bps.

Go to Device's page (Settings > Devices & Services > ESPHome), in the Configuration area, change Baud rate to the same value shown on your display. It may be that the Baud rate control isn't enabled, so you will have to enable that first.

edwardtfn commented 9 months ago

Off-topic, what are you trying to achieve with those customizations to the hardware button?

NoFace3D commented 9 months ago

You are right display is showing 115200 bps, but I don't have Baud rate control in the Configuration area and I also don't see it between disabled entities. How can I enable this entity in HA?

Should I configure it in esphome yaml instead?

uart:
  - id: !extend tf_uart
    baud_rate: 115200
NoFace3D commented 9 months ago

Off-topic, what are you trying to achieve with those customizations to the hardware button?

To be able to simulate/reproduce physical button press from HA.

BTW I'd appreciate to have the same possibility for standard short button press, like for the hold action where you can define action/multiple actions. Without it I have to use automation entity and maintain actions for short press there.

edwardtfn commented 9 months ago

Ok, looking again at your log, looks like you are in an older version on the ESPHome side. If you keep that old version, that customization to UART should solve, but then you will get an issue with version mismatch.

Try cleaning your build files, then install ESPHome to your device again, using ref: main. The baud rate settings should be there, but it will use 115200bps as default, so it should work without changing that.

edwardtfn commented 9 months ago

BTW I'd appreciate to have the same possibility for standard short button press, like for the hold action where you can define action/multiple actions. Without it I have to use automation entity and maintain actions for short press there.

I didn't got your point... why don't you create another issue (Enhancement request)? So we can discuss this on detail?

NoFace3D commented 9 months ago

I've cleaned build files and performed reinstalltion of ESPHome and the result was the same like at the beginning with baud rate 921600 in log and 115200 on the display. Setting it manually helped, however display is still only "Initializing.."

INFO Upload took 4.45 seconds, waiting for result...
INFO OTA successful
INFO Successfully uploaded program.
INFO Starting log output from 192.168.1.245 using esphome API
INFO Successfully connected to nspanelhostovska @ 192.168.1.245 in 31.800s
INFO Successful handshake with nspanelhostovska @ 192.168.1.245 in 0.105s
[20:06:00][I][app:102]: ESPHome version 2023.12.8 compiled on Jan 20 2024, 20:02:31
[20:06:00][C][wifi:573]: WiFi:
[20:06:00][C][wifi:405]:   Local MAC: 48:E7:29:C5:DC:44
[20:06:00][C][wifi:410]:   SSID: [redacted]
[20:06:00][C][wifi:411]:   IP Address: 192.168.1.245
[20:06:00][C][wifi:413]:   BSSID: [redacted]
[20:06:00][C][wifi:414]:   Hostname: 'nspanelhostovska'
[20:06:00][C][wifi:416]:   Signal strength: -77 dB ▂▄▆█
[20:06:00][C][wifi:420]:   Channel: 1
[20:06:00][C][wifi:421]:   Subnet: 255.255.255.0
[20:06:00][C][wifi:422]:   Gateway: 192.168.1.1
[20:06:00][C][wifi:423]:   DNS1: 192.168.1.1
[20:06:00][C][wifi:424]:   DNS2: 0.0.0.0
[20:06:00][C][logger:439]: Logger:
[20:06:00][C][logger:440]:   Level: DEBUG
[20:06:00][C][logger:441]:   Log Baud Rate: 0
[20:06:00][C][logger:443]:   Hardware UART: UART0
[20:06:00][C][uart.idf:139]: UART Bus 0:
[20:06:00][C][uart.idf:140]:   TX Pin: GPIO16
[20:06:00][C][uart.idf:141]:   RX Pin: GPIO17
[20:06:00][C][uart.idf:143]:   RX Buffer Size: 256
[20:06:00][C][uart.idf:145]:   Baud Rate: 115200 baud
[20:06:00][C][uart.idf:146]:   Data Bits: 8
[20:06:00][C][uart.idf:147]:   Parity: NONE
[20:06:00][C][uart.idf:148]:   Stop bits: 1
[20:06:00][C][ledc.output:164]: LEDC Output:
[20:06:00][C][ledc.output:165]:   Pin GPIO21
[20:06:00][C][ledc.output:166]:   LEDC Channel: 0
[20:06:00][C][ledc.output:167]:   PWM Frequency: 1000.0 Hz
[20:06:00][C][ledc.output:168]:   Bit depth: 16
[20:06:00][C][template.binary_sensor:028]: Template Binary Sensor 'nspanelhostovska Nextion display'
[20:06:00][C][template.binary_sensor:028]:   Device Class: 'connectivity'
[20:06:00][C][template.number:050]: Template Number 'nspanelhostovska Display Brightness'
[20:06:00][C][template.number:050]:   Unit of Measurement: '%'
[20:06:00][C][template.number:051]:   Optimistic: YES
[20:06:00][C][template.number:052]:   Update Interval: 60.0s
[20:06:00][C][template.number:050]: Template Number 'nspanelhostovska Display Brightness Dimdown'
[20:06:00][C][template.number:050]:   Unit of Measurement: '%'
[20:06:00][C][template.number:051]:   Optimistic: YES
[20:06:00][C][template.number:052]:   Update Interval: 60.0s
[20:06:00][C][template.number:050]: Template Number 'nspanelhostovska Temperature Correction'
[20:06:00][C][template.number:050]:   Unit of Measurement: '°C'
[20:06:00][C][template.number:051]:   Optimistic: YES
[20:06:00][C][template.number:052]:   Update Interval: 60.0s
[20:06:00][C][template.number:050]: Template Number 'nspanelhostovska Timeout Page'
[20:06:00][C][template.number:050]:   Icon: 'mdi:timer'
[20:06:00][C][template.number:050]:   Unit of Measurement: 's'
[20:06:00][C][template.number:051]:   Optimistic: YES
[20:06:00][C][template.number:052]:   Update Interval: 60.0s
[20:06:00][C][template.number:050]: Template Number 'nspanelhostovska Timeout Dimming'
[20:06:00][C][template.number:050]:   Icon: 'mdi:timer'
[20:06:00][C][template.number:050]:   Unit of Measurement: 's'
[20:06:00][C][template.number:051]:   Optimistic: YES
[20:06:00][C][template.number:052]:   Update Interval: 60.0s
[20:06:00][C][template.number:050]: Template Number 'nspanelhostovska Timeout Sleep'
[20:06:00][C][template.number:050]:   Icon: 'mdi:timer'
[20:06:00][C][template.number:050]:   Unit of Measurement: 's'
[20:06:00][C][template.number:051]:   Optimistic: YES
[20:06:00][C][template.number:052]:   Update Interval: 60.0s
[20:06:00][C][template.select:065]: Template Select 'nspanelhostovska Wake-up page'
[20:06:00][C][template.select:065]:   Icon: 'mdi:page-next-outline'
[20:06:00][C][template.select:066]:   Update Interval: 60.0s
[20:06:00][C][template.select:069]:   Optimistic: YES
[20:06:00][C][template.select:070]:   Initial Option: home
[20:06:00][C][template.select:071]:   Restore Value: YES
[20:06:00][C][uptime.sensor:031]: Uptime Sensor 'nspanelhostovska Uptime seconds'
[20:06:00][C][uptime.sensor:031]:   Device Class: 'duration'
[20:06:00][C][uptime.sensor:031]:   State Class: 'total_increasing'
[20:06:00][C][uptime.sensor:031]:   Unit of Measurement: 's'
[20:06:00][C][uptime.sensor:031]:   Accuracy Decimals: 0
[20:06:00][C][uptime.sensor:031]:   Icon: 'mdi:timer-outline'
[20:06:00][C][template.sensor:022]: Template Sensor 'nspanelhostovska API uptime'
[20:06:00][C][template.sensor:022]:   Device Class: 'timestamp'
[20:06:00][C][template.sensor:022]:   State Class: ''
[20:06:00][C][template.sensor:022]:   Unit of Measurement: ''
[20:06:00][C][template.sensor:022]:   Accuracy Decimals: 0
[20:06:00][C][template.sensor:023]:   Update Interval: never
[20:06:00][C][template.sensor:022]: Template Sensor 'nspanelhostovska Device uptime'
[20:06:00][C][template.sensor:022]:   Device Class: 'timestamp'
[20:06:00][C][template.sensor:022]:   State Class: ''
[20:06:00][C][template.sensor:022]:   Unit of Measurement: ''
[20:06:00][C][template.sensor:022]:   Accuracy Decimals: 0
[20:06:00][C][template.sensor:023]:   Update Interval: never
[20:06:00][C][template.text_sensor:020]: Template Sensor 'nspanelhostovska Detailed Entity'
[20:06:00][C][template.text_sensor:020]:   Icon: 'mdi:tablet-dashboard'
[20:06:00][C][template.text_sensor:020]: Template Sensor 'nspanelhostovska Notification Label'
[20:06:00][C][template.text_sensor:020]: Template Sensor 'nspanelhostovska Notification Text'
[20:06:00][C][switch.gpio:068]: GPIO Switch 'nspanelhostovska Relay 1'
[20:06:00][C][switch.gpio:091]:   Restore Mode: restore defaults to OFF
[20:06:00][C][switch.gpio:031]:   Pin: GPIO22
[20:06:01][C][switch.gpio:068]: GPIO Switch 'nspanelhostovska Relay 2'
[20:06:01][C][switch.gpio:091]:   Restore Mode: restore defaults to OFF
[20:06:01][C][switch.gpio:031]:   Pin: GPIO19
[20:06:01][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanelhostovska Left Button'
[20:06:01][C][gpio.binary_sensor:016]:   Pin: GPIO14
[20:06:01][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanelhostovska Right Button'
[20:06:01][C][gpio.binary_sensor:016]:   Pin: GPIO27
[20:06:01][C][switch.gpio:068]: GPIO Switch 'nspanelhostovska Nextion display - Power'
[20:06:01][C][switch.gpio:091]:   Restore Mode: always ON
[20:06:01][C][switch.gpio:031]:   Pin: GPIO4
[20:06:01][C][template.switch:068]: Template Switch 'nspanelhostovska Notification sound'
[20:06:01][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[20:06:01][C][template.switch:057]:   Optimistic: YES
[20:06:01][C][template.switch:068]: Template Switch 'nspanelhostovska Relay 1 Local'
[20:06:01][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[20:06:01][C][template.switch:057]:   Optimistic: YES
[20:06:01][C][template.switch:068]: Template Switch 'nspanelhostovska Relay 2 Local'
[20:06:01][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[20:06:01][C][template.switch:057]:   Optimistic: YES
[20:06:01][C][template.switch:068]: Template Switch 'nspanelhostovska Relay 0 (dummy)'
[20:06:01][C][template.switch:091]:   Restore Mode: always OFF
[20:06:01][C][template.switch:057]:   Optimistic: YES
[20:06:01][C][template.switch:068]: Template Switch 'nspanelhostovska Notification unread'
[20:06:01][C][template.switch:091]:   Restore Mode: always OFF
[20:06:01][C][template.switch:057]:   Optimistic: YES
[20:06:01][C][rtttl:029]: Rtttl
[20:06:01][C][nextion:128]: Nextion:
[20:06:01][C][nextion:129]:   Device Model:     NX4832F035_011C
[20:06:01][C][nextion:130]:   Firmware Version: 72
[20:06:01][C][nextion:131]:   Serial Number:    0AB134012861AC31
[20:06:01][C][nextion:132]:   Flash Size:       16777216
[20:06:01][C][nextion:133]:   Wake On Touch:    YES
[20:06:01][C][nextion:134]:   Exit reparse:     NO
[20:06:01][C][nextion:145]:   Start Up Page:    8
[20:06:01][C][restart.button:017]: Restart Button 'nspanelhostovska Restart'
[20:06:01][C][adc:097]: ADC Sensor 'ntc_source'
[20:06:01][C][adc:097]:   Device Class: 'voltage'
[20:06:01][C][adc:097]:   State Class: 'measurement'
[20:06:01][C][adc:097]:   Unit of Measurement: 'V'
[20:06:01][C][adc:097]:   Accuracy Decimals: 2
[20:06:01][C][adc:107]:   Pin: GPIO38
[20:06:01][C][adc:122]:  Attenuation: 11db
[20:06:01][C][adc:142]:   Update Interval: 60.0s
[20:06:01][C][resistance:010]: Resistance Sensor 'resistance_sensor'
[20:06:01][C][resistance:010]:   State Class: 'measurement'
[20:06:01][C][resistance:010]:   Unit of Measurement: 'Ω'
[20:06:01][C][resistance:010]:   Accuracy Decimals: 1
[20:06:01][C][resistance:010]:   Icon: 'mdi:flash'
[20:06:01][C][resistance:011]:   Configuration: DOWNSTREAM
[20:06:01][C][resistance:012]:   Resistor: 11200.00Ω
[20:06:01][C][resistance:013]:   Reference Voltage: 3.3V
[20:06:01][C][ntc:014]: NTC Sensor 'nspanelhostovska Temperature'
[20:06:01][C][ntc:014]:   Device Class: 'temperature'
[20:06:01][C][ntc:014]:   State Class: 'measurement'
[20:06:01][C][ntc:014]:   Unit of Measurement: '°C'
[20:06:01][C][ntc:014]:   Accuracy Decimals: 1
[20:06:01][C][version.text_sensor:021]: Version Text Sensor 'nspanelhostovska ESPhome Version'
[20:06:01][C][version.text_sensor:021]:   Icon: 'mdi:new-box'
[20:06:01][C][thermostat.climate:1290]: Thermostat 'nspanelhostovska Thermostat'
[20:06:01][C][thermostat.climate:1295]:   Start-up Delay Enabled: NO
[20:06:01][C][thermostat.climate:1311]:   Heating Parameters:
[20:06:01][C][thermostat.climate:1312]:     Deadband: 0.5°C
[20:06:01][C][thermostat.climate:1313]:     Overrun: 0.5°C
[20:06:01][C][thermostat.climate:1320]:     Minimum Off Time: 60s
[20:06:01][C][thermostat.climate:1322]:     Minimum Run Time: 60s
[20:06:01][C][thermostat.climate:1337]:   Minimum Idle Time: 30s
[20:06:01][C][thermostat.climate:1338]:   Supports AUTO: NO
[20:06:01][C][thermostat.climate:1339]:   Supports HEAT/COOL: NO
[20:06:01][C][thermostat.climate:1340]:   Supports COOL: NO
[20:06:01][C][thermostat.climate:1341]:   Supports DRY: NO
[20:06:01][C][thermostat.climate:1342]:   Supports FAN_ONLY: NO
[20:06:01][C][thermostat.climate:1344]:   Supports FAN_ONLY_ACTION_USES_FAN_MODE_TIMER: NO
[20:06:01][C][thermostat.climate:1345]:   Supports FAN_ONLY_COOLING: NO
[20:06:01][C][thermostat.climate:1350]:   Supports FAN_WITH_HEATING: NO
[20:06:01][C][thermostat.climate:1352]:   Supports HEAT: YES
[20:06:01][C][thermostat.climate:1353]:   Supports FAN MODE ON: NO
[20:06:01][C][thermostat.climate:1354]:   Supports FAN MODE OFF: NO
[20:06:01][C][thermostat.climate:1355]:   Supports FAN MODE AUTO: NO
[20:06:01][C][thermostat.climate:1356]:   Supports FAN MODE LOW: NO
[20:06:01][C][thermostat.climate:1357]:   Supports FAN MODE MEDIUM: NO
[20:06:01][C][thermostat.climate:1358]:   Supports FAN MODE HIGH: NO
[20:06:01][C][thermostat.climate:1359]:   Supports FAN MODE MIDDLE: NO
[20:06:01][C][thermostat.climate:1360]:   Supports FAN MODE FOCUS: NO
[20:06:01][C][thermostat.climate:1361]:   Supports FAN MODE DIFFUSE: NO
[20:06:01][C][thermostat.climate:1362]:   Supports FAN MODE QUIET: NO
[20:06:01][C][thermostat.climate:1363]:   Supports SWING MODE BOTH: NO
[20:06:01][C][thermostat.climate:1364]:   Supports SWING MODE OFF: NO
[20:06:01][C][thermostat.climate:1365]:   Supports SWING MODE HORIZONTAL: NO
[20:06:01][C][thermostat.climate:1366]:   Supports SWING MODE VERTICAL: NO
[20:06:01][C][thermostat.climate:1367]:   Supports TWO SET POINTS: NO
[20:06:01][C][thermostat.climate:1369]:   Supported PRESETS: 
[20:06:01][C][thermostat.climate:1373]:     Supports HOME: YES
[20:06:01][C][thermostat.climate:959]:       HOME Is Default: YES
[20:06:01][C][thermostat.climate:966]:       HOME Default Target Temperature Low: 23.0°C
[20:06:01][C][thermostat.climate:980]:       HOME Default Mode: HEAT
[20:06:01][C][thermostat.climate:1373]:     Supports AWAY: YES
[20:06:01][C][thermostat.climate:959]:       AWAY Is Default: NO
[20:06:01][C][thermostat.climate:966]:       AWAY Default Target Temperature Low: 18.0°C
[20:06:01][C][thermostat.climate:980]:       AWAY Default Mode: HEAT
[20:06:01][C][thermostat.climate:1373]:     Supports ECO: YES
[20:06:01][C][thermostat.climate:959]:       ECO Is Default: NO
[20:06:01][C][thermostat.climate:966]:       ECO Default Target Temperature Low: 20.0°C
[20:06:01][C][thermostat.climate:980]:       ECO Default Mode: HEAT
[20:06:01][C][thermostat.climate:1373]:     Supports SLEEP: YES
[20:06:01][C][thermostat.climate:959]:       SLEEP Is Default: NO
[20:06:01][C][thermostat.climate:966]:       SLEEP Default Target Temperature Low: 21.0°C
[20:06:01][C][homeassistant.time:010]: Home Assistant Time:
[20:06:01][C][homeassistant.time:011]:   Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[20:06:01][C][status:034]: Status Binary Sensor 'nspanelhostovska Status'
[20:06:01][C][status:034]:   Device Class: 'connectivity'
[20:06:01][C][captive_portal:088]: Captive Portal:
[20:06:01][C][web_server:168]: Web Server:
[20:06:01][C][web_server:169]:   Address: nspanelhostovska.local:80
[20:06:01][C][mdns:115]: mDNS:
[20:06:01][C][mdns:116]:   Hostname: nspanelhostovska
[20:06:01][C][ota:097]: Over-The-Air Updates:
[20:06:01][C][ota:098]:   Address: nspanelhostovska.local:3232
[20:06:01][C][ota:101]:   Using Password.
[20:06:01][C][api:139]: API Server:
[20:06:01][C][api:140]:   Address: nspanelhostovska.local:6053
[20:06:01][C][api:142]:   Using noise encryption: YES
[20:06:01][C][wifi_info:009]: WifiInfo IPAddress 'nspanelhostovska IP'
[20:06:01][C][wifi_info:011]: WifiInfo SSID 'nspanelhostovska SSID'
[20:06:01][C][wifi_info:012]: WifiInfo BSSID 'nspanelhostovska BSSID'
[20:06:01][C][http_request:013]: HTTP Request:
[20:06:01][C][http_request:014]:   Timeout: 5000ms
[20:06:01][C][http_request:015]:   User-Agent: ESPHome
[20:06:01][C][http_request:016]:   Follow Redirects: 1
[20:06:01][C][http_request:017]:   Redirect limit: 3
[20:06:01][C][wifi_signal.sensor:009]: WiFi Signal 'nspanelhostovska RSSI'
[20:06:01][C][wifi_signal.sensor:009]:   Device Class: 'signal_strength'
[20:06:02][C][wifi_signal.sensor:009]:   State Class: 'measurement'
[20:06:02][C][wifi_signal.sensor:009]:   Unit of Measurement: 'dBm'
[20:06:02][C][wifi_signal.sensor:009]:   Accuracy Decimals: 0
[20:06:07][D][sensor:094]: 'ntc_source': Sending state 1.61000 V with 2 decimals of accuracy
[20:06:07][D][resistance:039]: 'resistance_sensor' - Resistance 10669.8Ω
[20:06:07][D][sensor:094]: 'resistance_sensor': Sending state 10669.82324 Ω with 1 decimals of accuracy
[20:06:07][D][ntc:026]: 'nspanelhostovska Temperature' - Temperature: 23.5°C
[20:06:07][D][sensor:094]: 'nspanelhostovska Temperature': Sending state 24.54803 °C with 1 decimals of accuracy
[20:06:07][D][climate:396]: 'nspanelhostovska Thermostat' - Sending state:
[20:06:07][D][climate:399]:   Mode: HEAT
[20:06:07][D][climate:401]:   Action: IDLE
[20:06:07][D][climate:410]:   Preset: HOME
[20:06:07][D][climate:419]:   Current Temperature: 24.55°C
[20:06:07][D][climate:425]:   Target Temperature: 23.00°C
[20:06:07][D][main:1786]: Climate state changed - Start
[20:06:07][D][text_sensor:064]: 'nspanelhostovska Detailed Entity': Sending state 'embedded_climate'
[20:06:07][D][main:1793]: Climate state changed - End
[20:06:07][W][component:214]: Component adc.sensor took a long time for an operation (0.05 s).
[20:06:07][W][component:215]: Components should block for at most 20-30ms.
[20:06:09][D][nextion:464]: Got new page: 8
[20:06:09][D][display.disp1.on_page:753]: Nextion page changed
[20:06:09][D][display.disp1.on_page:754]: New page: boot (8)
[20:06:16][D][sensor:094]: 'nspanelhostovska Uptime seconds': Sending state 48.88000 s with 0 decimals of accuracy
[20:06:19][D][nextion:464]: Got new page: 8
[20:06:19][D][display.disp1.on_page:753]: Nextion page changed
[20:06:19][D][display.disp1.on_page:754]: New page: boot (8)
[20:06:22][D][esp32.preferences:114]: Saving 1 preferences to flash...
[20:06:22][D][esp32.preferences:143]: Saving 1 preferences to flash: 1 cached, 0 written, 0 failed
[20:06:27][D][sensor:094]: 'nspanelhostovska RSSI': Sending state -79.00000 dBm with 0 decimals of accuracy
[20:06:29][D][nextion:464]: Got new page: 8
[20:06:29][D][display.disp1.on_page:753]: Nextion page changed
[20:06:29][D][display.disp1.on_page:754]: New page: boot (8)
WARNING nspanelhostovska @ 192.168.1.245: Connection error occurred: [Errno 104] Connection reset by peer
INFO Processing unexpected disconnect from ESPHome API for nspanelhostovska @ 192.168.1.245
WARNING Disconnected from API
INFO Successfully connected to nspanelhostovska @ 192.168.1.245 in 0.107s
INFO Successful handshake with nspanelhostovska @ 192.168.1.245 in 0.392s
[20:07:01][D][time:045]: Synchronized time: 2024-01-20 20:07:01
[20:07:01][D][main:090]: System clock synchronized
[20:07:01][D][sensor:094]: 'nspanelhostovska API uptime': Sending state 1705777664.00000  with 0 decimals of accuracy
[20:07:01][D][sensor:094]: 'nspanelhostovska Device uptime': Sending state 1705777664.00000  with 0 decimals of accuracy
[20:07:07][D][sensor:094]: 'ntc_source': Sending state 1.60800 V with 2 decimals of accuracy
[20:07:07][D][resistance:039]: 'resistance_sensor' - Resistance 10644.0Ω
[20:07:07][D][sensor:094]: 'resistance_sensor': Sending state 10643.97266 Ω with 1 decimals of accuracy
[20:07:07][D][ntc:026]: 'nspanelhostovska Temperature' - Temperature: 23.6°C
[20:07:07][D][sensor:094]: 'nspanelhostovska Temperature': Sending state 24.60209 °C with 1 decimals of accuracy
[20:07:07][D][climate:396]: 'nspanelhostovska Thermostat' - Sending state:
[20:07:07][D][climate:399]:   Mode: HEAT
[20:07:07][D][climate:401]:   Action: IDLE
[20:07:07][D][climate:410]:   Preset: HOME
[20:07:07][D][climate:419]:   Current Temperature: 24.60°C
[20:07:07][D][climate:425]:   Target Temperature: 23.00°C
[20:07:07][D][main:1786]: Climate state changed - Start
[20:07:07][D][text_sensor:064]: 'nspanelhostovska Detailed Entity': Sending state 'embedded_climate'
[20:07:07][D][main:1793]: Climate state changed - End
[20:07:09][D][nextion:464]: Got new page: 8
[20:07:09][D][display.disp1.on_page:753]: Nextion page changed
[20:07:09][D][display.disp1.on_page:754]: New page: boot (8)
[20:07:16][D][sensor:094]: 'nspanelhostovska Uptime seconds': Sending state 108.88000 s with 0 decimals of accuracy
[20:07:19][D][nextion:464]: Got new page: 8
[20:07:19][D][display.disp1.on_page:753]: Nextion page changed
[20:07:19][D][display.disp1.on_page:754]: New page: boot (8)
[20:07:22][D][esp32.preferences:114]: Saving 1 preferences to flash...
[20:07:22][D][esp32.preferences:143]: Saving 1 preferences to flash: 1 cached, 0 written, 0 failed
[20:07:27][D][sensor:094]: 'nspanelhostovska RSSI': Sending state -62.00000 dBm with 0 decimals of accuracy
[20:07:29][D][nextion:464]: Got new page: 8
[20:07:29][D][display.disp1.on_page:753]: Nextion page changed
[20:07:29][D][display.disp1.on_page:754]: New page: boot (8)
[20:07:35][D][nextion:446]: Got touch event:
[20:07:35][D][nextion:447]:   page_id:      8
[20:07:35][D][nextion:448]:   component_id: 0
[20:07:35][D][nextion:449]:   event type:   PRESS
[20:07:35][D][nextion:446]: Got touch event:
[20:07:35][D][nextion:447]:   page_id:      8
[20:07:35][D][nextion:448]:   component_id: 0
[20:07:35][D][nextion:449]:   event type:   RELEASE
[20:07:36][D][nextion:446]: Got touch event:
[20:07:36][D][nextion:447]:   page_id:      8
[20:07:36][D][nextion:448]:   component_id: 0
[20:07:36][D][nextion:449]:   event type:   PRESS
[20:07:36][D][nextion:446]: Got touch event:
[20:07:36][D][nextion:447]:   page_id:      8
[20:07:36][D][nextion:448]:   component_id: 0
[20:07:36][D][nextion:449]:   event type:   RELEASE
[20:07:36][D][nextion:446]: Got touch event:
[20:07:36][D][nextion:447]:   page_id:      8
[20:07:36][D][nextion:448]:   component_id: 0
[20:07:36][D][nextion:449]:   event type:   PRESS
[20:07:36][D][nextion:446]: Got touch event:
[20:07:36][D][nextion:447]:   page_id:      8
[20:07:36][D][nextion:448]:   component_id: 0
[20:07:36][D][nextion:449]:   event type:   RELEASE
[20:07:37][D][nextion:446]: Got touch event:
[20:07:37][D][nextion:447]:   page_id:      8
[20:07:37][D][nextion:448]:   component_id: 0
[20:07:37][D][nextion:449]:   event type:   PRESS
[20:07:37][D][nextion:446]: Got touch event:
[20:07:37][D][nextion:447]:   page_id:      8
[20:07:37][D][nextion:448]:   component_id: 0
[20:07:37][D][nextion:449]:   event type:   RELEASE
[20:07:37][D][nextion:446]: Got touch event:
[20:07:37][D][nextion:447]:   page_id:      8
[20:07:37][D][nextion:448]:   component_id: 0
[20:07:37][D][nextion:449]:   event type:   PRESS
[20:07:37][D][nextion:446]: Got touch event:
[20:07:37][D][nextion:447]:   page_id:      8
[20:07:37][D][nextion:448]:   component_id: 0
[20:07:37][D][nextion:449]:   event type:   RELEASE
[20:07:37][D][nextion:446]: Got touch event:
[20:07:37][D][nextion:447]:   page_id:      8
[20:07:37][D][nextion:448]:   component_id: 0
[20:07:37][D][nextion:449]:   event type:   PRESS
[20:07:38][D][nextion:446]: Got touch event:
[20:07:38][D][nextion:447]:   page_id:      8
[20:07:38][D][nextion:448]:   component_id: 0
[20:07:38][D][nextion:449]:   event type:   RELEASE
[20:07:38][D][nextion:446]: Got touch event:
[20:07:38][D][nextion:447]:   page_id:      8
[20:07:38][D][nextion:448]:   component_id: 0
[20:07:38][D][nextion:449]:   event type:   PRESS
[20:07:38][D][nextion:446]: Got touch event:
[20:07:38][D][nextion:447]:   page_id:      8
[20:07:38][D][nextion:448]:   component_id: 0
[20:07:38][D][nextion:449]:   event type:   RELEASE
[20:07:38][D][nextion:446]: Got touch event:
[20:07:38][D][nextion:447]:   page_id:      8
[20:07:38][D][nextion:448]:   component_id: 0
[20:07:38][D][nextion:449]:   event type:   PRESS
[20:07:38][D][nextion:446]: Got touch event:
[20:07:38][D][nextion:447]:   page_id:      8
[20:07:38][D][nextion:448]:   component_id: 0
[20:07:38][D][nextion:449]:   event type:   RELEASE
[20:07:39][D][nextion:446]: Got touch event:
[20:07:39][D][nextion:447]:   page_id:      8
[20:07:39][D][nextion:448]:   component_id: 0
[20:07:39][D][nextion:449]:   event type:   PRESS
[20:07:39][D][nextion:464]: Got new page: 8
[20:07:39][D][display.disp1.on_page:753]: Nextion page changed
[20:07:39][D][display.disp1.on_page:754]: New page: boot (8)
[20:07:39][D][nextion:446]: Got touch event:
[20:07:39][D][nextion:447]:   page_id:      8
[20:07:39][D][nextion:448]:   component_id: 0
[20:07:39][D][nextion:449]:   event type:   RELEASE
[20:07:39][D][nextion:446]: Got touch event:
[20:07:39][D][nextion:447]:   page_id:      8
[20:07:39][D][nextion:448]:   component_id: 4
[20:07:39][D][nextion:449]:   event type:   PRESS
[20:07:39][D][binary_sensor:036]: 'nspanelhostovska Restart': Sending state ON
[20:07:39][D][nextion:446]: Got touch event:
[20:07:39][D][nextion:447]:   page_id:      8
[20:07:39][D][nextion:448]:   component_id: 4
[20:07:39][D][nextion:449]:   event type:   RELEASE
[20:07:39][D][binary_sensor:036]: 'nspanelhostovska Restart': Sending state OFF
[20:07:39][D][button:010]: 'nspanelhostovska Restart' Pressed.
[20:07:39][I][restart.button:012]: Restarting device...
[20:07:39][I][app:134]: Rebooting safely...
[20:07:39][D][esp32.preferences:114]: Saving 1 preferences to flash...
[20:07:39][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
INFO Processing expected disconnect from ESPHome API for nspanelhostovska @ 192.168.1.245
WARNING Disconnected from API
WARNING Can't connect to ESPHome API for nspanelhostovska @ 192.168.1.245: Error connecting to [AddrInfo(family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, proto=6, sockaddr=IPv4Sockaddr(address='192.168.1.245', port=6053))]: [Errno 113] Connect call failed ('192.168.1.245', 6053) (SocketAPIError)
INFO Trying to connect to nspanelhostovska @ 192.168.1.245 in the background
INFO Successfully connected to nspanelhostovska @ 192.168.1.245 in 0.020s
INFO Successful handshake with nspanelhostovska @ 192.168.1.245 in 0.170s
[20:08:11][D][nextion:464]: Got new page: 8
[20:08:11][D][display.disp1.on_page:753]: Nextion page changed
[20:08:11][D][display.disp1.on_page:754]: New page: boot (8)
[20:08:18][D][sensor:094]: 'ntc_source': Sending state 1.60700 V with 2 decimals of accuracy
[20:08:18][D][resistance:039]: 'resistance_sensor' - Resistance 10631.1Ω
[20:08:18][D][sensor:094]: 'resistance_sensor': Sending state 10631.06934 Ω with 1 decimals of accuracy
[20:08:18][D][ntc:026]: 'nspanelhostovska Temperature' - Temperature: 23.6°C
[20:08:18][D][sensor:094]: 'nspanelhostovska Temperature': Sending state 24.62914 °C with 1 decimals of accuracy
[20:08:18][D][climate:396]: 'nspanelhostovska Thermostat' - Sending state:
[20:08:18][D][climate:399]:   Mode: HEAT
[20:08:18][D][climate:401]:   Action: IDLE
[20:08:18][D][climate:410]:   Preset: HOME
[20:08:18][D][climate:419]:   Current Temperature: 24.63°C
[20:08:18][D][climate:425]:   Target Temperature: 23.00°C
[20:08:18][D][main:1786]: Climate state changed - Start
[20:08:18][D][text_sensor:064]: 'nspanelhostovska Detailed Entity': Sending state 'embedded_climate'
[20:08:18][D][main:1793]: Climate state changed - End
[20:08:21][D][nextion:464]: Got new page: 8
[20:08:21][D][display.disp1.on_page:753]: Nextion page changed
[20:08:21][D][display.disp1.on_page:754]: New page: boot (8)
[20:08:31][D][sensor:094]: 'nspanelhostovska Uptime seconds': Sending state 51.11200 s with 0 decimals of accuracy
[20:08:31][D][nextion:464]: Got new page: 8
[20:08:31][D][display.disp1.on_page:753]: Nextion page changed
[20:08:31][D][display.disp1.on_page:754]: New page: boot (8)
[20:08:38][D][esp32.preferences:114]: Saving 1 preferences to flash...
[20:08:38][D][esp32.preferences:143]: Saving 1 preferences to flash: 1 cached, 0 written, 0 failed
[20:08:41][D][nextion:464]: Got new page: 8
[20:08:41][D][display.disp1.on_page:753]: Nextion page changed
[20:08:41][D][display.disp1.on_page:754]: New page: boot (8)
[20:08:51][D][nextion:464]: Got new page: 8
[20:08:51][D][display.disp1.on_page:753]: Nextion page changed
[20:08:51][D][display.disp1.on_page:754]: New page: boot (8)
edwardtfn commented 9 months ago

The logs are not from v4.2.x. It looks like v4.1.x.

Are you installing the firmware via serial cable or OTA? If OTA, it could be the case that previous framework was Arduino and you never flashed serial after changing that. In that case, I would suggest either flashing via serial or changing framework back to arduino:

esp32:
  framework:
    type: arduino
NoFace3D commented 9 months ago

I've been using esp-idf framework since the first flash via serial cable which was version 4.1.3. Currently I was doing first OTA update. I'd like to avoid doing manual updates via serial cable...

I've noticed, that even when I clean build files, when I validate the yaml, in the substitutios there is version 4.1.3. From where it's coming?

INFO ESPHome 2023.12.8
INFO Reading configuration /config/esphome/nspanel-hostovska.yaml...
INFO Detected timezone 'Europe/Prague'
substitutions:
  version: 4.1.3

Will it help to set manually substition for version 4.2.4 ?

substitutions:
  ###### CHANGE ME START ######
  device_name: "nspanelhostovska" 
  wifi_ssid: !secret esphome_wifi_ssid
  wifi_password: !secret esphome_wifi_password

  nextion_update_url: "http://192.168.1.25:8123/local/nspanel_eu.tft"

  ##### addon-configuration #####
  ## addon_climate ##
  heater_relay: "1" # default=0 possible values 1/2
  temp_units: "°C" # default="°C"
  temp_min: "18"
  temp_max: "25"
  temp_step: "0.5"
  min_off_time: "60" # default=300
  min_run_time: "60" # default=300
  min_idle_time: "30" # default=30
  version: 4.2.4
  ##### CHANGE ME END #####
edwardtfn commented 9 months ago

Will it help to set manually substition for version 4.2.4 ?

Nope. They have changes in the protocol.

For some reason your ESPHome isn't downloading the latest version.

Please try changing to ref: beta. At this moment it is exactly the same as main, but should force a download.

edwardtfn commented 9 months ago

Looking again now, your yaml have an incorrect path for the advanced file. It should fail compiling. Please try to comment out that line with a reference to nspanel_esphome_advanced.yaml.

edwardtfn commented 9 months ago

I've been using esp-idf framework since the first flash via serial cable which was version 4.1.3.

In that case please stay with esp-idf and there's no need for serial flash.

NoFace3D commented 9 months ago

Good catch, advanced yaml file was in different path in 4.1.3, but I still don't understand why my ESPHome was using old version and where it was cached. However when I've corrected advanced file and changed branch to beta it somehow forced ESPHome to use the actual remote branch and now also main branch is correct. It seems to be bug either in ESPHome or its integration in HA. My expectation was that Clean Build Files should handle such behavior and remove old caches.

I am trying to install the correct version now.

NoFace3D commented 9 months ago

I was able to update successfully to 4.2.4, now I am reuploading TFT, but it is uploading really slow. Is it possible to interrupt the upload process without corrupting something?

edwardtfn commented 9 months ago

Yes, press the "Reset" on your display's page (Settings > Devices & Services > ESPHome) or press the reset button bellow the display: Reset button

NoFace3D commented 9 months ago

Finally I was able to update all my panels. After the update of ESPHome I had to additionally change baud rate to 921600, by enabling new baud rate entity in HA and changing it there to be able to update TFT. Thank you for the support.