Blackymas / NSPanel_HA_Blueprint

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

Buttons not working climate entity/ Media player #1421

Closed Maedmax closed 6 months ago

Maedmax commented 7 months ago

HI, i have a Problem with my NSPanel on v 4.1.4

No matter what Button i put on the Homepage screen, they are not responding and won´t open up. Only some times after several reboots i get control of them and can use them. The activated entity Page on the home screen is working flawlessly all the time. So it is not an hardware fault.

Also, when i set them up on like button page 1, and use for example the media integration from my sonos i can´t use the play/pause function. Every other Function like louder, mute is working. Also the current title is correctly displayed.

when i cut them off power for several minutes and boot the panel up again it is all working fine. Wait like 10 Minutes and the Problem comes up again, no control over the media integration, or climate entity.

Have tried multiple times to flash over a clean build, blanc tft, everything.

Maedmax commented 7 months ago

Okay, a little bit more information i got from the logs:

when its not working i get this from ESP: tried buttons on the home page: [10:19:54][D][nextion:436]: Got touch page=0 component=0 type=PRESS [10:19:54][D][nextion:436]: Got touch page=0 component=0 type=RELEASE [10:19:55][D][nextion:436]: Got touch page=0 component=0 type=PRESS [10:19:55][D][nextion:436]: Got touch page=0 component=0 type=RELEASE [10:19:56][D][nextion:436]: Got touch page=0 component=0 type=PRESS [10:19:57][D][nextion:436]: Got touch page=0 component=0 type=RELEASE [10:19:57][D][nextion:436]: Got touch page=0 component=0 type=PRESS [10:19:57][D][nextion:436]: Got touch page=0 component=0 type=RELEASE [10:19:58][D][nextion:436]: Got touch page=0 component=0 type=PRESS [10:19:58][D][nextion:436]: Got touch page=0 component=0 type=RELEASE [10:19:59][D][nextion:436]: Got touch page=0 component=0 type=PRESS [10:20:00][D][nextion:436]: Got touch page=0 component=0 type=RELEASE [10:20:00][D][nextion:436]: Got touch page=0 component=0 type=PRESS [10:20:00][D][nextion:436]: Got touch page=0 component=0 type=RELEASE

tried the list entity [10:20:01][D][nextion:436]: Got touch page=0 component=32 type=PRESS [10:20:02][D][nextion:436]: Got touch page=0 component=32 type=RELEASE [10:20:02][D][text_sensor:064]: 'nspwoz Current page': Sending state 'entitypage01' [10:20:02][D][text_sensor:064]: 'nspwoz Detailed Entity': Sending state '' [10:20:02][D][script.page_changed:2228]: New page: entitypage01

[10:20:02][D][nextion_textsensor:014]: Processed text_sensor "currentpage" state "entitypage01"

so its not seeing any component, but they are set on the screen and in the config.

This is when the button is working like it should: Light: [10:37:45][D][nextion_textsensor:014]: Processed text_sensor "currentpage" state "home" [10:37:45][W][component:214]: Component nextion.display took a long time for an operation (0.06 s). [10:37:45][W][component:215]: Components should block for at most 20-30ms. [10:37:52][D][nextion:436]: Got touch page=0 component=43 type=PRESS [10:37:52][D][nextion:436]: Got touch page=0 component=43 type=RELEASE [10:37:52][D][text_sensor:064]: 'nspwoz NSPanel local event': Sending state '{"page": "home", "event": "short_click", "component": "button03"}'

[10:37:52][D][nextion_textsensor:014]: Processed text_sensor "localevent" state "{"page": "home", "event": "short_click", "component": "button03"}" [10:37:52][D][text_sensor:064]: 'nspwoz Detailed Entity': Sending state 'light.aurelle_arbeitszimmer' [10:37:52][D][text_sensor:064]: 'nspwoz Current page': Sending state 'light' [10:37:52][D][script.page_changed:2228]: New page: light [10:37:52][D][script.page_changed:2229]: Entity shown: light.aurelle_arbeitszimmer

[10:37:52][D][nextion_textsensor:014]: Processed text_sensor "currentpage" state "light"

Media Player: [10:40:12][D][nextion:436]: Got touch page=0 component=41 type=PRESS [10:40:12][D][nextion:436]: Got touch page=0 component=41 type=RELEASE [10:40:12][D][text_sensor:064]: 'nspwoz NSPanel local event': Sending state '{"page": "home", "event": "short_click", "component": "button01"}'

[10:40:12][D][nextion_textsensor:014]: Processed text_sensor "localevent" state "{"page": "home", "event": "short_click", "component": "button01"}" [10:40:12][D][text_sensor:064]: 'nspwoz Detailed Entity': Sending state 'media_player.kuche' [10:40:12][D][text_sensor:064]: 'nspwoz Current page': Sending state 'media_player' [10:40:12][D][script.page_changed:2228]: New page: media_player [10:40:12][D][script.page_changed:2229]: Entity shown: media_player.kuche

[10:40:12][D][main:2476]: Page media_player [10:40:12][D][nextion_textsensor:014]: Processed text_sensor "currentpage" state "media_player" [10:40:12][W][component:214]: Component nextion.display took a long time for an operation (0.05 s). [10:40:12][W][component:215]: Components should block for at most 20-30ms. [10:40:12][D][text_sensor:064]: 'nspwoz Detailed Entity': Sending state 'media_player.kuche' [10:40:13][D][text_sensor:064]: 'nspwoz Detailed Entity': Sending state 'media_player.kuche' [10:40:13][D][text_sensor:064]: 'nspwoz Detailed Entity': Sending state 'media_player.kuche' [10:40:14][D][text_sensor:064]: 'nspwoz Detailed Entity': Sending state 'media_player.kuche' [10:40:14][D][text_sensor:064]: 'nspwoz Detailed Entity': Sending state 'media_player.kuche' [10:40:15][D][text_sensor:064]: 'nspwoz Detailed Entity': Sending state 'media_player.kuche' [10:40:15][D][text_sensor:064]: 'nspwoz Detailed Entity': Sending state 'media_player.kuche' [10:40:16][D][text_sensor:064]: 'nspwoz Detailed Entity': Sending state 'media_player.kuche' [10:40:17][D][text_sensor:064]: 'nspwoz Detailed Entity': Sending state 'media_player.kuche' [10:40:17][D][text_sensor:064]: 'nspwoz Detailed Entity': Sending state 'media_player.kuche' [10:40:18][D][text_sensor:064]: 'nspwoz Detailed Entity': Sending state 'media_player.kuche' [10:40:18][D][text_sensor:064]: 'nspwoz Current page': Sending state 'home' [10:40:18][D][text_sensor:064]: 'nspwoz Detailed Entity': Sending state '' [10:40:18][D][script.page_changed:2228]: New page: home

[10:40:18][D][text_sensor:064]: 'nspwoz Detailed Entity': Sending state '' [10:40:18][D][nextion_textsensor:014]: Processed text_sensor "currentpage" state "home"

Any Idea why the component are not working ?

edwardtfn commented 7 months ago

On the blue boot page, which versions you see for TFT, ESPHome and Blueprint?

Do you see any error message under Home Assistant logs (Settings > System > Logs)?

Maedmax commented 7 months ago

All 3 are same Version, 4.1.4

No errors in Log, only when the ESPHome is not available due to voltage cutoff.

edwardtfn commented 7 months ago

Could you please share your ESPHome yaml? Please hide any private info (Wi-Fi settings, etc).

By the way, which version of Home Assistant and ESPHome compiler are you using?

Maedmax commented 7 months ago

Hello, current version of Home Assistant

Core 2023.12.3 Supervisor 2023.11.6

ESPHome also current Version as the errors comes up since the update to 2023.11.6. Component nextion.display took a long time for an operation (0.05 s). Components should block for at most 20-30ms.

With the older ESPHome Version this error didn´t showed up.

ESPHOMEyaml

substitutions:

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

  device_name: "nspwoz" 
  wifi_ssid: "********"
  wifi_password: "**********"

  nextion_update_url: "http://192.168.178.61:8123/local/nspaneleu.tft" # URL to local tft File
#  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:
  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

##### DO NOT CHANGE ANYTHING! #####
edwardtfn commented 6 months ago

I've changed the communication of touch events on v4.2 (still in dev branch). Let's wait a bit until that is released and if the error persists please reopen this issue and I will be happy to investigate it more.

Daniel167 commented 6 months ago

Hello, i have 3 new nspanel. 2 work Perfect and 1 have the issue with Play Stop on HomePod. Wenn i press Play Sound 1 second and than stopped, always the same Problem. I Flash 3x and the issues is always. Version Blueprint 4.1.4 and tft 4.1.4

edwardtfn commented 6 months ago

@Daniel167, could you please report this in another bug so we can track it properly?