I am very new to esphome and home assistant and just googling the error didn't help me. I am trying to get a raspberry pi to talk over wifi to a esp32 device. Both successfully connect to the network, but I can't get compiling to work for the esp32 device anymore. I am using the CLI on my windows machine to compile it as using the web based compiler didn't work so well on my Raspberry Pi 3B+. I did managed to get it working a week or so ago, then it came up with the error below and hasn't allowed further compilation ever since.
I assume it has something to do with the git repository, but my git knowledge is very small and I don't know how to test if the git repository it is looking for is valid. Any help appreciated.
>esphome run .\workshop.yaml
INFO ESPHome 2024.12.2
INFO Reading configuration .\workshop.yaml...
INFO Generating C++ source...
INFO Cloning /[email protected]
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Scripts\esphome.exe\__main__.py", line 7, in <module>
File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\__main__.py", line 1036, in main
return run_esphome(sys.argv)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\__main__.py", line 1023, in run_esphome
rc = POST_CONFIG_ACTIONS[argsmand](args, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\__main__.py", line 503, in command_run
exit_code = write_cpp(config)
^^^^^^^^^^^^^^^^^
File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\__main__.py", line 213, in write_cpp
return write_cpp_file()
^^^^^^^^^^^^^^^^
File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\__main__.py", line 231, in write_cpp_file
writer.write_cpp(code_s)
File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\writer.py", line 341, in write_cpp
copy_src_tree()
File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\writer.py", line 307, in copy_src_tree
copy_files()
File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\components\esp32\__init__.py", line 801, in copy_files
repo_dir, _ = git.clone_or_update(
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\git.py", line 67, in clone_or_update
run_git_command(cmd)
File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\git.py", line 32, in run_git_command
raise cv.Invalid(err_str)
voluptuous.error.Invalid: Cloning into '.esphome\idf_components\7cd5e7e1'...
My configuration file: workshop.yaml
esphome:
name: esphome-web-baa3a0
friendly_name: Workshop
area: workshop
min_version: 2024.11.0
name_add_mac_suffix: false
esp32:
board: esp32dev
framework:
type: esp-idf
# Enable logging
logger:
# Enable Home Assistant API
api:
# Allow Over-The-Air updates
ota:
- platform: esphome
wifi:
ssid: <Hidden>
password: <Hidden>
manual_ip:
static_ip: 192.168.1.102
gateway: 192.168.1.1
subnet: 255.255.255.0
switch:
- platform: gpio
name: "relay"
pin: GPIO16
- platform: gpio
name: "led"
pin: GPIO23
I am very new to esphome and home assistant and just googling the error didn't help me. I am trying to get a raspberry pi to talk over wifi to a esp32 device. Both successfully connect to the network, but I can't get compiling to work for the esp32 device anymore. I am using the CLI on my windows machine to compile it as using the web based compiler didn't work so well on my Raspberry Pi 3B+. I did managed to get it working a week or so ago, then it came up with the error below and hasn't allowed further compilation ever since.
I assume it has something to do with the git repository, but my git knowledge is very small and I don't know how to test if the git repository it is looking for is valid. Any help appreciated.
>esphome run .\workshop.yaml
INFO ESPHome 2024.12.2
INFO Reading configuration .\workshop.yaml...
INFO Generating C++ source...
INFO Cloning https://github/espressif/[email protected]
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Scripts\esphome.exe\__main__.py", line 7, in <module>
File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\__main__.py", line 1036, in main
return run_esphome(sys.argv)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\__main__.py", line 1023, in run_esphome
rc = POST_CONFIG_ACTIONS[argsmand](args, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\__main__.py", line 503, in command_run
exit_code = write_cpp(config)
^^^^^^^^^^^^^^^^^
File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\__main__.py", line 213, in write_cpp
return write_cpp_file()
^^^^^^^^^^^^^^^^
File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\__main__.py", line 231, in write_cpp_file
writer.write_cpp(code_s)
File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\writer.py", line 341, in write_cpp
copy_src_tree()
File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\writer.py", line 307, in copy_src_tree
copy_files()
File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\components\esp32\__init__.py", line 801, in copy_files
repo_dir, _ = git.clone_or_update(
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\git.py", line 67, in clone_or_update
run_git_command(cmd)
File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\git.py", line 32, in run_git_command
raise cv.Invalid(err_str)
voluptuous.error.Invalid: Cloning into '.esphome\idf_components\7cd5e7e1'...
My configuration file: workshop.yaml
esphome:
name: esphome-web-baa3a0
friendly_name: Workshop
area: workshop
min_version: 2024.11.0
name_add_mac_suffix: false
esp32:
board: esp32dev
framework:
type: esp-idf
# Enable logging
logger:
# Enable Home Assistant API
api:
# Allow Over-The-Air updates
ota:
- platform: esphome
wifi:
ssid: <Hidden>
password: <Hidden>
manual_ip:
static_ip: 192.168.1.102
gateway: 192.168.1.1
subnet: 255.255.255.0
switch:
- platform: gpio
name: "relay"
pin: GPIO16
- platform: gpio
name: "led"
pin: GPIO23
Share
Improve this question
asked Jan 18 at 4:24
JeremyJeremy
12 bronze badges
0
1 Answer
Reset to default 0Turned out to be something to do with the config file. Using the previous version of the config allowed compilation. Not sure which bit. But closing this question