Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR Error auth result on uploading firmware.bin #92

Closed
stingone opened this issue Dec 10, 2022 · 20 comments
Closed

ERROR Error auth result on uploading firmware.bin #92

stingone opened this issue Dec 10, 2022 · 20 comments
Labels
Question For user inquiries about system features and usage guidance.

Comments

@stingone
Copy link

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?
@Blackymas Blackymas added problem Question For user inquiries about system features and usage guidance. labels Dec 10, 2022
@stingone
Copy link
Author

stingone commented Dec 10, 2022

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
Copy link
Owner

Blackymas commented Dec 10, 2022

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
Copy link
Collaborator

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
Copy link
Author

stingone commented Dec 10, 2022

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
Copy link
Owner

Blackymas commented Dec 10, 2022

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
Copy link
Author

stingone commented Dec 11, 2022

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! #####
  1. I have the following sensor : sensor.sonoff_nspanel_last_click. not with the 2 on the end.

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

  3. See the snip of the trace. https://snipboard.io/tVUGa3.jpg

@Blackymas
Copy link
Owner

Blackymas commented Dec 11, 2022

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
Copy link
Author

stingone commented Dec 11, 2022

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
Copy link
Owner

with weather forecast it is the same.

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

@stingone
Copy link
Author

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
Copy link
Owner

Blackymas commented Dec 11, 2022

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
Copy link
Collaborator

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

@Blackymas
Copy link
Owner

Blackymas commented Dec 11, 2022

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
Copy link
Author

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

@Blackymas
Copy link
Owner

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

See my last post

@stingone
Copy link
Author

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
Copy link
Owner

perfect ;) and Thanks.

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

@Blackymas
Copy link
Owner

we need

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

@stingone
Copy link
Author

stingone commented Dec 11, 2022 via email

@Blackymas
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question For user inquiries about system features and usage guidance.
Projects
None yet
Development

No branches or pull requests

3 participants