When compiling I get the following error:
INFO ESPHome 2026.3.0
............
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
- contrib-piohome @ 3.4.4
- framework-arduinoespressif32 @ 3.3.7
- framework-arduinoespressif32-libs @ 5.5.3
- framework-espidf @ 3.50503.0 (5.5.3)
- tool-cmake @ 4.0.3
- tool-esp-rom-elfs @ 2024.10.11
- tool-esptoolpy @ 5.1.2
- tool-ninja @ 1.13.1
- tool-scons @ 4.40801.0 (4.8.1)
- toolchain-xtensa-esp-elf @ 14.2.0+20251107
Reading CMake configuration...
Dependency Graph
|-- noise-c @ 0.1.11
|-- VitoWiFi @ 1.1.2
Compiling .pioenvs/viessmann/src/esphome/components/optolink/text_sensor/optolink_text_sensor.cpp.o
Compiling .pioenvs/viessmann/src/esphome/components/version/version_text_sensor.cpp.o
src/esphome/components/optolink/text_sensor/optolink_text_sensor.cpp: In member function 'virtual void esphome::optolink::OptolinkTextSensor::setup()':
src/esphome/components/optolink/text_sensor/optolink_text_sensor.cpp:32:7: error: 'set_entity_category' was not declared in this scope; did you mean 'get_entity_category'?
32 | set_entity_category(esphome::ENTITY_CATEGORY_DIAGNOSTIC);
| ^~~~~~~~~~~~~~~~~~~
| get_entity_category
Compiling .pioenvs/viessmann/src/esphome/core/application.cpp.o
*** [.pioenvs/viessmann/src/esphome/components/optolink/text_sensor/optolink_text_sensor.cpp.o] Error 1
========================= [FAILED] Took 38.11 seconds =========================
the solution is to edit optolink_text_sensor.cpp
1- on the line 3 = > #include "esphome/core/entity_base.h"
2- commenting out lines 33 and 38
example:
optolink_text_sensor.cpp
When compiling I get the following error:
the solution is to edit optolink_text_sensor.cpp
1- on the line 3 = > #include "esphome/core/entity_base.h"
2- commenting out lines 33 and 38
example:
optolink_text_sensor.cpp