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: "Authentification invalid. Is the password correct?" #2354

Open
CristianN87 opened this issue Oct 29, 2024 · 14 comments
Open

Error: "Authentification invalid. Is the password correct?" #2354

CristianN87 opened this issue Oct 29, 2024 · 14 comments
Labels
Bug Identifies an issue where the system is not functioning as expected.

Comments

@CristianN87
Copy link

CristianN87 commented Oct 29, 2024

TFT Version

No response

Firmware Version

No response

Blueprint Version

No response

Panel Model

None

What is the bug?

When I try to install this yaml configuration on my NSpanel, which was used in the past with an custom configuration like an thermostat, I strugle with this issue regarding the "Authentification invalid". What can I do more or what I am not doing correct?

Steps to Reproduce

No response

Your Panel's YAML

substitutions:
  # Settings - Editable values
  device_name: "termostat-living"
  friendly_name: "Termostat Living"
  wifi_ssid: !secret wifi_ssid
  wifi_password: !secret wifi_password
  # Optional
  nextion_update_url: "https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/v4.2.5/nspanel_eu.tft"
  # Add-on configuration (if needed)
  # heater_relay: "1"  # Possible values: "1" or "2"

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


    ##### My customization - End #####

# Core and optional configurations
# we try dev instead of main due to commits for the tft uplaod problem
packages:
  remote_package:
    url: https://github.com/Blackymas/NSPanel_HA_Blueprint
    ref: main
    refresh: 300s
    files:
      - nspanel_esphome.yaml # Basic package
      # Optional advanced and add-on configurations
      # - esphome/nspanel_esphome_advanced.yaml
      # - esphome/nspanel_esphome_addon_ble_tracker.yaml
      # - esphome/nspanel_esphome_addon_bluetooth_proxy.yaml
      # - esphome/nspanel_esphome_addon_climate_cool.yaml
      # - esphome/nspanel_esphome_addon_climate_heat.yaml
      # - esphome/nspanel_esphome_addon_climate_dual.yaml
      # - esphome/nspanel_esphome_addon_cover.yaml

ESPHome Logs

No response

Home Assistant Logs

No response

@CristianN87 CristianN87 added the Bug Identifies an issue where the system is not functioning as expected. label Oct 29, 2024
@edwardtfn
Copy link
Collaborator

Do you still know the previous ota password used on this device, if any?

Please try adding this as a customization to your panel's Yaml:

ota:
  - id: !extend ota_std
    password: !remove

@CristianN87
Copy link
Author

CristianN87 commented Oct 29, 2024

Hello @edwardtfn , thank you for your very fast answer.
Yes, I have one file saved on my PC with the old YAML configuration.

ota:

  • id: !extend ota_std
    password: !remove
    This will remove the old password, or what will do?

@edwardtfn
Copy link
Collaborator

Hello @edwardtfn , thank you for your very fast answer.

🙂

Yes, I have one file saved on my PC with the old YAML configuration.

Good!
So please try this:

ota:
  - id: !extend ota_std
    password: <<your-old-ota-password>>

ota:

  • id: !extend ota_std
    password: !remove
    This will remove the old password, or what will do?

This will try to install without using any password.

@edwardtfn
Copy link
Collaborator

If nothing works, you can always flash it using a serial/USB cable, as this password is not required in that case. 😉

@CristianN87
Copy link
Author

I managed to flash-it with your recomandation, but right now I don't know if is OK flashed because right now, the HMI is showing only the hour and is not active when I touch it.(is freez like this).
20241030_001958

@edwardtfn
Copy link
Collaborator

On the automation you created using the Blueprint, please make sure the panel is selected.

@CristianN87
Copy link
Author

Attached you can find the logs after the flashing. Are they normal? I see a error like : Nextion reported variable name invalid! and also TFT: Unknown! Is this normal?...:)
logs_termostat-living_run (2).txt

@edwardtfn
Copy link
Collaborator

The Nextion reported variable name invalid! is most likely related to an older TFT installed.
Please go to the device's page in Home Assistant (under Settings > Devices & services > ESPHome) and click Update TFT.

I also see some error related to API:

[11:34:52][W][api.connection:108]: : Reading failed: BAD_INDICATOR errno=11

This one is most likely related to some instability in your network or HA.

@CristianN87
Copy link
Author

I think something I do wrong when I am flashing or maybe when I am upload the TFT, because the device is not available in Home Assistant under the ESPHome.
Screenshot 2024-10-30 143254

@CristianN87
Copy link
Author

Also, after I uploaded the TFT file nspanel_eu.tft and I used my old configuration the display of the NSpanel look like in the picture attached, but the device where active in HomeAssistent under ESPHome. I really don't know what I am doing wrong!!
20241030_002534

@CristianN87
Copy link
Author

CristianN87 commented Oct 30, 2024

HI @edwardtfn ,
I managed to solve the availability in ESP Home of this NSpanel by adding the api encryption and the password for the api in YAML file.
I will inform you how I progress with this.
Thank you!

@CristianN87
Copy link
Author

It's working, finally!!! Thank you for support!
It looks amazing, you did a very good job with!!
Thank you again!

@edwardtfn
Copy link
Collaborator

Nice to hear that...
It should work without the API encryption or password, but in this case you have to remove it from Home Assistant and wait a couple of minutes until it is detected again and can integrate without the security.

@jafreenas
Copy link

Hi ,
can you describe how to do this in yaml?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Identifies an issue where the system is not functioning as expected.
Projects
None yet
Development

No branches or pull requests

3 participants