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

Bug #2446

Open
MichalUngr23 opened this issue Dec 27, 2024 · 4 comments
Open

Bug #2446

MichalUngr23 opened this issue Dec 27, 2024 · 4 comments
Labels
Bug Identifies an issue where the system is not functioning as expected.

Comments

@MichalUngr23
Copy link

TFT Version

No response

Firmware Version

No response

Blueprint Version

4.3.12

Panel Model

EU

What is the bug?

nejde nahrat yaml driv fungoval ted s novym esp home nejde nahrat

Steps to Reproduce

No response

Your Panel's YAML

substitutions:
  # Settings - Editable values
  device_name: "nspanelblack"
  friendly_name: "NSPanelBlack"
  wifi_ssid: !secret wifi_ssid
  wifi_password: !secret wifi_password
  nextion_update_url: "http://homeassistant.local:8123/local/nspanel_eu.tft"  # Optional
  # 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
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

No response

Home Assistant Logs

INFO ESPHome 2024.12.2
INFO Reading configuration /config/esphome/nspanelblack.yaml...
INFO Detected timezone 'Europe/Prague'
INFO Generating C++ source...
Traceback (most recent call last):
File "/usr/local/bin/esphome", line 8, in
sys.exit(main())
^^^^^^
File "/esphome/esphome/main.py", line 1036, in main
return run_esphome(sys.argv)
^^^^^^^^^^^^^^^^^^^^^
File "/esphome/esphome/main.py", line 1023, in run_esphome
rc = POST_CONFIG_ACTIONS[args.command](args, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/esphome/esphome/main.py", line 503, in command_run
exit_code = write_cpp(config)
^^^^^^^^^^^^^^^^^
File "/esphome/esphome/main.py", line 213, in write_cpp
return write_cpp_file()
^^^^^^^^^^^^^^^^
File "/esphome/esphome/main.py", line 231, in write_cpp_file
writer.write_cpp(code_s)
File "/esphome/esphome/writer.py", line 341, in write_cpp
copy_src_tree()
File "/esphome/esphome/writer.py", line 307, in copy_src_tree
copy_files()
File "/esphome/esphome/components/esp32/init.py", line 801, in copy_files
repo_dir, _ = git.clone_or_update(
^^^^^^^^^^^^^^^^^^^^
File "/esphome/esphome/git.py", line 92, in clone_or_update
old_sha = run_git_command(["git", "rev-parse", "HEAD"], str(repo_dir))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/esphome/esphome/git.py", line 32, in run_git_command
raise cv.Invalid(err_str)
voluptuous.error.Invalid: fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'

@MichalUngr23 MichalUngr23 added the Bug Identifies an issue where the system is not functioning as expected. label Dec 27, 2024
@edwardtfn
Copy link
Collaborator

Please try changing from ref: main to ref: latest or ref: v4.3.11.

@MichalUngr23
Copy link
Author

ani jedna moznost bohužel nefunguje INFO ESPHome 2024.12.2
INFO Reading configuration /config/esphome/nspanelblack.yaml...
INFO Detected timezone 'Europe/Prague'
INFO Generating C++ source...
Traceback (most recent call last):
File "/usr/local/bin/esphome", line 8, in
sys.exit(main())
^^^^^^
File "/esphome/esphome/main.py", line 1036, in main
return run_esphome(sys.argv)
^^^^^^^^^^^^^^^^^^^^^
File "/esphome/esphome/main.py", line 1023, in run_esphome
rc = POST_CONFIG_ACTIONS[args.command](args, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/esphome/esphome/main.py", line 452, in command_compile
exit_code = write_cpp(config)
^^^^^^^^^^^^^^^^^
File "/esphome/esphome/main.py", line 213, in write_cpp
return write_cpp_file()
^^^^^^^^^^^^^^^^
File "/esphome/esphome/main.py", line 231, in write_cpp_file
writer.write_cpp(code_s)
File "/esphome/esphome/writer.py", line 341, in write_cpp
copy_src_tree()
File "/esphome/esphome/writer.py", line 307, in copy_src_tree
copy_files()
File "/esphome/esphome/components/esp32/init.py", line 801, in copy_files
repo_dir, _ = git.clone_or_update(
^^^^^^^^^^^^^^^^^^^^
File "/esphome/esphome/git.py", line 92, in clone_or_update
old_sha = run_git_command(["git", "rev-parse", "HEAD"], str(repo_dir))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/esphome/esphome/git.py", line 32, in run_git_command
raise cv.Invalid(err_str)
voluptuous.error.Invalid: fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'

@MichalUngr23
Copy link
Author

zkousel jsme nahrat funkcni yaml ktery byl uz v panelu a chyba stejna

@edwardtfn
Copy link
Collaborator

Please take a look at this as it is similar: #2426 (comment)

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

2 participants