Blackymas / NSPanel_HA_Blueprint

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

ESPHome 2023.11.6 brakes my panel #1350

Closed synack666 closed 9 months ago

synack666 commented 9 months ago

After update ESPHome to 2023.11.6 my panel wont come back. Still in "initializing..." Have tried power off/on, and reboot. During the flashing after update in log was a "exit reparse". With ESPHome i can see logs wirelessly.

Any idea what could solve this?

mariusvaida commented 9 months ago

Thank you @edwardtfn ! It works fine now.

smarthomefamilyverrips commented 9 months ago

@edwardtfn Works for me also again now, thanks for the quick fix!

edwardtfn commented 9 months ago

@edwardtfn do have to use beta version or can let "ref:" on main

ref: main

edwardtfn commented 9 months ago

should i close down here, a solution has been found?

No, please keep this open until we apply the solution to the main code.

wobi07 commented 9 months ago

logs_wobipanel_run.txt I still have problems! The display remains on Intitialing for me.

wobi07 commented 9 months ago

Sorry the mistake is mine! Must have done something wrong. I just repeated it and now it works for me too!

NC1609 commented 9 months ago

Thanks @edwardtfn! You are my hero!

wobi07 commented 9 months ago

I agree with him! The response time and implementation in particular are amazing!

marcinbojko commented 9 months ago

I'd like to confirm, same applied here, extra lines, main branch.

drgonz0 commented 9 months ago

I need to stop updating in the middle of the night. This fixed it for me too.

Temporary code

external_components:

boctok commented 9 months ago

Just as a curious note, I had the same issue with my NS Panel and noticed after the ESPHome update that it had changed the device name from "nsbath" to "Nsbath", which made me think that caused the issue, since the blueprint was looking specifically for all lower-case letters. I changed it back, but obviously it didn't help. I also noticed that the Automation contained the device name and then everything else was blank and un-editable. i.e. Date format had nothing in the block and there was no way to edit it. Same with everything else below that on the page.

Adding your code fixed it.

My ESPHome page takes forever to load, as well. I see another update to ESPHome coming soon.

edwardtfn commented 9 months ago

I see another update to ESPHome coming soon.

Indeed. I just wanna make sure the fix for this Nextion thing would be included. 😆

rasmus-wi commented 9 months ago

Fix worked here too! I reflashed my nspanels with esp-idf framework a while ago, so I thought I'd report that the fix works with that, just in case everyone else were using the arduino framework. :)

edwardtfn commented 9 months ago

Anyone available to try ref: beta? If so, please remove the whole part with external_components and reference to PR#5829 (the hot fix from a few hours ago), change to ref: beta, clean-up your build files and install it (wirelessly is ok). Please let me know the results.

edwardtfn commented 9 months ago

I can anticipate it will fail with esp-idf framework. 😉 I come back to that later, but I will wanna make sure it work with ESPHome 2023.11.6.

pozek commented 9 months ago

Anyone available to try ref: beta? If so, please remove the whole part with external_components and reference to PR#5829 (the hot fix from a few hours ago), change to ref: beta, clean-up your build files and install it (wirelessly is ok). Please let me know the results.

everything fine with only ref: beta

lloydbayley commented 9 months ago

Anyone available to try ref: beta? If so, please remove the whole part with external_components and reference to PR#5829 (the hot fix from a few hours ago), change to ref: beta, clean-up your build files and install it (wirelessly is ok). Please let me know the results.

Sorry, doing it now...

Ashpork commented 9 months ago

Anyone available to try ref: beta? If so, please remove the whole part with external_components and reference to PR#5829 (the hot fix from a few hours ago), change to ref: beta, clean-up your build files and install it (wirelessly is ok). Please let me know the results.

Looks fine here.

lloydbayley commented 9 months ago

Yep! working here!

drgonz0 commented 9 months ago

Beta working here too, looks good .

synack666 commented 9 months ago

working

Lice2 commented 9 months ago

Thank you now it works !!!!

eavyon commented 9 months ago

Adding that my panel is also working again with the current beta on arduino. No pr. Esphome 2023.11.4 for reference.

edwardtfn commented 9 months ago

Could you please try again with beta. I've returned with support to esp-idf, so it was a significant change (also for the ones with the standard arduino framework) and wanna validate it again before releasing.

marcinbojko commented 9 months ago

Could you please try again with beta. I've returned with support to esp-idf, so it was a significant change (also for the ones with the standard arduino framework) and wanna validate it again before releasing.

I have few panels to spare, so I'll try

kalagan55 commented 9 months ago

ref: main

Could someone please try adding this to the ESPHome yaml, install it (wireless is ok) and let me know the results (logs, please)?

external_components:
  - source: github://pr#5829
    components:
      - nextion
    refresh: 1s

Thanks a lot ! Should we leave it in the configuration for other updates?

marcinbojko commented 9 months ago

Works with

esp32:
  board: esp32dev
  framework:
    type: esp-idf

packages:
  remote_package:
    url: https://github.com/Blackymas/NSPanel_HA_Blueprint
    ref: beta

Reports itself as 4.1.2

TahoeNL commented 9 months ago

Changing ref: to beta fixes my issue, identical to the one reported.

edwardtfn commented 9 months ago

Should we leave it in the configuration for other updates?

I'm finalizing some tests on beta and wanna release that very soon (minutes, not days). After that is released, you can remove all this extra code added today. 😉

edwardtfn commented 9 months ago

v4.1.2 - Bug fixes and minor enhancements

Welcome to the v4.1.2 patch!

This update fixes some bugs and enable the use of your panel with ESPHome 2023.11.6.

Below is a detailed list of changes. We recommend reviewing them to understand how this update impacts your setup.

Compatibility Note: This patch is fully compatible with components from v4.1 and v4.1.1. Your system will operate seamlessly with a mix of v4.1, v4.1.1 and v4.1.2 components, though we advise updating all components to the latest version for optimal performance.

Update Instructions

For detailed update procedures, please visit:

Overview of Changes

Change Criticality Page/Area Components Affected
Fix Nextion not communicating with ESPHome 2023.11.6 Critical N/A ESPHome
Fix for icons not updating on Home page Medium home Blueprint
Fix light icon color not being used for buttons Minor buttonpageXX Blueprint
Don't show thermostat chip when state is auto and no action is available Minor home Blueprint
Fallback to legacy forecast (attributes based) when new method (service based) fails Minor weatherXX Blueprint
Fix for button image update when local fallback is enabled Minor home ESPHome
Add option to wake-up to Climate page Enhancement climate ESPHome
New switch "Nextion display - Power" which can turn the screen on/off Enhancement Diagnostics ESPHome
TahoeNL commented 9 months ago

Awesome! Changed ref: back to main, flashed and working like a charm.

Reported versions: [17:00:15][D][script.check_versions:2146]: ESPHome version: 4.1.2 [17:00:15][D][script.check_versions:2147]: TFT version: 4.1.1 [17:00:15][D][script.check_versions:2149]: Blueprint version: 4.1.1

edwardtfn commented 9 months ago

Now you can set it back to ref: main and remove the references to external components I've proposed earlier in this thread.

edwardtfn commented 9 months ago

Thanks a lot for your support with the tests, logs, feedback...

marcinbojko commented 9 months ago

Thanks a lot for your support with the tests, logs, feedback...

Thank you for being here ;)

xagos commented 9 months ago

I have installed the new version 4.1.2 and compiled it with esphome 2023.11.6 I still get this message and the panel can not be addressed by the uart: [17:46:47][E][on_boot:059]: No response from Nextion display

I have tryed it several times - and I havel cleaned all build files... Attached you can find my log. logs_nspanel4kueche_run.txt

xagos commented 9 months ago

I made the following changes to the original core file:

Thanks for this great work - I like this project very much ;)

Zealand67 commented 9 months ago

I can cofirm that re-install ESPHome works with my panel since the 4.1.2 patch. I did not need to chnage anything on my yaml file.

eavyon commented 9 months ago

Can confirm that only ref:main without additions now works flawlessly.

xagos commented 9 months ago

Thanks for your reply - my changes did not make the thing work ;) They are needed for my typical setup - and I hope that the encryption and/or the static IP have no influence on the nextion-issue. I just want to point out, that there is a difference to the original file...

[18:06:15][C][wifi_signal.sensor:009]: WiFi Signal 'nspanel4kueche RSSI' [18:06:15][C][wifi_signal.sensor:009]: Device Class: 'signal_strength' [18:06:15][C][wifi_signal.sensor:009]: State Class: 'measurement' [18:06:15][C][wifi_signal.sensor:009]: Unit of Measurement: 'dBm' [18:06:15][C][wifi_signal.sensor:009]: Accuracy Decimals: 0 [18:06:31][D][main:2570]: Exit reparse [18:06:36][D][sensor:094]: 'nspanel4kueche Uptime seconds': Sending state 30.50200 s with 0 decimals of accuracy [18:06:48][D][sensor:094]: 'nspanel4kueche RSSI': Sending state -74.00000 dBm with 0 decimals of accuracy [18:06:51][D][script.nextion_status:2661]: Nextion status: [18:06:51][D][script.nextion_status:2662]: Is detected: False [18:06:51][D][script.nextion_status:2663]: Is setup: False [18:06:51][E][on_boot:059]: No response from Nextion display [18:06:51][D][on_boot:060]: Turn off Nextion [18:06:51][D][switch:016]: 'nspanel4kueche Nextion display - Power' Turning OFF. [18:06:51][D][switch:055]: 'nspanel4kueche Nextion display - Power': Sending state OFF [18:06:51][D][on_boot:046]: Wait 2 seconds [18:06:53][D][on_boot:063]: Turn on Nextion [18:06:53][D][switch:012]: 'nspanel4kueche Nextion display - Power' Turning ON. [18:06:53][D][switch:055]: 'nspanel4kueche Nextion display - Power': Sending state ON [18:06:53][D][on_boot:046]: Wait 5 seconds [18:06:58][D][script.nextion_status:2661]: Nextion status: [18:06:58][D][script.nextion_status:2662]: Is detected: False [18:06:58][D][script.nextion_status:2663]: Is setup: False [18:06:58][W][component:214]: Component esphome.coroutine took a long time for an operation (7.03 s). [18:06:58][W][component:215]: Components should block for at most 20-30ms. [18:07:02][D][sensor:094]: 'ntc_source': Sending state 1.68300 V with 2 decimals of accuracy [18:07:02][D][resistance:039]: 'resistance_sensor' - Resistance 11657.1Ω [18:07:02][D][sensor:094]: 'resistance_sensor': Sending state 11657.14258 Ω with 1 decimals of accuracy [18:07:02][D][ntc:026]: 'nspanel4kueche Temperature' - Temperature: 21.6°C [18:07:02][D][sensor:094]: 'nspanel4kueche Temperature': Sending state 21.58875 °C with 1 decimals of accuracy [18:07:18][D][script.nextion_status:2661]: Nextion status: [18:07:18][D][script.nextion_status:2662]: Is detected: False [18:07:18][D][script.nextion_status:2663]: Is setup: False [18:07:18][E][on_boot:076]: No response from Nextion display

smarthomefamilyverrips commented 9 months ago

Install of 4.1.2 with "ref: main" worked for me! Thanks again @edwardtfn !!!

xHirscHx commented 9 months ago

Looks good all double check when i get home, Big thxs. now just need to fig out why all my devices in Alex app aren't responsive , from same update. ------ well thats strange after i updated the panel got it working now all my devises on alexa are working again. OK.

CH-Tefi commented 9 months ago

everything looks good, thank you @edwardtfn !!!