If I click on the OTA button in the lower left corner of VS Code a new Terminal with the name 1: Task - esphome compile opens and it tries to do the OTA Update. Unfortunately it somehow can not open/find esphome in this terminal session.
Log of this terminal window:
> Executing task: esphome amp_meter_test.yaml run --upload-port OTA <
zsh:1: command not found: esphome
The terminal process "/bin/zsh '-c', 'esphome amp_meter_test.yaml run --upload-port OTA'" terminated with exit code: 127.
Terminal will be reused by tasks, press any key to close it.
If I manually open a terminal window and type the exact same command everything works like expected:
(base) tilman@MBP-von-Tilman esphome-dashboard % esphome amp_meter_test.yaml run --upload-port OTA
INFO Reading configuration amp_meter_test.yaml...
INFO Generating C++ source...
INFO Compiling app...
INFO Running: platformio run -d amp_meter_test
Processing amp_meter_test (board: esp-wrover-kit; framework: arduino; platform: espressif32@1.12.4)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
PACKAGES:
- framework-arduinoespressif32 3.10004.200129 (1.0.4)
- tool-esptoolpy 1.20600.0 (2.6.0)
- toolchain-xten
...
OS: Mac OS X Big Sur
esphome: 1.15.3
esphomeflasher: 1.3.0
Well ota is working for me but seems it is using an outdated version of platform.io as when I compile later with esphome I get noticed in the logs about a wrong build and I'm being asked to delete the build manually.
If I click on the OTA button in the lower left corner of VS Code a new Terminal with the name
1: Task - esphome compile
opens and it tries to do the OTA Update. Unfortunately it somehow can not open/find esphome in this terminal session. Log of this terminal window:If I manually open a terminal window and type the exact same command everything works like expected:
OS: Mac OS X Big Sur esphome: 1.15.3 esphomeflasher: 1.3.0