Blackymas / NSPanel_HA_Blueprint

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

Panel not loading new firmware on the screen but is connected to HA #1840

Closed Zouljiin closed 7 months ago

Zouljiin commented 7 months ago

TFT Version

dont know where to look

ESPHome Version

No response

Blueprint Version

Version: v4.2.6

Panel Model

US

What is the bug?

Panel not loading new firmware on physical device but is connected to HA

Steps to Reproduce

I have (successfully) performed the upload 3 times with no errors and one of them was even OTA. I can add the device in HA and even control it but the picture below is what is on the screen and the buttons no longer work. it boots with the sonoff load screens like normal and not the new firmware. the HA controls do control the relays but the physical buttons do not.

20240222_002437

Your Panel's YAML

substitutions:
  # Settings - Editable values
  device_name: "livingroomnsp"
  friendly_name: "Living Room NSP"
  wifi_ssid: !secret wifi_ssid
  wifi_password: !secret wifi_password
  # nextion_update_url: "http://192.168.20.230:8123/local/nspanel_us.tft"  # Optional
  # Add-on configuration (if needed)
  # heater_relay: "1"  # Possible values: "1" or "2"

# Customization area
##### My customization - Start #####
##### My customization - End #####

# API. Add api_pwd to your secrets.yaml.
api:
  encryption:
    key: !secret api_encryption_key

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

esp32:
  framework:
    type: esp-idf

ESPHome Logs

I am currently at work and the device is disconnected. I can get it online later if logs are still required for troubleshooting.

Home Assistant Logs

Im not sure this is going to have the days captured when i was working on this, its been about a week.

home-assistant_2024-02-27T21-44-00.320Z.log

edwardtfn commented 7 months ago

On the device's page under Settings > Devices and Services > ESPHome, in the configuration area, please select the right model (US/EU/US Land) and then click the button "Update TFT Display". If everything goes right, after a couple of minutes you should have this project's screen shown. If something fails, please capture ESPHome logs from the "Upload TFT" process.

Zouljiin commented 7 months ago

Thanks, I figured it has something to do with the TFT file but didn't see any documentation for this issue. I just tried several times and it fails in a different spot every time. I tried the TFT_US selection and the local URL with the same file as the target with the same results. here are the logs. all I see is a failure to upload but not a reason why. logs_livingroomnsp_logs.txt

Zouljiin commented 7 months ago

I tried a few more times and it finally finished. the buttons still don't activate the relays though. I'm guessing that has something to do with the blueprint. I'll have to work on that tomorrow. thanks again.

edwardtfn commented 7 months ago

the buttons still don't activate the relays though

On the automation using the Blueprint, find the Hardware buttons area and for the entity of each button please select the entity related to the relays. Once you have done that, the control will be local.

edwardtfn commented 7 months ago

By the way, I just realized you're using a friendly name. We have a known bug related to that:

Please comment out that line for now. You may have to reconnect your panel as described here: https://github.com/Blackymas/NSPanel_HA_Blueprint/issues/1829#issuecomment-1959909591

edwardtfn commented 7 months ago

For the TFT upload logs, could you please go to your ESPHome Dashboard, find your device and then click the log button related to that (you can use wirelessly logs), then track from there what happens when you press the upload TFT button and share the logs here?

edwardtfn commented 6 months ago

Hi, have you got a chance to try the solution for this currently in beta? If so, please let me know if that was effective.

Zouljiin commented 6 months ago

I forgot to update this and say the solution worked but I'm about to do 2 more panels if you need something specific attempted.

On Tue, Mar 12, 2024, 12:53 AM Edward Firmo @.***> wrote:

Hi, have you got a chance to try the solution for this currently in beta? If so, please let me know if that was effective.

— Reply to this email directly, view it on GitHub https://github.com/Blackymas/NSPanel_HA_Blueprint/issues/1840#issuecomment-1990403011, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP3IWVJO46L7LDTSO6GPHR3YX2C5FAVCNFSM6AAAAABD44N5CGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJQGQYDGMBRGE . You are receiving this because you authored the thread.Message ID: @.***>