Blackymas / NSPanel_HA_Blueprint

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

ERROR Error auth result on uploading firmware.bin #92

Closed stingone closed 1 year ago

stingone commented 1 year ago

On uploading the bin file it throws me the error:

INFO Uploading /data/nspanel/.pioenvs/nspanel/firmware.bin (1265840 bytes)
ERROR Error auth result: Error: Authentication invalid. Is the password correct?
stingone commented 1 year ago

got it working. the device is listed in home assistant with its entities however the tft file is somehow not loading. the old UI is still showing and even when change the blueprint option everything on the screen shows 0.

Step further, first the nextion button was disabled. the screen showed me a update bar after hitting the update button again. the new UI is showing however time, date etc is missing. relay is not showing correct state and the blueprint is not changing anything. :(

Blackymas commented 1 year ago

Did you already have my version running or is this the first time you are installing it?

If you have already installed the version please use the new esphome version and reflash the nspanel again.

We had made a change in the OTA that can now cause problems for you if you had installed the major version 2.0.0

Please also delete the device itself and add it new in HA

deejaybeam commented 1 year ago

If there was already a firmware flashed with a different OTA-Password than the WIFI-Password, this is because in latest version ota-password uses the value of wifi-password, to make it more simple for basic users. If you have an older esp-firmware (2.0.0) with two seperate passwords for wifi and ota set, and now want to update, you have to flash esphome via usb, or manualy edit the nspanel-esphome.yaml

stingone commented 1 year ago

Did you already have my version running or is this the first time you are installing it?

If you have already installed the version please use the new esphome version and reflash the nspanel again.

We had made a change in the OTA that can now cause problems for you if you had installed the major version 2.0.0

Please also delete the device itself and add it new in HA

Done all that and i was able to upload it succesfully. The devices as said is listed in ESPHOME, online and added to the devices under integration together with the blueprint. The settings e.g. brightness is working and the internal temp. but thats it.

no matter what i try the screen with the new UI is not showing date,time or anything reflecting the bluerprint after running the tft update based on the blueprint. even the relays are not showing change of state.

Looking at the trace of my automation/blueprint it throws the error

Template rendered invalid service: esphome.sonoff-nspanel_send_command_text_printf and on startup i see : [nextion:262]: Nextion queue is empty!

Blackymas commented 1 year ago

Nextion Queue is empty is not wrong - I have this message too

  1. Can you please share the automation yaml file and es-home file.

  2. Please check if you have 2 last clicks would then look like this "sensor. NAME_last_click_2"

  3. When you start the NSPanel, pls wait appears in red letters?

  4. You can also go directly to the automation and then to Trace. Search there for the timestamp. The automation should go to the first branch - please make a screenshot of it.

what we need you can also read here https://github.com/Blackymas/NSPanel_HA_Blueprint/wiki/(DE)-HowTo-%7C-Alle-wichtigen-Dinge-die-man-wissen-sollte

Currently it is not clear the cause of your problem is

stingone commented 1 year ago

Nextion Queue is empty is not wrong - I have this message too

  1. Can you please share the automation yaml file and es-home file.
  2. Please check if you have 2 last clicks would then look like this "sensor. NAME_last_click_2"
  3. When you start the NSPanel, pls wait appears in red letters?
  4. You can also go directly to the automation and then to Trace. Search there for the timestamp. The automation should go to the first branch - please make a screenshot of it.

what we need you can also read here https://github.com/Blackymas/NSPanel_HA_Blueprint/wiki/(DE)-HowTo-%7C-Alle-wichtigen-Dinge-die-man-wissen-sollte

Currently it is not clear the cause of your problem is

  1. The automation in YAML:
    
    alias: NSPanel Configuration
    description: ""
    use_blueprint:
    path: Blackymas/nspanel_blueprint.yaml
    input:
    weather: AccuWeather
    nspanel_name: sonoff-nspanel
    language: EN
    sync_value_ha: select_yes
    sync_slider_ha: select_yes
    outdoortemp: sensor.buienradar_temperature
    heatingsystemflame: []
    climate: climate.airco_overloop
    humidity: sensor.buienradar_humidity
    accuweather: krulzoom_32
    left_button_entity: light.dimmer_hal
    left_button_name: Verlichting Hal
ESPhome YAML - Device is online

substitutions:

CHANGE ME

device_name: "sonoff-nspanel" wifi_ssid: !secret wifi_ssid wifi_password: !secret wifi_password

CHANGE ME
DO NOT CHANGE ANYTHING!

nextion_update_url: "https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/main/nspanel.tft" 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!


2. I have the following sensor : sensor.sonoff_nspanel_last_click. not with the 2 on the end.

3. When i start the NSPanel, pls wait does NOT appair in red letters, only the blue initialize screen for 2 sec.

4. See the snip of the trace. https://snipboard.io/tVUGa3.jpg
Blackymas commented 1 year ago

Thanks - the mistake is this in the blueprint

nspanel_name: sonoff-nspanel

the entity is called

sonoff_nspanel

please change the value in the field "nspanel_name" to sonoff_nspanel

nspanel_name: sonoff_nspanel

was also described in the wiki

HA makes out - a _ and therefore it does not work for you ;)

NOTE! In the blueprint, in the "ESPHOME Node Name" field, enter exactly the same name that you assigned in the "ESPHome File". Beispiel: nspanel_blackymas

stingone commented 1 year ago

Thanks - the mistake is this in the blueprint

nspanel_name: sonoff-nspanel

the entity is called

sonoff_nspanel

please change the value in the field "nspanel_name" to sonoff_nspanel

nspanel_name: sonoff_nspanel

was also described in the wiki

HA makes out - a _ and therefore it does not work for you ;)

NOTE! In the blueprint, in the "ESPHOME Node Name" field, enter exactly the same name that you assigned in the "ESPHome File". Beispiel: nspanel_blackymas

Many thanks, did not now that HA needs the _ instead of -. The screen is now updating. last question with regards to accuweather. in the text is first says it needs the name o the integration. however in the same tekst it also says the same name as the entity. my entity name is weather.thuis.

Update. Just changes to thuis and its working. now i only need to wheather forcast to show.

Blackymas commented 1 year ago

with weather forecast it is the same.

My weather integration is called "home weather" and ha makes it to "home_weather"

stingone commented 1 year ago

btw if you need help for translation to dutch im willing to help

with weather forecast it is the same.

My weather integration is called "home weather" and ha makes it to "home_weather"

Ok it takes the values from weatheraccu on the homepage. however the forecast page is completly empty when clicking on it. only thing it says in the log is:

onoff-nspanel currentpage': Sending state 'weather01

Blackymas commented 1 year ago

pls check entity for accuwaether and share the entity name and the blueprint yaml

my entity name is for example:

sensor.home_wetter_realfeel_temperature_max_0d

so in the blueprint I need to enter there name

home_wetter

also important - when you change something in the blueprint nspanel need a reboot ;)

deejaybeam commented 1 year ago

If you use accuweather you have to enable forecast in the integration, otherwise there is no data to display

Blackymas commented 1 year ago

If you use accuweather you have to enable forecast in the integration, otherwise there is no data to display

ah right i forgot to ask thanks

Accuweather -> configuration

Bildschirmfoto 2022-12-11 um 13 23 57

Bildschirmfoto 2022-12-11 um 13 22 21

stingone commented 1 year ago

uhh where is this option to enable the forecast.... ?

Blackymas commented 1 year ago

uhh where is this option to enable the forecast.... ?

See my last post

stingone commented 1 year ago

uhh where is this option to enable the forecast.... ?

See my last post

You guys are the best, all working now :) thanks for all the support. btw if i can support for translations in dutch please let me know.

Blackymas commented 1 year ago

perfect ;) and Thanks.

I will inform you about the translation - thanks for the offer.

Blackymas commented 1 year ago

we need

Monday Tuesday Wednesday Thursday Friday Saturday Sunday Today Tomorrow in 2 Days in 3 Days in 4 Days on off heat

stingone commented 1 year ago

See translation

Monday = Maandag Tuesday = Dinsdag Wednesday = Woensdag Thursday = Donderdag Friday = Vrijdag Saturday = Zaterdag Sunday = Zondag Today = Vandaag Tomorrow = Morgen in 2 Days = over 2 Dagen in 3 Days = over 3 Dagen in 4 Days = over 4 Dagen on = aan off = uit heat = warmtevraag – heating = verwarming

Van: Blackymas @.> Verzonden: zondag 11 december 2022 13:46 Aan: Blackymas/NSPanel_HA_Blueprint @.> CC: stingone @.>; Author @.> Onderwerp: Re: [Blackymas/NSPanel_HA_Blueprint] ERROR Error auth result on uploading firmware.bin (Issue #92)

we need

Monday = Maandag Tuesday = Dinsdag Wednesday = Woensdag Thursday = Donderdag Friday = Vrijdag Saturday = Zaterdag Sunday = Zondag Today = Vandaag Tomorrow = Morgen in 2 Days = over 2 Dagen in 3 Days = over 3 Dagen in 4 Days = over 4 Dagen on = aan off = uit heat = warmtevraag – heating = verwarming

— Reply to this email directly, view it on GitHubhttps://github.com/Blackymas/NSPanel_HA_Blueprint/issues/92#issuecomment-1345545483, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AENYLABHK7PBPJ3EB3PAN2LWMXEJFANCNFSM6AAAAAAS2MRTMA. You are receiving this because you authored the thread.Message ID: @.***>

Blackymas commented 1 year ago

thanks - I will try it in the next few days ;)