Hello, there.
I get this error:
Reading CMake configuration...
-- git rev-parse returned 'fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).'
-- Building ESP-IDF components for target esp32
-- Configuring incomplete, errors occurred!
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
CMake Error at /data/cache/platformio/packages/framework-espidf/tools/cmake/build.cmake:620 (message):
Traceback (most recent call last):
File "<frozen runpy>", line 189, in _run_module_as_main
File "<frozen runpy>", line 112, in _get_module_details
File "/root/.platformio/penv/.espidf-5.4.2/lib/python3.12/site-packages/idf_component_manager/__init__.py", line 6, in <module>
from idf_component_tools.environment import ComponentManagerSettings
File "/root/.platformio/penv/.espidf-5.4.2/lib/python3.12/site-packages/idf_component_tools/__init__.py", line 9, in <module>
if ComponentManagerSettings().DEBUG_MODE:
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.platformio/penv/.espidf-5.4.2/lib/python3.12/site-packages/pydantic_settings/main.py", line 193, in __init__
super().__init__(
File "/root/.platformio/penv/.espidf-5.4.2/lib/python3.12/site-packages/pydantic/main.py", line 250, in __init__
validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.platformio/penv/.espidf-5.4.2/lib/python3.12/site-packages/idf_component_tools/environment.py", line 148, in fallback_to_default
if field.validation_alias:
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'validation_alias'
Call Stack (most recent call first):
/data/cache/platformio/packages/framework-espidf/tools/cmake/project.cmake:718 (idf_build_process)
CMakeLists.txt:3 (project)
The code in the .yaml is:
name: acuario
friendly_name: "Acuario"
esp32:
board: esp32dev
framework:
type: esp-idf
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "cFsKrugX/PnuqivqtQpcl2SpZLyn8/V/BfnZjrKzkIM="
ota:
- platform: esphome
password: "db0ad015f2fbee64c91ab4c7c24c412a"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Acuario Fallback Hotspot"
password: "uqFfKDXONGbu"
captive_portal:
# TEMPERATURA
one_wire:
- platform: gpio
pin: 23
id: bus1
sensor:
- platform: dallas_temp
#address:
one_wire_id: bus1
name: "Temperatura agua acuario"
id: temperatura
update_interval: 60s
# CAUDAL
- platform: pulse_counter
state_class: measurement
name: "Caudal filtro"
id: caudal_filtro
pin: 15 #D3
update_interval: 60s
filters:
- lambda: return ((((x / 60) + 4) / 8) * 60);
#- calibrate_linear:
#method: exact
#datapoints:
#Map 0.0 (from sensor) to 1.0 (true value)
#- 0.00 -> 0.0
#- 6.58 -> 1.0
#- 18.52 -> 2
#- 30.49 -> 3
#- 41.67 -> 4
#- 52.08 -> 5
#- 62.50 -> 6
#- 71.43 -> 7
#- 83.33 -> 8
#- 96.15 -> 9
#- 108.40 -> 10
#- lambda: !lambda |-
#if (x < 240) return (x / 120 * 60);
#return (((x / 60) + 8) / 6 * 60);
unit_of_measurement: "l/h"
- platform: adc
update_interval: 5s
name: "Sensor TDS"
pin: 33
unit_of_measurement: ppm
attenuation: 12db
filters:
- lambda: return x / (1 + (0.02 * (id(temperatura).state - 25.0)));
- lambda: return (133.42*x*x*x - 255.86*x*x + 857.39*x)*0.5;
```
