New to HA and wanted to implement the below Dr ZZs project, Probably should have talked something a little less daunting first I am getting a compile error in his esphome/servo_device.yaml (see below). Motor raise/lower is working it is just the tilt servo that is not which makes sense since it wont compile. Any help would be appreciated as I am stuckā¦
Project link:
Error message:
unknown tag !<!lambda> at line 31, column 51:
ā¦ !lambda āreturn level / 100.0;ā
^
to be clear I am not a programmer am editing the file in both visual studio code as well as editing directly in home assistant > file editor. no real compiler that I see but both give errors. Latest under visual studio code editor = unknown tag <!lambda> line 30, 587 which is the id: ob_tilt
did that beforeā¦just did it again and this is the only error I see. Cover is related to lift/descend and not tilt which is what is not working.
Compiling /data/office_blinds/.pioenvs/office_blinds/src/main.cpp.o
src/main.cpp: In lambda function:
src/main.cpp:422:20: warning: āesphome::cover::Cover::::stateā is deprecated (declared at src/esphome/components/cover/cover.h:120): .state is deprecated, please use .position instead [-Wdeprecated-declarations]
if (ob_open->state == cover::COVER_OPEN) {
^
src/main.cpp:422:20: warning: āesphome::cover::Cover::::stateā is deprecated (declared at src/esphome/components/cover/cover.h:120): .state is deprecated, please use .position instead [-Wdeprecated-declarations]
INFO Reading configuration /config/esphome/servo_device.yamlā¦
INFO Generating C++ sourceā¦
INFO Compiling appā¦
INFO Running: platformio run -d /config/esphome/office_blinds
Processing office_blinds (board: d1_mini; framework: arduino; platform: [email protected])
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
Dependency Graph
|-- 1.2.2
| |-- 1.0
|-- 1.0
|-- 1.2
| |-- 1.0
|-- 1.2.6
| |-- 1.2.2
| | |-- 1.0
| |-- 1.0
| |-- 1.0
|-- 1.1.1
| |-- 1.0
Compiling /data/office_blinds/.pioenvs/office_blinds/src/main.cpp.o
src/main.cpp: In lambda function:
src/main.cpp:422:20: warning: āesphome::cover::Cover::::stateā is deprecated (declared at src/esphome/components/cover/cover.h:120): .state is deprecated, please use .position instead [-Wdeprecated-declarations]
if (ob_open->state == cover::COVER_OPEN) {
^
src/main.cpp:422:20: warning: āesphome::cover::Cover::::stateā is deprecated (declared at src/esphome/components/cover/cover.h:120): .state is deprecated, please use .position instead [-Wdeprecated-declarations]
Linking /data/office_blinds/.pioenvs/office_blinds/firmware.elf
Building /data/office_blinds/.pioenvs/office_blinds/firmware.bin
Retrieving maximum program size /data/office_blinds/.pioenvs/office_blinds/firmware.elf
Checking size /data/office_blinds/.pioenvs/office_blinds/firmware.elf
DATA: [===== ] 45.5% (used 37256 bytes from 81920 bytes)
PROGRAM: [==== ] 40.4% (used 422068 bytes from 1044464 bytes)
Creating BIN file ā/data/office_blinds/.pioenvs/office_blinds/firmware.binā using ā/data/office_blinds/.pioenvs/office_blinds/firmware.elfā
========================= [SUCCESS] Took 4.71 seconds =========================
INFO Successfully compiled program.
yea thats my concern as everything looks ok from esphome but errors in yaml file when opened in file editor. I will just assume the file editor is wrong. Thanksā¦will keep hacking at it.