Blackymas / NSPanel_HA_Blueprint

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

3.2.2 NSPanel Nextion display stuck on "loading..." #642

Closed RubenJnl closed 1 year ago

RubenJnl commented 1 year ago

Since a few days I'm having an issue that my NSPanel display doesn't update anymore. After rebooting or updating the TFT from HA it's stuck on "loading..." I even tried flashing it via the usb -> serial adapter again.

IMG_2204

I don't use a custom Nextion display template as you can see above and the device seems to boot correctly.

It get's an IP address and is reachable through the hostname & IP. Also the physical buttons that are configured to trigger a scene work. IMG_2199

TFT & ESPHome 3.2.2 Home Assistant 2023.4.1 Supervisor 2023.04.0

WARNING GPIO4 is a Strapping PIN and should be avoided.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Starting log output from nspanel-woonkamer.local using esphome API
INFO Successfully connected to nspanel-woonkamer.local
[23:17:08][I][app:102]: ESPHome version 2023.3.2 compiled on Apr  8 2023, 22:48:46
[23:17:08][C][wifi:504]: WiFi:
[23:17:08][C][wifi:362]:   Local MAC: [redacted]
[23:17:08][C][wifi:363]:   SSID: '[redacted]'[redacted]
[23:17:08][C][wifi:364]:   IP Address: 192.168.2.140
[23:17:08][C][wifi:366]:   BSSID: [redacted][redacted]
[23:17:08][C][wifi:367]:   Hostname: 'nspanel-woonkamer'
[23:17:08][C][wifi:369]:   Signal strength: -69 dB ▂▄▆█
[23:17:08][C][wifi:373]:   Channel: 11
[23:17:08][C][wifi:374]:   Subnet: 255.255.255.0
[23:17:08][C][wifi:375]:   Gateway: 192.168.2.254
[23:17:08][C][wifi:376]:   DNS1: 192.168.2.28
[23:17:08][C][wifi:377]:   DNS2: 208.67.222.123
[23:17:08][C][logger:293]: Logger:
[23:17:08][C][logger:294]:   Level: DEBUG
[23:17:08][C][logger:295]:   Log Baud Rate: 115200
[23:17:08][C][logger:296]:   Hardware UART: UART0
[23:17:08][C][uart.arduino_esp32:108]: UART Bus 1:
[23:17:08][C][uart.arduino_esp32:109]:   TX Pin: GPIO16
[23:17:08][C][uart.arduino_esp32:110]:   RX Pin: GPIO17
[23:17:09][C][uart.arduino_esp32:112]:   RX Buffer Size: 256
[23:17:09][C][uart.arduino_esp32:114]:   Baud Rate: 115200 baud
[23:17:09][C][uart.arduino_esp32:115]:   Data Bits: 8
[23:17:09][C][uart.arduino_esp32:116]:   Parity: NONE
[23:17:09][C][uart.arduino_esp32:117]:   Stop bits: 1
[23:17:09][C][ledc.output:160]: LEDC Output:
[23:17:09][C][ledc.output:161]:   Pin GPIO21
[23:17:09][C][ledc.output:162]:   LEDC Channel: 0
[23:17:09][C][ledc.output:163]:   PWM Frequency: 1000.0 Hz
[23:17:09][C][ledc.output:164]:   Bit depth: 16
[23:17:09][C][uptime.sensor:031]: Uptime Sensor 'nspanel-woonkamer uptime'
[23:17:09][C][uptime.sensor:031]:   Device Class: 'duration'
[23:17:09][C][uptime.sensor:031]:   State Class: 'total_increasing'
[23:17:09][C][uptime.sensor:031]:   Unit of Measurement: 's'
[23:17:09][C][uptime.sensor:031]:   Accuracy Decimals: 0
[23:17:09][C][uptime.sensor:031]:   Icon: 'mdi:timer-outline'
[23:17:09][C][template.sensor:023]: Template Sensor 'nspanel-woonkamer Display Target Temperature'
[23:17:09][C][template.sensor:023]:   State Class: ''
[23:17:09][C][template.sensor:023]:   Unit of Measurement: ''
[23:17:09][C][template.sensor:023]:   Accuracy Decimals: 1
[23:17:09][C][template.sensor:024]:   Update Interval: 10.0s
[23:17:09][C][template.text_sensor:021]: Template Sensor 'nspanel-woonkamer Notification Label'
[23:17:09][C][template.text_sensor:021]: Template Sensor 'nspanel-woonkamer Notification Text'
[23:17:09][C][template.text_sensor:021]: Template Sensor 'nspanel-woonkamer Settings Entity'
[23:17:09][C][template.switch:076]: Template Switch 'nspanel-woonkamer Nextion inited'
[23:17:09][C][template.switch:099]:   Restore Mode: restore defaults to OFF
[23:17:09][C][template.switch:060]:   Restore State: NO
[23:17:09][C][template.switch:061]:   Optimistic: YES
[23:17:09][C][template.switch:076]: Template Switch 'nspanel-woonkamer Notification unread'
[23:17:09][C][template.switch:099]:   Restore Mode: restore defaults to OFF
[23:17:09][C][template.switch:060]:   Restore State: YES
[23:17:09][C][template.switch:061]:   Optimistic: YES
[23:17:09][C][template.switch:076]: Template Switch 'nspanel-woonkamer Notification sound'
[23:17:09][C][template.switch:099]:   Restore Mode: restore defaults to OFF
[23:17:09][C][template.switch:060]:   Restore State: YES
[23:17:09][C][template.switch:061]:   Optimistic: YES
[23:17:09][C][template.switch:076]: Template Switch 'nspanel-woonkamer Confirmation Message'
[23:17:09][C][template.switch:099]:   Restore Mode: restore defaults to OFF
[23:17:09][C][template.switch:060]:   Restore State: NO
[23:17:09][C][template.switch:061]:   Optimistic: YES
[23:17:09][C][switch.gpio:076]: GPIO Switch 'nspanel-woonkamer Relay 1'
[23:17:09][C][switch.gpio:099]:   Restore Mode: restore defaults to OFF
[23:17:09][C][switch.gpio:031]:   Pin: GPIO22
[23:17:09][C][switch.gpio:076]: GPIO Switch 'nspanel-woonkamer Relay 2'
[23:17:09][C][switch.gpio:099]:   Restore Mode: restore defaults to OFF
[23:17:09][C][switch.gpio:031]:   Pin: GPIO19
[23:17:09][C][switch.gpio:076]: GPIO Switch 'nspanel-woonkamer Screen Power'
[23:17:09][C][switch.gpio:099]:   Restore Mode: always ON
[23:17:09][C][switch.gpio:031]:   Pin: GPIO4
[23:17:09][C][template.switch:076]: Template Switch 'nspanel-woonkamer Relay 1 Local Fallback'
[23:17:09][C][template.switch:099]:   Restore Mode: restore defaults to OFF
[23:17:09][C][template.switch:060]:   Restore State: YES
[23:17:09][C][template.switch:061]:   Optimistic: YES
[23:17:09][C][template.switch:076]: Template Switch 'nspanel-woonkamer Relay 2 Local Fallback'
[23:17:09][C][template.switch:099]:   Restore Mode: restore defaults to OFF
[23:17:09][C][template.switch:060]:   Restore State: YES
[23:17:09][C][template.switch:061]:   Optimistic: YES
[23:17:09][C][template.number:050]: Template Number 'nspanel-woonkamer Display Brightness'
[23:17:09][C][template.number:050]:   Unit of Measurement: '%'
[23:17:09][C][template.number:051]:   Optimistic: YES
[23:17:09][C][template.number:052]:   Update Interval: 60.0s
[23:17:09][C][template.number:050]: Template Number 'nspanel-woonkamer Display Brightness Dimdown'
[23:17:09][C][template.number:050]:   Unit of Measurement: '%'
[23:17:09][C][template.number:051]:   Optimistic: YES
[23:17:09][C][template.number:052]:   Update Interval: 60.0s
[23:17:09][C][template.number:050]: Template Number 'nspanel-woonkamer Temperature Correction'
[23:17:09][C][template.number:050]:   Unit of Measurement: '°C'
[23:17:09][C][template.number:051]:   Optimistic: YES
[23:17:09][C][template.number:052]:   Update Interval: 60.0s
[23:17:09][C][template.number:050]: Template Number 'nspanel-woonkamer Page Timeout'
[23:17:09][C][template.number:051]:   Optimistic: YES
[23:17:09][C][template.number:052]:   Update Interval: 60.0s
[23:17:09][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanel-woonkamer Left Button'
[23:17:09][C][gpio.binary_sensor:016]:   Pin: GPIO14
[23:17:09][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanel-woonkamer Right Button'
[23:17:09][C][gpio.binary_sensor:016]:   Pin: GPIO27
[23:17:09][C][template.switch:076]: Template Switch 'nspanel-woonkamer Sleep Modus'
[23:17:09][C][template.switch:087]:   Device Class: 'switch'
[23:17:09][C][template.switch:099]:   Restore Mode: restore defaults to OFF
[23:17:09][C][template.switch:060]:   Restore State: YES
[23:17:09][C][template.switch:061]:   Optimistic: YES
[23:17:10][C][rtttl:018]: Rtttl
[23:17:10][C][restart.button:017]: Restart Button 'nspanel-woonkamer Restart'
[23:17:10][C][adc:087]: ADC Sensor 'ntc_source'
[23:17:10][C][adc:087]:   Device Class: 'voltage'
[23:17:10][C][adc:087]:   State Class: 'measurement'
[23:17:10][C][adc:087]:   Unit of Measurement: 'V'
[23:17:10][C][adc:087]:   Accuracy Decimals: 2
[23:17:10][C][adc:097]:   Pin: GPIO38
[23:17:10][C][adc:112]:  Attenuation: 11db
[23:17:10][C][adc:126]:   Update Interval: 60.0s
[23:17:10][C][resistance:010]: Resistance Sensor 'resistance_sensor'
[23:17:10][C][resistance:010]:   State Class: 'measurement'
[23:17:10][C][resistance:010]:   Unit of Measurement: 'Ω'
[23:17:10][C][resistance:010]:   Accuracy Decimals: 1
[23:17:10][C][resistance:010]:   Icon: 'mdi:flash'
[23:17:10][C][resistance:011]:   Configuration: DOWNSTREAM
[23:17:10][C][resistance:012]:   Resistor: 11200.00Ω
[23:17:10][C][resistance:013]:   Reference Voltage: 3.3V
[23:17:10][C][version.text_sensor:021]: Version Text Sensor 'nspanel-woonkamer ESPhome Version'
[23:17:10][C][version.text_sensor:021]:   Icon: 'mdi:new-box'
[23:17:10][C][nextion:117]: Nextion:
[23:17:10][C][nextion:118]:   Device Model:     NX4832F035_011C
[23:17:10][C][nextion:119]:   Firmware Version: 72
[23:17:10][C][nextion:120]:   Serial Number:    BD8C3401772C6A72
[23:17:10][C][nextion:121]:   Flash Size:       16777216
[23:17:10][C][nextion:122]:   Wake On Touch:    True
[23:17:10][C][ntc:014]: NTC Sensor 'nspanel-woonkamer Temperature'
[23:17:10][C][ntc:014]:   Device Class: 'temperature'
[23:17:10][C][ntc:014]:   State Class: 'measurement'
[23:17:10][C][ntc:014]:   Unit of Measurement: '°C'
[23:17:10][C][ntc:014]:   Accuracy Decimals: 1
[23:17:10][C][captive_portal:088]: Captive Portal:
[23:17:10][C][web_server:151]: Web Server:
[23:17:10][C][web_server:152]:   Address: nspanel-woonkamer.local:80
[23:17:10][C][mdns:108]: mDNS:
[23:17:10][C][mdns:109]:   Hostname: nspanel-woonkamer
[23:17:10][C][ota:093]: Over-The-Air Updates:
[23:17:10][C][ota:094]:   Address: nspanel-woonkamer.local:3232
[23:17:10][C][ota:097]:   Using Password.
[23:17:10][C][api:138]: API Server:
[23:17:10][C][api:139]:   Address: nspanel-woonkamer.local:6053
[23:17:10][C][api:143]:   Using noise encryption: NO
[23:17:10][C][wifi_info:009]: WifiInfo IPAddress 'nspanel-woonkamer IP'
[23:17:10][C][wifi_info:011]: WifiInfo SSID 'nspanel-woonkamer SSID'
[23:17:10][C][wifi_info:012]: WifiInfo BSSID 'nspanel-woonkamer BSSID'
[23:17:10][C][wifi_signal.sensor:009]: WiFi Signal 'nspanel-woonkamer RSSI'
[23:17:10][C][wifi_signal.sensor:009]:   Device Class: 'signal_strength'
[23:17:10][C][wifi_signal.sensor:009]:   State Class: 'measurement'
[23:17:10][C][wifi_signal.sensor:009]:   Unit of Measurement: 'dBm'
[23:17:10][C][wifi_signal.sensor:009]:   Accuracy Decimals: 0
edwardtfn commented 1 year ago

Can you share the yaml of your blueprint setting? Maybe I could try to duplicate the issue here. Have you looked at your Home Assistant logs?

Usually this "Loading..." state happens when the panel started receiving sintructions from the Blueprint to construct a page, but the communication was interrupted, either by a crash in the Blueprint or a network failure. You should be able to open the device under Settings > Devices and Services > ESPHome and from there restart the device. If it was just a momentary network problem, that restart should solve, but if it is the Blueprint crashing then you should have an error message in your logs. That error message and your yaml will help to find out where it is crashing so we can work in a fix to prevent that situation.

Also the physical buttons that are configured to trigger a scene work.

That is also controlled by the Blueprint, so it is working for some actions, but probably crashing when building the Home page.

RubenJnl commented 1 year ago

I hadn't looked at the HA logs but there are a few warnings and errors, you can find them below.

I tested a separate automation for the display with the this blueprint

This is my ESPHome config:


###### CHANGE ME START ######

  device_name: "nspanel-woonkamer" 
  wifi_ssid: "[redacted]"
  wifi_password: "[redacted]"

  nextion_update_url: "https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/main/nspanel_eu.tft" # URL to Github

##### CHANGE ME END #####

##### DO NOT CHANGE ANYTHING! #####

packages:
  ##### download esphome code from Github
  remote_package:
    url: https://github.com/Blackymas/NSPanel_HA_Blueprint
    ref: main
    files: [nspanel_esphome.yaml]
    refresh: 300s

##### DO NOT CHANGE ANYTHING! #####

Current (empty) automation, also stuck on loading. Even after re-flashing via usb-serial hub:

description: ""
use_blueprint:
  path: Blackymas/nspanel_blueprint.yaml
  input:
    language: ENG
    nspanel_name: nspanel-woonkamer

Original config, that went wrong initially:

description: ""
use_blueprint:
  path: Blackymas/nspanel_blueprint.yaml
  input:
    nspanel_name: nspanel-woonkamer
    language: NLD
    delay: 10
    weather_entity: weather.forecast_decadomus
    indoortemp: sensor.woonkamer_temperature
    humidity: sensor.woonkamer_humidity
    climate: climate.woonkamer
    entitypages_enabled: true
    entity_page01_label: Temperatuur
    entities_entity01: sensor.woonkamer_temperature
    entities_entity01_name: Woonkamer
    entities_entity02: sensor.airco_livingroom_indoor
    entities_entity02_name: Woonkamer Airco
    entities_entity03: sensor.kamer_lux_temperature
    entities_entity03_name: Lux
    entities_entity05_name: Slaapkamer
    qrcode_state: true
    qrcode_label: Wifi Guest
    qrcode_value: WIFI:S:[redacted];
    entities_entity06: sensor.werkkamer_temperature
    entities_entity06_name: Kantoor
    entities_entity07: sensor.tz3000_dowj6gyi_ts0201_temperature
    entities_entity07_name: Kelder
    left_button_entity: script.toggle_sfeerlicht
    left_button_name: Sfeerverlichting
    right_button_entity: script.toggle_aan_tafel
    right_button_name: Aan tafel
    entities_entity09: sensor.woonkamer_humidity
    entities_entity09_name: Woonkamer
    entities_entity10: sensor.kamer_lux_humidity
    entities_entity10_name: Lux
    entities_entity11: sensor.slaapkamer_humidity
    entities_entity11_name: Slaapkamer
    entities_entity12: sensor.werkkamer_humidity
    entities_entity12_name: Kantoor
    entity_page02_label: Luchtvochtigheid
    entities_entity01_icon: 
    entities_entity02_icon: 
    entities_entity03_icon: 
    entities_entity05_icon: 
    entities_entity06_icon: 
    entities_entity07_icon: 
    entities_entity12_icon: 
    entities_entity11_icon: 
    entities_entity10_icon: 
    entities_entity09_icon: 
    button_page01_label: Lampen
    entity01: light.salontafel
    entity02: light.unicorn
    entity03: light.driepoot
    entity04: light.eethoek
    entity05: light.on_off_plug_1
    entity01_name: Salontafel
    entity02_name: Eenhoorn
    entity03_name: Driepoot
    entity04_name: Eethoek
    entity05_name: Corner Eye
    entity06: light.gang
    entity06_name: Gang
    entity08: light.waskast
    entity08_name: Waskast
    entity07: light.overloop
    entity07_name: Overloop
    entities_entity05: sensor.slaapkamer_temperature
    entity09: light.kamer_lux
    entity09_name: Lux
    button_page03_label: Tuin
    entity10: switch.tz3000_gjnozsaz_ts011f_switch
    entity10_name: Terrasverwarming
    entity11: light.wled_01
    entity11_name: LED Strip
    sync_value_ha: select_no

Logs, since new clean configuration it all errors seem to have disappeared but loading screen is still there. Even after re-flashing the panel.

  1. Some service that's not reached?
    
    Source: components/esphome/__init__.py:526
    Integration: Automation (documentation, issues)
    First occurred: 8 April 2023 at 10:29:53 (93 occurrences)
    Last logged: 8 April 2023 at 22:38:00

While executing automation automation.nspanel_configuration_woonkamer NSPanel Woonkamer: Choose at step 2: choice 29: Error executing script. Unexpected error for call_service at pos 2: Connection not done for nspanel_woonkamer @ 192.168.2.140; current state is ConnectionState.INITIALIZED! NSPanel Woonkamer: Choose at step 2: choice 30: Error executing script. Unexpected error for call_service at pos 2: Connection not done for nspanel_woonkamer @ 192.168.2.140; current state is ConnectionState.INITIALIZED! NSPanel Woonkamer: Error executing script. Unexpected error for choose at pos 2: Connection not done for nspanel_woonkamer @ 192.168.2.140; current state is ConnectionState.INITIALIZED! NSPanel Woonkamer: Choose at step 2: choice 19: Error executing script. Unexpected error for call_service at pos 1: Connection not done for nspanel_woonkamer @ 192.168.2.140; current state is ConnectionState.INITIALIZED! Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 452, in _async_step await getattr(self, handler)() File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 685, in _async_call_service_step await service_task File "/usr/src/homeassistant/homeassistant/core.py", line 1820, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1857, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File "/usr/src/homeassistant/homeassistant/components/esphome/init.py", line 526, in execute_service await entry_data.client.execute_service(service, call.data) File "/usr/local/lib/python3.10/site-packages/aioesphomeapi/client.py", line 1186, in execute_service self._check_authenticated() File "/usr/local/lib/python3.10/site-packages/aioesphomeapi/client.py", line 297, in _check_authenticated self._check_connected() File "/usr/local/lib/python3.10/site-packages/aioesphomeapi/client.py", line 291, in _check_connected raise APIConnectionError( aioesphomeapi.core.APIConnectionError: Connection not done for 192.168.2.140; current state is ConnectionState.SOCKET_OPENED!

2.
```Logger: homeassistant.components.automation.nspanel_configuration_woonkamer
Source: components/esphome/__init__.py:526
Integration: Automation (documentation, issues)
First occurred: 8 April 2023 at 10:29:51 (1722 occurrences)
Last logged: 8 April 2023 at 22:56:00

NSPanel Woonkamer: Choose at step 2: choice 23: Error executing script. Unexpected error for call_service at pos 1: Not connected to nspanel_woonkamer @ 192.168.2.140!
NSPanel Woonkamer: Choose at step 2: choice 20: Error executing script. Unexpected error for call_service at pos 1: Not connected to nspanel_woonkamer @ 192.168.2.140!
NSPanel Woonkamer: Error executing script. Unexpected error for choose at pos 2: Not connected to nspanel_woonkamer @ 192.168.2.140!
While executing automation automation.nspanel_configuration_woonkamer
NSPanel Woonkamer: Choose at step 2: choice 19: Error executing script. Unexpected error for call_service at pos 1: Not connected to nspanel_woonkamer @ 192.168.2.140!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 452, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 685, in _async_call_service_step
    await service_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1820, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1857, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/components/esphome/__init__.py", line 526, in execute_service
    await entry_data.client.execute_service(service, call.data)
  File "/usr/local/lib/python3.10/site-packages/aioesphomeapi/client.py", line 1186, in execute_service
    self._check_authenticated()
  File "/usr/local/lib/python3.10/site-packages/aioesphomeapi/client.py", line 297, in _check_authenticated
    self._check_connected()
  File "/usr/local/lib/python3.10/site-packages/aioesphomeapi/client.py", line 289, in _check_connected
    raise APIConnectionError(f"Not connected to {self._log_name}!")
aioesphomeapi.core.APIConnectionError: Not connected to nspanel_woonkamer @ 192.168.2.140!
  1. Seems irrelevant with te latest new clear config mentioned below
    
    Source: helpers/script.py:410
    Integration: Automation (documentation, issues)
    First occurred: 8 April 2023 at 22:57:43 (20 occurrences)
    Last logged: 8 April 2023 at 23:03:00

NSPanel Woonkamer: Error executing script. Error for choose at pos 2: Template rendered invalid service: esphome.nspanel-woonkamer_send_command_printf NSPanel Woonkamer: Choose at step 2: choice 19: Error executing script. Error for call_service at pos 1: Template rendered invalid service: esphome.nspanel-woonkamer_send_command_text_printf NSPanel Woonkamer: Error executing script. Error for choose at pos 2: Template rendered invalid service: esphome.nspanel-woonkamer_send_command_text_printf NSPanel Woonkamer: Choose at step 2: choice 23: Error executing script. Error for call_service at pos 1: Template rendered invalid service: esphome.nspanel-woonkamer_send_command_text_printf NSPanel Woonkamer: Choose at step 2: choice 20: Error executing script. Error for call_service at pos 1: Template rendered invalid service: esphome.nspanel-woonkamer_send_command_text_printf```

  1. 
    Source: components/automation/__init__.py:566
    Integration: Automation (documentation, issues)
    First occurred: 8 April 2023 at 22:57:43 (9 occurrences)
    Last logged: 8 April 2023 at 23:03:00

Error while executing automation automation.nspanel_configuration_woonkamer: Template rendered invalid service: esphome.nspanel-woonkamer_send_command_printf Error while executing automation automation.nspanel_configuration_woonkamer: Template rendered invalid service: esphome.nspanel-woonkamer_send_command_text_printf


5. 
```Logger: homeassistant.components.automation.test_nspanel_woonkamer
Source: helpers/script.py:410
Integration: Automation (documentation, issues)
First occurred: 8 April 2023 at 23:03:43 (137 occurrences)
Last logged: 00:10:01

Test NSPanel Woonkamer: Choose at step 2: choice 1: If at step 5: Error executing script. Invalid data for call_service at pos 1: not a valid value for dictionary value @ data['entity_id']
Test NSPanel Woonkamer: Choose at step 2: choice 1: Error executing script. Invalid data for if at pos 5: not a valid value for dictionary value @ data['entity_id']
Test NSPanel Woonkamer: Error executing script. Invalid data for choose at pos 2: not a valid value for dictionary value @ data['entity_id']
Test NSPanel Woonkamer: Choose at step 2: choice 19: Error executing script. Error for call_service at pos 1: Template rendered invalid service: esphome.nspanel-woonkamer_send_command_text_printf
Test NSPanel Woonkamer: Error executing script. Error for choose at pos 2: Template rendered invalid service: esphome.nspanel-woonkamer_send_command_text_printf

6.

Source: components/automation/__init__.py:566
Integration: Automation (documentation, issues)
First occurred: 8 April 2023 at 23:03:43 (68 occurrences)
Last logged: 00:10:01

Error while executing automation automation.test_nspanel_woonkamer: not a valid value for dictionary value @ data['entity_id']
Error while executing automation automation.test_nspanel_woonkamer: Template rendered invalid service: esphome.nspanel-woonkamer_send_command_text_printf```

7.
```Logger: homeassistant.components.automation.nspanel_configuration_test
Source: components/automation/__init__.py:494
Integration: Automation (documentation, issues)
First occurred: 00:11:27 (43 occurrences)
Last logged: 00:53:00

Error rendering variables: AttributeError: 'list' object has no attribute 'lower'...

ESPHome logs:

2023-04-09 01:04:53,206 INFO 200 GET /devices (0.0.0.0) 2.67ms
2023-04-09 01:09:53,206 INFO 200 GET /devices (0.0.0.0) 2.54ms
2023-04-09 01:14:53,205 INFO 200 GET /devices (0.0.0.0) 2.20ms
deejaybeam commented 1 year ago

The Problem Here is you have Not read the instructions, or ignore it. It is Not possible to use "-" in the device-name.

thesebastianf commented 1 year ago

I have the same issue see comment: https://github.com/Blackymas/NSPanel_HA_Blueprint/discussions/595#discussioncomment-5543593 I do NOT have a - or something in my device name. My device name is nspanel1

as commented above this happens when the nspanel boots. when I change anything in my automation config for this nspanel and hit SAVE the UI does start to populate immediately. The misbevaiour only comes back when I reboot the nspanel. the workaround works fine ... but the issue was not happening in 3.1.0 definately. also the that on boot up the entry "blueprint" is blank was not happening 3.1.0

edwardtfn commented 1 year ago

@RubenJnl, I think @deejaybeam have an important point about the service name, but looks like something else is broken per your log on point 5. So, let's go one thing at a time...

About the service name, if you go on Developer Tools, select the tab Services and then start typing printf, the system will list all the services with this on its name. Could please share a screenshot of the list offered by Home Assistant? Something like this:

IMG_6143

Take a look that in my case the name is hall_panel_... and office_workstation_panel_.... You need to use the panel name exactly as it is on the services name (in my case, hall_panel and office_workstation_panel. This is exactly how it should be in the field "ESPHome Node Name" in your automation/blueprint settings: IMG_6144

edwardtfn commented 1 year ago

The error I mentioned about item 5 looks to be related to the blueprint trying to set the fallback switch also using an incorrect name of the entity, but as I couldn't find the fallback enabled in your settings, I'd like to hear from you first about the name of the panel (my last post) and if the problem persists I will try to take a look deeper using a com outer (I'm using a mobile device now, so I'm quite limited, sorry).

edwardtfn commented 1 year ago

@thesebastianf, I would love to take a look at your settings and logs also.

edwardtfn commented 1 year ago

By the way, I've reviewed a lot of those calls to entities and I believe the Blueprint currently available in DEV will be way more resistente to those issues, although I'm not sure it will resist to an incorrect name of service, which I will take a look later.

gintonic26 commented 1 year ago

I installed two displays two days ago. It worked. Today I tried to set up another display, and I am stuck on loading, triplechecked everything. I installed the new core update this morning and I guess it has something to do with that. My log always says: 2023-04-09 15:45:00.383 ERROR (MainThread) [homeassistant.components.automation.nspanel_wohn] Error rendering variables: AttributeError: 'list' object has no attribute 'lower'

Home Assistant 2023.4.2 Supervisor 2023.04.0 Operating System 9.5 Frontend 20230406.1 - latest

edwardtfn commented 1 year ago

2023-04-09 15:45:00.383 ERROR (MainThread) [homeassistant.components.automation.nspanel_wohn] Error rendering variables: AttributeError: 'list' object has no attribute 'lower

This is related to the Blueprint and updating HA core shouldn't have anything with this. I would expect lore details for the log, as this is not giving all the info needed to find where in the Blueprint it is failing. 😩 I believe the Blueprint is trying to call a value from a sensor which is not defined.mI mean, it is trying to access 8ne of the sensors that you select to not display on your settings. Again, the code currently in DEV fixes a bunch of those cases. That will be released some time soon and hopefully will fix this issue, however, if you can share a bit more info I would double check if the problem was really fixed. Sorry for insisting, but do you mind sharing your YAML with the Blueprint settings? In order to do that, you can open your blueprint settings, click in the 3-dkrs menu at the top right and select the option "Edit in YAML". Then you will see something like this, which you can copy and paste here... Just make sure you hide some private info, like a wifi password, etc. IMG_6145

alias: Office - Workstation - Panel - Configuration
description: ""
use_blueprint:
  path: Blackymas/nspanel_blueprint.yaml
  input:
    nspanel_name: office_workstation_panel
    humidity: sensor.office_thermostat_1_current_humidity
    climate: climate.office_thermostat_cloud
    left_button_entity: light.office_ceiling_lines
    left_button_name: Lines
    right_button_entity: light.office_workstation_lights
    right_button_name: Desk
    heatingsystemflame: binary_sensor.home_heating
    entity01: cover.office_shutter_1_cover
    entity02: cover.office_shutter_2_cover
    entity01_name: Shutter 1
    entity02_name: Shutter 2
    entity05: cover.office_roller_blind_1_cover
    entity05_name: Blind 1
    entity06: cover.office_roller_blind_2_cover
    entity06_name: Blind 2
    button_page01_label: Office
    entity03: light.office_ceiling_lines
    entity03_name: Ceiling lights
    entity07: light.office_workstation_lights
    entity07_name: Workstation lights
    entity04: switch.office_workstation_outlets_displays
    entity04_name: Displays
    entity08: switch.office_workstation_power_strip_switch_2
    entity08_name: Docking station
    language: ENG
    chip01: binary_sensor.media_centre_internet_status
    chip02: binary_sensor.office_motion_all
    chip01_icon: 
    chip02_icon: 
    indoortemp: sensor.office_hygrometer_temperature
    chip03: input_boolean.home_party_mode
    chip04: input_boolean.home_travelling_mode
    chip05: input_boolean.home_display_motion_sensors
    chip06: input_boolean.home_alarm
    chip07: input_boolean.home_empty
    chip03_icon: 
    chip04_icon: 
    chip05_icon: 
    chip06_icon: 
    time_format: "%H:%M"
    date_format: "%-d/%-m"
    home_value01_icon: 
    home_value02_icon: 
    home_value03_icon: 
    weather: AccuWeather
    weather_entity: weather.home
    home_value01: sensor.office_thermostat_humidity
    home_value02: sensor.office_motion_light_level
    home_value03: sensor.office_total_power
    qrcode_enabled: true
    qrcode_label: WiFi network
    qrcode_value: This is a test
    entity32_confirm: true
    entitypages_enabled: true
    entity_page01_label: Entities page 1
    entity_page02_label: Entities page 2
    entity_page04_label: Entities page 4
    entities_entity01: light.office_all_lights
    entities_entity02: sensor.office_blind_remote_control_1_battery
    entities_entity03: sensor.office_blind_remote_control_2_battery_2
    entities_entity04: camera.office_camera
    entities_entity05: camera.office_camera
    entities_entity06: binary_sensor.office_camera_motion_detected
    entities_entity07: switch.office_camera_microphone
    entities_entity08: light.office_ceiling_lines
    entities_entity09: binary_sensor.office_door
    entities_entity10: sensor.office_hygrometer_temperature
    entities_entity11: sensor.office_hygrometer_humidity
    entities_entity12: sensor.office_hygrometer_battery
    entity_page03_label: Page 3
    entity02_confirm: true
RubenJnl commented 1 year ago

... have an important point about the service name, but looks like something else is broken per your log on point 5. So, let's go one thing at a time...

@edwardtfn Thanks, I had it on nspanel_woonkamer when it first broke (got stuck on "loading...") but somehow I had warnings about that and changed it into nspanel-woonkamer without checking the requirements first. 🤦 I changed everything back to nspanel_woonkamer.

About the service name, if you go on Developer Tools, select the tab Services and then start typing printf, the system will list all the services with this on its name. Could please share a screenshot of the list offered by Home Assistant?

Yes, I see one small issue with the name there I can't seem to find within any configuration: The list: Screenshot 2023-04-09 at 9-04 | 22 39 10

Send text selected, here the node is called nspanel-woonkamer Screenshot 2023-04-09 at 9-04 | 22 39 31

In the meantime I believe I bricked my panel, failed update for the screen “System Data ERROR!” so I'm trying to restore it now before I can continue.

edwardtfn commented 1 year ago

Send text selected, here the node is called nspanel-woonkamer

The integration is called nspanel-woonkamer and the name of the device in the network is probably nspanel-woonkamer.local, but as this - is not a supported character for entities names and services names in Home Assistant, then this char is always replaced by a _ and any entity or service will be named nspanel_woonkamer, with underscore. This is not changing the name of integrations or devices, or even friendly names, as all supports -.

In the meantime I believe I bricked my panel, failed update for the screen “System Data ERROR!” so I'm trying to restore it now before I can continue.

A new TFT upload should fix this.

thesebastianf commented 1 year ago

@thesebastianf, I would love to take a look at your settings and logs also.

well nothing spectacular in the logs... I still have the nspanel on my desk ... so I can power cycle it easily .. I just powered it on ... and it got stuck at "loading..."

this is in the log ... a bit more I just copy pasted some of the lines ... but no error or whatsoever

2023-04-11 15:22:31.141 INFO (MainThread) [aioesphomeapi.reconnect_logic] Successfully connected to nspanel1 @ 192.168.3.145
2023-04-11 15:22:34.225 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Running automation actions
2023-04-11 15:22:34.226 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Executing step setting variables
2023-04-11 15:22:34.230 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: choice 2: Running automation actions
2023-04-11 15:22:34.231 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: choice 2: Executing step delay 0:00:00.100000
2023-04-11 15:22:34.332 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: choice 2: Executing step call service
2023-04-11 15:22:34.339 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: choice 2: If at step 3: Running automation actions
2023-04-11 15:22:34.340 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: choice 2: If at step 3: Executing step call service
2023-04-11 15:22:34.345 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: choice 2: If at step 4: Running automation actions
2023-04-11 15:22:34.345 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: choice 2: If at step 4: Executing step call service
2023-04-11 15:22:34.348 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: choice 2: Executing step call service
2023-04-11 15:22:34.350 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: choice 2: Executing step delay 0:00:02
2023-04-11 15:22:34.497 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Running automation actions
2023-04-11 15:22:34.497 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Executing step setting variables
2023-04-11 15:22:34.702 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Running automation actions
2023-04-11 15:22:34.702 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Executing step setting variables
2023-04-11 15:22:34.730 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Running automation actions
2023-04-11 15:22:34.767 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Running automation actions
2023-04-11 15:22:34.767 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Executing step setting variables
2023-04-11 15:22:34.789 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Running automation actions
2023-04-11 15:22:34.790 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step call service
2023-04-11 15:22:34.793 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step delay 0:00:00
2023-04-11 15:22:34.797 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step call service
2023-04-11 15:22:34.806 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step delay 0:00:00
2023-04-11 15:22:34.809 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step call service
2023-04-11 15:22:34.815 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step delay 0:00:00
2023-04-11 15:22:34.816 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step call service
2023-04-11 15:22:34.821 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step delay 0:00:00
2023-04-11 15:22:34.822 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step call service
2023-04-11 15:22:34.825 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step delay 0:00:00
2023-04-11 15:22:34.826 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step call service
2023-04-11 15:22:34.832 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step delay 0:00:00
2023-04-11 15:22:34.833 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step call service
2023-04-11 15:22:34.836 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step setting variables
2023-04-11 15:22:34.838 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step delay 0:00:00
2023-04-11 15:22:34.839 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step call service
2023-04-11 15:22:34.842 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step delay 0:00:00
2023-04-11 15:22:34.843 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step call service
2023-04-11 15:22:34.847 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step delay 0:00:00
2023-04-11 15:22:34.847 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step call service
2023-04-11 15:22:34.851 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step delay 0:00:00
2023-04-11 15:22:34.852 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step call service
2023-04-11 15:22:34.857 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step delay 0:00:00
2023-04-11 15:22:34.858 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step call service
2023-04-11 15:22:34.863 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step delay 0:00:00
2023-04-11 15:22:34.863 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step call service
2023-04-11 15:22:34.869 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step delay 0:00:00
2023-04-11 15:22:34.869 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step call service
2023-04-11 15:22:34.873 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: If at step 29: Running automation actions
2023-04-11 15:22:34.874 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: If at step 29: Executing step delay 0:00:00
2023-04-11 15:22:34.875 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: If at step 29: Executing step call service
2023-04-11 15:22:34.880 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: If at step 29: Executing step delay 0:00:00
2023-04-11 15:22:34.881 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: If at step 29: Executing step call service
2023-04-11 15:22:34.889 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: If at step 31: Running automation actions
2023-04-11 15:22:34.890 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: If at step 31: Executing step delay 0:00:00
2023-04-11 15:22:34.891 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: If at step 31: Executing step call service
2023-04-11 15:22:34.898 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: If at step 31: Executing step delay 0:00:00
2023-04-11 15:22:34.900 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: If at step 31: Executing step call service
2023-04-11 15:22:34.905 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step setting variables
2023-04-11 15:22:34.908 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step delay 0:00:00
2023-04-11 15:22:34.909 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step call service
2023-04-11 15:22:34.914 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step delay 0:00:00
2023-04-11 15:22:34.915 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step call service
2023-04-11 15:22:34.920 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step delay 0:00:00
2023-04-11 15:22:34.921 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step call service
2023-04-11 15:22:34.925 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step delay 0:00:00
2023-04-11 15:22:34.926 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step call service
2023-04-11 15:22:34.931 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step delay 0:00:00
2023-04-11 15:22:34.940 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Repeating sequence: Iteration 1 of 7 with item: {'position': 'home.icon_top_04', 'entity': [], 'entity_icon': [], 'entity_icon_color': 33808}
2023-04-11 15:22:34.941 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Repeat at step 44: Running automation actions
2023-04-11 15:22:34.944 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Repeating sequence: Iteration 2 of 7 with item: {'position': 'home.icon_top_05', 'entity': [], 'entity_icon': [], 'entity_icon_color': 33808}
2023-04-11 15:22:34.945 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Repeat at step 44: Running automation actions
2023-04-11 15:22:34.947 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Repeating sequence: Iteration 3 of 7 with item: {'position': 'home.icon_top_06', 'entity': [], 'entity_icon': [], 'entity_icon_color': 33808}
2023-04-11 15:22:34.948 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Repeat at step 44: Running automation actions
2023-04-11 15:22:34.950 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Repeating sequence: Iteration 4 of 7 with item: {'position': 'home.icon_top_07', 'entity': [], 'entity_icon': [], 'entity_icon_color': 33808}
2023-04-11 15:22:34.951 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Repeat at step 44: Running automation actions
2023-04-11 15:22:34.953 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Repeating sequence: Iteration 5 of 7 with item: {'position': 'home.icon_top_08', 'entity': [], 'entity_icon': [], 'entity_icon_color': 33808}
2023-04-11 15:22:34.954 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Repeat at step 44: Running automation actions
2023-04-11 15:22:34.956 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Repeating sequence: Iteration 6 of 7 with item: {'position': 'home.icon_top_09', 'entity': [], 'entity_icon': [], 'entity_icon_color': 33808}
2023-04-11 15:22:34.957 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Repeat at step 44: Running automation actions
2023-04-11 15:22:34.958 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Repeating sequence: Iteration 7 of 7 with item: {'position': 'home.icon_top_10', 'entity': [], 'entity_icon': [], 'entity_icon_color': 33808}
2023-04-11 15:22:34.959 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Repeat at step 44: Running automation actions
2023-04-11 15:22:34.962 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step delay 0:00:00
2023-04-11 15:22:34.969 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Repeating sequence: Iteration 1 of 3 with item: {'row': 'home.value01', 'entity': [], 'entity_icon': [], 'entity_icon_color': 52857, 'entity_label_color': 52857}
2023-04-11 15:22:34.971 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Repeat at step 46: Running automation actions
2023-04-11 15:22:34.973 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Repeating sequence: Iteration 2 of 3 with item: {'row': 'home.value02', 'entity': [], 'entity_icon': [], 'entity_icon_color': 52857, 'entity_label_color': 52857}
2023-04-11 15:22:34.975 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Repeat at step 46: Running automation actions
2023-04-11 15:22:34.978 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Repeating sequence: Iteration 3 of 3 with item: {'row': 'home.value03', 'entity': [], 'entity_icon': [], 'entity_icon_color': 52857, 'entity_label_color': 52857}
2023-04-11 15:22:34.979 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Repeat at step 46: Running automation actions
2023-04-11 15:22:34.982 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step setting variables
2023-04-11 15:22:34.984 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step delay 0:00:00
2023-04-11 15:22:34.986 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step call service
2023-04-11 15:22:34.990 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step delay 0:00:00
2023-04-11 15:22:34.992 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step call service
2023-04-11 15:22:34.997 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: If at step 52: Running automation actions
2023-04-11 15:22:34.998 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: If at step 52: Executing step delay 0:00:00
2023-04-11 15:22:35.000 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: If at step 52: Executing step call service
2023-04-11 15:22:35.006 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: If at step 53: Running automation actions
2023-04-11 15:22:35.007 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: If at step 53: Executing step delay 0:00:00
2023-04-11 15:22:35.008 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: If at step 53: Executing step call service
2023-04-11 15:22:35.014 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step delay 0:00:00
2023-04-11 15:22:35.016 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: Page changed: Choose at step 2: home page: Executing step call service
2023-04-11 15:22:36.357 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: choice 2: Executing step delay 0:00:00
2023-04-11 15:22:36.358 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: choice 2: Executing step call service
2023-04-11 15:22:58.292 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Running automation actions
2023-04-11 15:22:58.292 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Executing step setting variables
2023-04-11 15:22:58.308 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Running automation actions
2023-04-11 15:22:58.308 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Executing step setting variables
2023-04-11 15:22:58.323 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Running automation actions
2023-04-11 15:22:58.324 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Executing step setting variables
2023-04-11 15:22:58.339 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Running automation actions
2023-04-11 15:22:58.339 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Executing step setting variables
2023-04-11 15:22:58.354 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Running automation actions
2023-04-11 15:22:58.354 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Executing step setting variables
2023-04-11 15:22:58.379 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: choice 40: Running automation actions
2023-04-11 15:22:58.380 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: choice 40: Running automation actions
2023-04-11 15:22:58.381 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: choice 40: Running automation actions
2023-04-11 15:22:58.382 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: choice 40: Running automation actions
2023-04-11 15:22:58.384 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: choice 40: Running automation actions
2023-04-11 15:22:58.386 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: choice 40: If at step 1: Running automation actions
2023-04-11 15:22:58.387 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: choice 40: If at step 1: Executing step delay 0:00:00
2023-04-11 15:22:58.387 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: choice 40: If at step 1: Running automation actions
2023-04-11 15:22:58.388 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: choice 40: If at step 1: Executing step delay 0:00:00
2023-04-11 15:22:58.388 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: choice 40: If at step 1: Running automation actions
2023-04-11 15:22:58.389 INFO (MainThread) [homeassistant.components.automation.nspanel_hauseingang] NSPanel Hauseingang: Main choices: choice 40: If at step 1: Executing step delay 0:00:00
edwardtfn commented 1 year ago

Ok, I see the name in your services is nspanel_woonkamer_xxxxxx, so in the Blueprint settings you should have "ESPHome Node Name" set to nspanel_woonkamer. Could you please double check that?

Also, if you go Settings > Devices and Services > ESPHome and click on the integration related to your panel, then click in Entities. Are the entity_id of those entities also named like switch.nspanel_woonkamer_nextion_inited, sensor. nspanel_woonkamer_xxxxx, etc?

thesebastianf commented 1 year ago

sorry you mix my info mit Rubens info.

My nspanel in esphome is "nspanel1" image

My nspanel in homeassistant automation matches this aswell as the entities image image

BitStab commented 1 year ago

same problem over here - i've set it all up yesterday and never came over the "loading" in the home-screen of the panel. ESP Node name is "nspanel_kids" Current automation created from the blueprint is almost empty for testing purposes.

Logs on the device are totally ok... and i can't find any indication why it's stuck on "loading"

edwardtfn commented 1 year ago

@thesebastianf, what about the service names when you go to Developer Tools, Services and then type nspanel?

And how is the state of switch.nspanel1_nextion_inited?

BitStab commented 1 year ago

switch.nspanel_kids_nextion_inited is on here some screenshots to show the right naming: 2023-04-12 09_39_26-ESPHome – Home Assistant 2023-04-12 09_38_55-Entwicklerwerkzeuge – Home Assistant

edwardtfn commented 1 year ago

@BitStab, could you please share the yaml with your automation settings related to this Blueprint?

thesebastianf commented 1 year ago

image

image

I deleted my old blueprint and started over to see if the problem would go away ... therefore my yaml is almost empty.

alias: NSPanel Hauseingang
description: ""
use_blueprint:
  path: Blackymas/nspanel_blueprint.yaml
  input:
    language: DEU
    nspanel_name: nspanel1
    delay: 0
    weather_entity: weather.weather_local
    left_button_name: Garage Tor
    right_button_name: Garage Tür
edwardtfn commented 1 year ago

And if you press Restart on that device screen the problem still the same, right?

It shows the same version number to TFT, ESPHome and Blueprint, right?

BitStab commented 1 year ago

@BitStab, could you please share the yaml with your automation settings related to this Blueprint?

Here the automation yaml:

alias: NSPanel Configuration Kids
description: ""
use_blueprint:
  path: Blackymas/nspanel_blueprint.yaml
  input:
    language: DEU
    nspanel_name: nspanel_kids
    weather_entity: weather.zuhause_2
    entity01: light.extended_color_light_3
    entity01_name: Deckenlicht
    entity02: cover.window_covering_device_8
    entity02_name: Rollo
    delay: 100

on restarts it remains the same. TFT and ESPHome are showing version number 3.2.2

edwardtfn commented 1 year ago

Ok, as we are stuck here, May I propose something a bit more deeper?

Don't you wanna try the Blueprint which is under beta branch? We still having some bugs to shave, but I just wanna make sure we are not facing something already fixed. This is the link: https://github.com/Blackymas/NSPanel_HA_Blueprint/blob/beta/nspanel_blueprint.yaml

BitStab commented 1 year ago

Ok, i've setup a new blueprint with the beta and removed the old automation. Created then a quick new one using the Beta Blueprint:

alias: NSPanel Configuration Beta Kids
description: ""
use_blueprint:
  path: Blackymas/nspanel_blueprint_beta.yaml
  input:
    language: DEU
    nspanel_name: nspanel_kids
    weather_entity: weather.zuhause_2

After those changes and preparations i restarted the NSPanel, but the behavior didn't change at all...

edwardtfn commented 1 year ago

And still nothing in your logs in Home Assistant (Settings > System > Logs)?

BitStab commented 1 year ago

There appears to be nothing at all about the problem. It seems only the display is not refreshing after entering the home screen with the "loading..." notification.

edwardtfn commented 1 year ago

What are you using as weather provider?

Could you please go to Developer Tools > States and search for weather.zuhause_2 and then send me a screenshot of that (including the attributes, if possible).

thesebastianf commented 1 year ago

And if you press Restart on that device screen the problem still the same, right?

It shows the same version number to TFT, ESPHome and Blueprint, right?

yes on soft reboot or power cycle it is always the same -> I also tried to change weather provider --> same issue -> It never shows the version number of the Blueprint on reboot ... its just blank

-> if I swipe one page and go back to home the nspanel works.

so it is somehow a issue when loading the ui the first time after a reboot

BitStab commented 1 year ago

What are you using as weather provider?

Could you please go to Developer Tools > States and search for weather.zuhause_2 and then send me a screenshot of that (including the attributes, if possible).

I'm using openmeteo Screenshot_20230412-130806 Screenshot_20230412-130712 Screenshot_20230412-130818

BitStab commented 1 year ago

I tried to swipe to change the screen and on any screen appears only "loading...". Maybe this has to do with my minimal test config in the automation, but my device isn't recovering from this "loading..."-stage.

BitStab commented 1 year ago

UPDATE:

i was reading through other issues as i thought about changing the devicename from nspanel_kids to nspanelkids...

So i did the change, reflashed the esp rom to the panel, deleted the automation, restartet home assistant and created the automation from the blueprint using the new node name "nspanelkids" - IT WORKS!

So it seems to have a problem with special characters, not only the dash "-", but also a underscore is already a problem

edwardtfn commented 1 year ago

yes on soft reboot or power cycle it is always the same -> I also tried to change weather provider --> same issue -> It never shows the version number of the Blueprint on reboot ... its just blank

-> if I swipe one page and go back to home the nspanel works.

so it is somehow a issue when loading the ui the first time after a reboot

This is really valuable information. I will play a bit around this.

edwardtfn commented 1 year ago

Yeah, a million things could cause this "Loading..." issue, so I just wrote some text about this: #671

edwardtfn commented 1 year ago

@RubenJnl, you have created this thread, but I haven't seen you here since a while...

How are you going with your panel? Are you still having issues or is all good now? If the problem was solved, could you please close this thread?

jrussell05 commented 1 year ago

Hi, I'm having the same problem. Page is stuck on "Loading..." on reboot. However, if I swipe then the pages load and everything seems to work. Here are some things I've noticed since the upgrade to 3.2.2:

Now on the NSPanel there is an "unknown" character in the middle of the screen:

PXL_20230413_194910088

If I tap it, I get this screen:

PXL_20230413_194925915

Here is my automation yaml:

alias: NSPanel Dining Room
description: ""
use_blueprint:
  path: Blackymas/nspanel_blueprint.yaml
  input:
    language: ENG
    nspanel_name: nspaneldiningroom
    weather_entity: weather.forecast_home
    entity01: scene.entertain
    button_page01_label: Dining Room Scene
    entity01_name: Entertain
    entity02: scene.romantic
    entity02_name: Romantic
    entity03: scene.dining_room_off
    entity03_name: Scene OFF
edwardtfn commented 1 year ago

Now on the NSPanel there is an "unknown" character in the middle of the screen:

This is a known issue and I'm pretty sure it was already fixed in dev, just like this °C units in your temperature taking more than the available space. It should be available in the next release soon.

About the "Loading..." when your panel boots up, could you please take a look in #671 and let me know if you get some idea about what could be the issue?

Which weather integration are you using? Could you please go to Developer Tools > States and then look for weather.forecast_home and send me a screenshot showing the current value and attributes?

jrussell05 commented 1 year ago

Here's my weather.forcast_home

image

edwardtfn commented 1 year ago

Which integration are you using for weather?

jrussell05 commented 1 year ago

This one:

image

I'm fairly new to HA. I've recently been migrating over from OpenHAB. Perhaps there's a better one?

edwardtfn commented 1 year ago

I don't think I can say one is better than other... They have differences, and the best one is up to you.

I've asked just because I want to duplicate the issue here. I will try it later.

jrussell05 commented 1 year ago

Also, I've seen this in the automation page. Looks like some kind of undefined icon. Could that be related to that red icon on the NSPanel home screen?

image

edwardtfn commented 1 year ago

No, the red icon is related to a known issue which was already fixed in dev. It should disappear with the first boot after a TFT update, but looks like something isn't completing the process in your panel.

edwardtfn commented 1 year ago

By the way, do you mind removing some of those entities you have set? We can come back with those after the test.

alias: NSPanel Dining Room
description: ""
use_blueprint:
  path: Blackymas/nspanel_blueprint.yaml
  input:
    language: ENG
    nspanel_name: nspaneldiningroom
    weather_entity: weather.forecast_home

Also, if possible try to add an indoor temperature sensor. It could be any sensor, no need to be temperature. This is just to help me finding the bug.

jrussell05 commented 1 year ago

Unfortunately no change. Here's my yaml now:

- id: '1679858160459'
  alias: NSPanel Dining Room
  description: ''
  use_blueprint:
    path: Blackymas/nspanel_blueprint.yaml
    input:
      language: ENG
      nspanel_name: nspaneldiningroom
      weather_entity: weather.openweathermap
      indoortemp: sensor.downstairs_area_temperature
edwardtfn commented 1 year ago

Don't you wanna try v3.2.3 beta?

We had lots of fixes, so it might have fixed this already or at least it will be the same version I'm using and would be easier to troubleshoot... You will have to download TFT files again and upload to your local server, update your blueprint (and ideally deleting your current automationk, if any, and creating it again and, in your ESPHome file, in the remote package area, change from ref: main to ref: beta.

By the way, do you mind sharing your ESPHome yaml? Just make sure to remove any private info like wifi credentials before sharing.

jrussell05 commented 1 year ago

Yes. I'll give it a try and report back.

Here's my current ESPHome file:

substitutions:

###### CHANGE ME START ######

  device_name: "nspaneldiningroom" 
  wifi_ssid: "XXXXX"
  wifi_password: "XXXXX"

  nextion_update_url: "http://homeassistant:8123/local/nspanel_eu.tft" # URL to local tft File
#  nextion_update_url: "https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/main/nspanel_us.tft" # URL to Github

##### CHANGE ME END #####

##### DO NOT CHANGE ANYTHING! #####

packages:
  ##### download esphome code from Github
  remote_package:
    url: https://github.com/Blackymas/NSPanel_HA_Blueprint
    ref: main
    files: [nspanel_esphome.yaml]
    refresh: 300s

##### DO NOT CHANGE ANYTHING! #####
edwardtfn commented 1 year ago

Thanks!

Fot beta, you will have to change the file to this:

substitutions:

###### CHANGE ME START ######

  device_name: "nspaneldiningroom" 
  wifi_ssid: "XXXXX"
  wifi_password: "XXXXX"

  nextion_update_url: "http://homeassistant:8123/local/nspanel_eu.tft" # URL to local tft File
#  nextion_update_url: "https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/main/nspanel_us.tft" # URL to Github

##### CHANGE ME END #####

##### DO NOT CHANGE ANYTHING! #####

packages:
  ##### download esphome code from Github
  remote_package:
    url: https://github.com/Blackymas/NSPanel_HA_Blueprint
    ref: beta
    files: [nspanel_esphome.yaml]
    refresh: 300s

##### DO NOT CHANGE ANYTHING! #####

And you still have to update TFT and Blueprint.

jrussell05 commented 1 year ago

Good news! All working fine with 3.2.3!

One thing that might help with debugging: I had deleted the 3.2.2 automation and blueprint as you suggested. I then updated the TFT and ESPHome firmware. However, I hadn't yet downloaded the 3.2.3 blueprint and made the new automation. When the NSPanel rebooted the same "Loading..." behavior as described above happened. Once I downloaded the beta blueprint and made an automation, everything immediately started working again. No restart required.

edwardtfn commented 1 year ago

Great! Thanks for sharing more details.

As you are running a beta version now, please don't forget to mention this the next time you find an issue. And please don't forget to report any issue you find. ;)

stingone commented 1 year ago

Same issue here. Even renamed ESPhome to nspanel without - or _. i also used the beta versionm 3.2.3. When it boots its keeps stuck on loading. Only when i slide a few times through the empty pages it suddenly loads the blueprint. This behavior started after the 3.2.2 update. Blueprint version is also not shown at startup. Settingspage is also missing :(