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` Version Blueprint Unknown #1829

Closed focusedonsound closed 8 months ago

focusedonsound commented 8 months ago

TFT Version

4.2.6

ESPHome Version

4.2.6

Blueprint Version

Unknown

Panel Model

US

What is the bug?

Blueprint Version Unknown. Errors in HA

Steps to Reproduce

Started with a brand new device. Followed the steps to flash for the first time. This was the result.

I have followed the steps in - Blueprint is not detected have tried completely removing and reflashing both from uart, and via wirelessly have tried The steps suggested as Validating the code and re-installing.

Please advise

Your Panel's YAML

substitutions:
  # Settings - Editable values
  device_name: nsbasement
  friendly_name: Basement NSpanel
  wifi_ssid: !secret wifi_ssid
  wifi_password: !secret wifi_password
  nextion_update_url: "https://ha.redacted.com/local/nspanel_us.tft"  # Optional
  # Add-on configuration (if needed)
  # heater_relay: "1"  # Possible values: "1" or "2"

# Customization area
##### My customization - Start #####
api:
  encryption:
    key: "redacted"
##### My customization - End #####

# Core and optional configurations
packages:
  remote_package:
    url: https://github.com/Blackymas/NSPanel_HA_Blueprint
    ref: main
    files:
      - nspanel_esphome.yaml # Core package
      # Optional advanced and add-on configurations
      # - advanced/esphome/nspanel_esphome_advanced.yaml
      # - nspanel_esphome_addon_climate_cool.yaml
      # - nspanel_esphome_addon_climate_heat.yaml
      # - nspanel_esphome_addon_climate_dual.yaml
    refresh: 300s

esp32:
  framework:
    type: esp-idf

ESPHome Logs

INFO ESPHome 2024.2.0 INFO Reading configuration /config/esphome/nsbasement.yaml... INFO Updating https://github.com/Blackymas/NSPanel_HA_Blueprint@main INFO Updating https://github.com/edwardtfn/esphome@nextion-v425 INFO Detected timezone 'America/New_York' INFO Starting log output from nsbasement.local using esphome API INFO Successfully connected to nsbasement @ 192.168.0.86 in 0.547s INFO Successful handshake with nsbasement @ 192.168.0.86 in 0.147s [11:33:39][I][app:102]: ESPHome version 2024.2.0 compiled on Feb 21 2024, 20:24:50

[11:33:39][C][wifi:409]: Local MAC: A0:B7:65:54:99:94 [11:33:39][C][wifi:414]: SSID: [redacted] [11:33:39][C][wifi:415]: IP Address: 192.168.0.86 [11:33:39][C][wifi:417]: BSSID: [redacted]

[11:33:39][C][wifi:420]: Signal strength: -62 dB ▂▄▆█ [11:33:39][C][wifi:424]: Channel: 6 [11:33:39][C][wifi:425]: Subnet: 255.255.255.0 [11:33:39][C][wifi:426]: Gateway: 192.168.0.1 [11:33:39][C][wifi:427]: DNS1: 192.168.0.1 [11:33:39][C][wifi:428]: DNS2: 0.0.0.0

[11:33:39][C][logger:448]: Level: DEBUG [11:33:39][C][logger:449]: Log Baud Rate: 0 [11:33:39][C][logger:451]: Hardware UART: UART0 [11:33:39][C][uart.idf:139]: UART Bus 0: [11:33:39][C][uart.idf:140]: TX Pin: GPIO16 [11:33:39][C][uart.idf:141]: RX Pin: GPIO17 [11:33:39][C][uart.idf:143]: RX Buffer Size: 256 [11:33:39][C][uart.idf:145]: Baud Rate: 115200 baud [11:33:39][C][uart.idf:146]: Data Bits: 8 [11:33:39][C][uart.idf:147]: Parity: NONE [11:33:39][C][uart.idf:148]: Stop bits: 1 [11:33:39][C][ledc.output:164]: LEDC Output: [11:33:39][C][ledc.output:165]: Pin GPIO21 [11:33:39][C][ledc.output:166]: LEDC Channel: 0 [11:33:39][C][ledc.output:167]: PWM Frequency: 1000.0 Hz [11:33:39][C][ledc.output:168]: Bit depth: 16 [11:33:39][C][template.binary_sensor:028]: Template Binary Sensor 'Nextion display' [11:33:39][C][template.binary_sensor:028]: Device Class: 'connectivity' [11:33:39][C][template.number:050]: Template Number 'Display Brightness' [11:33:39][C][template.number:050]: Unit of Measurement: '%' [11:33:39][C][template.number:051]: Optimistic: YES [11:33:39][C][template.number:052]: Update Interval: 60.0s [11:33:39][C][template.number:050]: Template Number 'Display Brightness Dimdown' [11:33:39][C][template.number:050]: Unit of Measurement: '%' [11:33:39][C][template.number:051]: Optimistic: YES [11:33:39][C][template.number:052]: Update Interval: 60.0s [11:33:39][C][template.number:050]: Template Number 'Display Brightness Sleep' [11:33:39][C][template.number:050]: Unit of Measurement: '%' [11:33:39][C][template.number:051]: Optimistic: YES [11:33:39][C][template.number:052]: Update Interval: 60.0s [11:33:39][C][template.number:050]: Template Number 'Temperature Correction' [11:33:39][C][template.number:050]: Unit of Measurement: '°C' [11:33:39][C][template.number:051]: Optimistic: YES [11:33:39][C][template.number:052]: Update Interval: 60.0s [11:33:39][C][template.number:050]: Template Number 'Timeout Page'

[11:33:39][C][template.number:050]: Unit of Measurement: 's' [11:33:39][C][template.number:051]: Optimistic: YES [11:33:39][C][template.number:052]: Update Interval: 60.0s [11:33:39][C][template.number:050]: Template Number 'Timeout Dimming'

[11:33:39][C][template.number:050]: Unit of Measurement: 's' [11:33:39][C][template.number:051]: Optimistic: YES [11:33:39][C][template.number:052]: Update Interval: 60.0s [11:33:39][C][template.number:050]: Template Number 'Timeout Sleep'

[11:33:39][C][template.number:050]: Unit of Measurement: 's' [11:33:39][C][template.number:051]: Optimistic: YES [11:33:39][C][template.number:052]: Update Interval: 60.0s [11:33:39][C][template.select:065]: Template Select 'Baud rate'

[11:33:39][C][template.select:066]: Update Interval: 60.0s [11:33:39][C][template.select:069]: Optimistic: YES [11:33:39][C][template.select:070]: Initial Option: 115200 [11:33:39][C][template.select:071]: Restore Value: YES [11:33:39][C][template.select:065]: Template Select 'Wake-up page'

[11:33:39][C][template.select:066]: Update Interval: 60.0s [11:33:39][C][template.select:069]: Optimistic: YES [11:33:39][C][template.select:070]: Initial Option: home [11:33:39][C][template.select:071]: Restore Value: YES [11:33:39][C][template.select:065]: Template Select 'Update TFT display - Model'

[11:33:39][C][template.select:066]: Update Interval: 60.0s [11:33:39][C][template.select:069]: Optimistic: YES [11:33:39][C][template.select:070]: Initial Option: Use nextion_update_url [11:33:39][C][template.select:071]: Restore Value: YES [11:33:39][C][template.select:065]: Template Select 'Update TFT display - Baud rate'

[11:33:39][C][template.select:066]: Update Interval: 60.0s [11:33:39][C][template.select:069]: Optimistic: YES [11:33:39][C][template.select:070]: Initial Option: 921600 [11:33:39][C][template.select:071]: Restore Value: YES [11:33:39][C][template.sensor:022]: Template Sensor 'Blueprint' [11:33:39][C][template.sensor:022]: State Class: '' [11:33:39][C][template.sensor:022]: Unit of Measurement: '%' [11:33:39][C][template.sensor:022]: Accuracy Decimals: 1

[11:33:39][C][template.sensor:023]: Update Interval: 60.0s [11:33:39][C][template.text_sensor:020]: Template Sensor 'Detailed Entity'

[11:33:39][C][template.text_sensor:020]: Template Sensor 'Current page'

[11:33:40][C][template.text_sensor:020]: Template Sensor 'Notification Label' [11:33:40][C][template.text_sensor:020]: Template Sensor 'Notification Text' [11:33:40][C][template.text_sensor:020]: Template Sensor 'Version Blueprint'

[11:33:40][C][template.text_sensor:020]: Template Sensor 'Version ESPHome'

[11:33:40][C][switch.gpio:068]: GPIO Switch 'Relay 1' [11:33:40][C][switch.gpio:091]: Restore Mode: restore defaults to OFF [11:33:40][C][switch.gpio:031]: Pin: GPIO22 [11:33:40][C][switch.gpio:068]: GPIO Switch 'Relay 2' [11:33:40][C][switch.gpio:091]: Restore Mode: restore defaults to OFF [11:33:40][C][switch.gpio:031]: Pin: GPIO19 [11:33:40][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Left Button' [11:33:40][C][gpio.binary_sensor:016]: Pin: GPIO14 [11:33:40][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Right Button' [11:33:40][C][gpio.binary_sensor:016]: Pin: GPIO27 [11:33:40][C][switch.gpio:068]: GPIO Switch 'Nextion display - Power' [11:33:40][C][switch.gpio:091]: Restore Mode: always ON [11:33:40][C][switch.gpio:031]: Pin: GPIO4 [11:33:40][C][template.switch:068]: Template Switch 'Notification sound' [11:33:40][C][template.switch:091]: Restore Mode: restore defaults to OFF [11:33:40][C][template.switch:057]: Optimistic: YES [11:33:40][C][template.switch:068]: Template Switch 'Relay 1 Local' [11:33:41][C][template.switch:091]: Restore Mode: restore defaults to OFF [11:33:41][C][template.switch:057]: Optimistic: YES [11:33:41][C][template.switch:068]: Template Switch 'Relay 2 Local' [11:33:41][C][template.switch:091]: Restore Mode: restore defaults to OFF [11:33:41][C][template.switch:057]: Optimistic: YES [11:33:41][C][template.switch:068]: Template Switch 'Notification unread' [11:33:41][C][template.switch:091]: Restore Mode: always OFF [11:33:41][C][template.switch:057]: Optimistic: YES

[11:33:41][C][nextion:129]: Device Model: NX4832F035_011C [11:33:41][C][nextion:130]: Firmware Version: 72 [11:33:41][C][nextion:131]: Serial Number: 6AB13401ED0C5255 [11:33:41][C][nextion:132]: Flash Size: 16777216 [11:33:41][C][nextion:133]: Wake On Touch: YES [11:33:41][C][nextion:134]: Exit reparse: YES [11:33:41][C][factory_reset.button:011]: Factory Reset Button 'Factory reset'

[11:33:41][C][restart.button:017]: Restart Button 'Restart' [11:33:41][C][adc:097]: ADC Sensor 'ntc_source' [11:33:41][C][adc:097]: Device Class: 'voltage' [11:33:41][C][adc:097]: State Class: 'measurement' [11:33:41][C][adc:097]: Unit of Measurement: 'V' [11:33:41][C][adc:097]: Accuracy Decimals: 2 [11:33:41][C][adc:107]: Pin: GPIO38 [11:33:41][C][adc:122]: Attenuation: 11db [11:33:41][C][adc:142]: Update Interval: 60.0s [11:33:41][C][resistance:010]: Resistance Sensor 'resistance_sensor' [11:33:41][C][resistance:010]: State Class: 'measurement' [11:33:41][C][resistance:010]: Unit of Measurement: 'Ω' [11:33:41][C][resistance:010]: Accuracy Decimals: 1

[11:33:41][C][resistance:011]: Configuration: DOWNSTREAM [11:33:41][C][resistance:012]: Resistor: 11200.00Ω [11:33:41][C][resistance:013]: Reference Voltage: 3.3V [11:33:41][C][ntc:014]: NTC Sensor 'Temperature' [11:33:41][C][ntc:014]: Device Class: 'temperature' [11:33:41][C][ntc:014]: State Class: 'measurement' [11:33:41][C][ntc:014]: Unit of Measurement: '°C' [11:33:41][C][ntc:014]: Accuracy Decimals: 1 [11:33:41][C][homeassistant.time:010]: Home Assistant Time:

[11:33:41][C][status:034]: Status Binary Sensor 'Status' [11:33:41][C][status:034]: Device Class: 'connectivity'

[11:33:42][C][mdns:116]: Hostname: nsbasement [11:33:42][C][ota:096]: Over-The-Air Updates: [11:33:42][C][ota:097]: Address: nsbasement.local:3232 [11:33:42][C][ota:100]: Using Password. [11:33:42][C][ota:103]: OTA version: 2. [11:33:42][C][api:139]: API Server: [11:33:42][C][api:140]: Address: nsbasement.local:6053 [11:33:42][C][api:142]: Using noise encryption: YES [11:33:42][C][wifi_signal.sensor:009]: WiFi Signal 'RSSI' [11:33:42][C][wifi_signal.sensor:009]: Device Class: 'signal_strength' [11:33:42][C][wifi_signal.sensor:009]: State Class: 'measurement' [11:33:42][C][wifi_signal.sensor:009]: Unit of Measurement: 'dBm' [11:33:42][C][wifi_signal.sensor:009]: Accuracy Decimals: 0

[11:33:54][I][addon_upload_tft.script.report_settings:137]: TFT URL: https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/v4.2.6/nspanel_us.tft

[11:33:54][I][addon_upload_tft.script.report_settings:139]: nextion_update_url: https://ha.christmasinboontontwp.com/local/nspanel_eu.tft [11:33:54][I][addon_upload_tft.script.report_settings:140]: nextion_update_base_url: https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/ [11:33:54][I][addon_upload_tft.script.report_settings:141]: TFT upload baud rate: 921600 bps [11:33:57][D][nextion:446]: Got touch event: [11:33:57][D][nextion:447]: page_id: 9 [11:33:57][D][nextion:448]: component_id: 0 [11:33:57][D][nextion:449]: event type: PRESS [11:33:57][D][nextion:446]: Got touch event: [11:33:57][D][nextion:447]: page_id: 9 [11:33:57][D][nextion:448]: component_id: 0 [11:33:57][D][nextion:449]: event type: RELEASE

[11:33:57][D][nextion:464]: Got new page: 0 [11:33:57][D][display.disp1.on_page:765]: Nextion page changed [11:33:57][D][display.disp1.on_page:766]: New page: home (0) [11:33:57][D][text_sensor:064]: 'Current page': Sending state 'home' [11:33:57][D][text_sensor:064]: 'Detailed Entity': Sending state '' [11:33:57][D][script.page_changed:2198]: New page: home

[11:33:57][D][script.timer_dim:3038]: Waking up on page: home [11:33:57][D][script.set_brightness:2611]: brightness: 100%

[11:33:57][D][sensor:094]: 'Page Id': Sending state 0.00000 with 0 decimals of accuracy [11:33:57][D][sensor.page_id:1449]: New page Id: 0 [11:33:57][D][sensor:094]: 'Display Current brightness': Sending state 4.00000 % with 0 decimals of accuracy [11:33:57][D][sensor.current_brightness:1434]: Current brightness: 4% [11:33:57][W][component:214]: Component display took a long time for an operation (0.05 s). [11:33:57][W][component:215]: Components should block for at most 20-30ms. [11:34:02][D][sensor:094]: 'Display Current brightness': Sending state 100.00000 % with 0 decimals of accuracy [11:34:02][D][sensor.current_brightness:1434]: Current brightness: 100% [11:34:07][D][sensor:094]: 'ntc_source': Sending state 1.81200 V with 2 decimals of accuracy [11:34:07][D][resistance:039]: 'resistance_sensor' - Resistance 13638.7Ω [11:34:07][D][sensor:094]: 'resistance_sensor': Sending state 13638.71094 Ω with 1 decimals of accuracy [11:34:07][D][ntc:026]: 'Temperature' - Temperature: 18.2°C [11:34:07][D][sensor:094]: 'Temperature': Sending state 18.17603 °C with 1 decimals of accuracy [11:34:14][D][text_sensor:064]: 'Version ESPHome': Sending state '4.2.6' [11:34:14][D][text_sensor.version_esphome:1783]: ESPHome version: 4.2.6

[11:34:19][D][sensor:094]: 'RSSI': Sending state -64.00000 dBm with 0 decimals of accuracy [11:34:27][D][script.set_brightness:2611]: brightness: 10% [11:34:27][D][sensor:094]: 'Display Current brightness': Sending state 10.00000 % with 0 decimals of accuracy [11:34:27][D][sensor.current_brightness:1434]: Current brightness: 10% [11:34:30][I][script.watchdog:3219]: Wi-Fi: Fair (-64 dBm) [11:34:30][I][script.watchdog:3238]: API: Connected

[11:34:30][W][script.watchdog:3261]: Init steps: 0 (0.0%) [11:34:30][W][script.watchdog:3262]: State: Pending [11:34:30][I][script.watchdog:3263]: Requesting blueprint settings

[11:34:30][I][script.watchdog:3274]: Version: 4.2.6 [11:34:30][I][script.watchdog:3285]: Heap: 146852 bytes (49%) [11:34:30][I][script.watchdog:3287]: Framework: ESP-IDF

[11:34:30][I][script.watchdog:3291]: Baud rate: 115200 bps [11:34:30][I][script.watchdog:3292]: Queue size: 8

[11:34:30][I][script.watchdog:3297]: Queue size: 2 [11:34:30][I][script.watchdog:3299]: Is setup: True [11:34:30][I][script.watchdog:3306]: Init: True [11:34:30][I][script.watchdog:3312]: TFT: 4.2.6 [11:34:30][I][addon_upload_tft.script.watchdog:409]: Add-on Upload TFT: [11:34:30][I][addon_upload_tft.script.watchdog:410]: File model: NSPanel US [11:34:30][I][addon_upload_tft.script.watchdog:411]: Valid TFT: YES


ESPHome s6-rc: info: service s6rc-oneshot-runner: starting s6-rc: info: service s6rc-oneshot-runner successfully started s6-rc: info: service base-addon-banner: starting


Add-on: ESPHome ESPHome add-on for intelligently managing all your ESP8266/ESP32 devices

Add-on version: 2024.2.0 You are running the latest version of this add-on. System: Home Assistant OS 11.5 (amd64 / qemux86-64) Home Assistant Core: 2024.2.2 Home Assistant Supervisor: 2024.02.0

Please, share the above information when looking for help or support in, e.g., GitHub, forums or the Discord chat.

s6-rc: info: service base-addon-banner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service base-addon-timezone: starting s6-rc: info: service base-addon-log-level: starting s6-rc: info: service fix-attrs successfully started [11:25:56] INFO: Configuring timezone (America/New_York)... s6-rc: info: service base-addon-log-level successfully started s6-rc: info: service base-addon-timezone successfully started s6-rc: info: service legacy-cont-init: starting s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service init-nginx: starting s6-rc: info: service esphome: starting s6-rc: info: service esphome successfully started s6-rc: info: service init-nginx successfully started s6-rc: info: service nginx: starting s6-rc: info: service nginx successfully started s6-rc: info: service discovery: starting [11:25:59] INFO: Waiting for ESPHome dashboard to come up... [11:25:59] INFO: Starting ESPHome dashboard... 2024-02-22 11:26:03,358 INFO Starting dashboard web server on unix socket /var/run/esphome.sock and configuration dir /config/esphome... [11:26:03] INFO: Starting NGINX... [11:26:04] INFO: Successfully send discovery information to Home Assistant. s6-rc: info: service discovery successfully started s6-rc: info: service legacy-services: starting s6-rc: info: service legacy-services successfully started 2024-02-22 11:27:09,529 INFO 200 GET /devices (0.0.0.0) 1.94ms 2024-02-22 11:28:03,275 INFO 200 GET /devices (0.0.0.0) 1.25ms 2024-02-22 11:28:07,774 INFO 200 GET /json-config?configuration=nsbasement.yaml (0.0.0.0) 4495.90ms

Home Assistant Logs

Log details (ERROR) Logger: homeassistant.components.automation.nsbasement Source: helpers/script.py:1805 Integration: Automation (documentation, issues) First occurred: 11:28:30 AM (60 occurrences) Last logged: 11:36:30 AM

nsbasement: Error executing script. Service not found for choose at pos 2: Service esphome.basement_nspanel_set_component_color not found. nsbasement: Main choices: NSPanel event: Choose at step 2: Boot init: If at step 1: Error executing script. Service not found for call_service at pos 5: Service esphome.basement_nspanel_page_home not found. nsbasement: Main choices: NSPanel event: Choose at step 2: Boot init: Error executing script. Service not found for if at pos 1: Service esphome.basement_nspanel_page_home not found. nsbasement: Main choices: NSPanel event: Error executing script. Service not found for choose at pos 2: Service esphome.basement_nspanel_page_home not found. nsbasement: Error executing script. Service not found for choose at pos 2: Service esphome.basement_nspanel_page_home not found.

edwardtfn commented 8 months ago

Have you created an automation using the Blueprint and selected the panel there? Can you see v4.2.6 when you open that automation?

edwardtfn commented 8 months ago

Ok, the issue is with friendly_name. There's a know but related to that which fix is planned to be released soon. As a workaround, please comment out the friendly_name line in your substitutions, flash it again (wirelessly is fine) and then remove your panel from the integrations page (Settings > Devices and Services > ESPHome), then restart Home Assistant to clean up all the old names used from when friendly_name was there. Then connect your panel to Home in again and it should work (maybe one more restart may be needed).

edwardtfn commented 8 months ago
focusedonsound commented 8 months ago

Thank you - Commented out the friendly name as suggested. Validated the yaml, and installed. Works like a charm!