tried both without luck
if(id(Schalter_WP).mode==CLIMATE_MODE_OFF) {
it.print(30,280, id(display_font_50), TextAlign::BASELINE_CENTER, "\U000F1B22");
} else if(id(Schalter_WP).mode==CLIMATE_MODE_HEAT){
it.print(30,280, id(display_font_50), TextAlign::BASELINE_CENTER, "\U000F1A45");
} else if(id(Schalter_WP).mode==CLIMATE_MODE_COOL){
it.print(30,280, id(display_font_50), TextAlign::BASELINE_CENTER, "\U000F0717");
} else if(id(Schalter_WP).mode==CLIMATE_MODE_AUTO){
it.print(30,280, id(display_font_50), TextAlign::BASELINE_CENTER, "\U000F18F2");
} else
it.print(30,280, id(display_font_50), TextAlign::BASELINE_CENTER, "\U000F1B22");
}
it.printf(30,295, id(consolaMono_bold_15), TextAlign::BASELINE_CENTER, "WP");
INFO ESPHome 2024.6.3
INFO Reading configuration /config/esphome/display-pool.yaml...
WARNING GPIO15 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
WARNING GPIO12 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Generating C++ source...
INFO Compiling app...
Processing display-pool (board: esp32dev; framework: arduino; platform: platformio/[email protected])
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Dependency Graph
|-- AsyncTCP-esphome @ 2.1.3
|-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- Update @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 3.2.2
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- noise-c @ 0.1.4
|-- SPI @ 2.0.0
Compiling .pioenvs/display-pool/src/main.cpp.o
/config/esphome/display-pool.yaml: In lambda function:
/config/esphome/display-pool.yaml:352:23: error: 'class esphome::homeassistant::HomeassistantBinarySensor' has no member named 'mode'
if(id(Schalter_WP).mode==CLIMATE_MODE_OFF) {
^~~~
/config/esphome/display-pool.yaml:352:29: error: 'CLIMATE_MODE_OFF' was not declared in this scope
if(id(Schalter_WP).mode==CLIMATE_MODE_OFF) {
^~~~~~~~~~~~~~~~
/config/esphome/display-pool.yaml:352:29: note: suggested alternative:
In file included from src/esphome/components/api/api_connection.h:4,
from src/esphome.h:3,
from src/main.cpp:3:
src/esphome/components/api/api_pb2.h:84:3: note: 'CLIMATE_MODE_OFF'
CLIMATE_MODE_OFF = 0,
^~~~~~~~~~~~~~~~
/config/esphome/display-pool.yaml:354:30: error: 'class esphome::homeassistant::HomeassistantBinarySensor' has no member named 'mode'
} else if(id(Schalter_WP).mode==CLIMATE_MODE_HEAT){
^~~~
/config/esphome/display-pool.yaml:354:36: error: 'CLIMATE_MODE_HEAT' was not declared in this scope
} else if(id(Schalter_WP).mode==CLIMATE_MODE_HEAT){
^~~~~~~~~~~~~~~~~
/config/esphome/display-pool.yaml:354:36: note: suggested alternative:
In file included from src/esphome/components/api/api_connection.h:4,
from src/esphome.h:3,
from src/main.cpp:3:
src/esphome/components/api/api_pb2.h:87:3: note: 'CLIMATE_MODE_HEAT'
CLIMATE_MODE_HEAT = 3,
^~~~~~~~~~~~~~~~~
/config/esphome/display-pool.yaml:356:30: error: 'class esphome::homeassistant::HomeassistantBinarySensor' has no member named 'mode'
} else if(id(Schalter_WP).mode==CLIMATE_MODE_COOL){
^~~~
/config/esphome/display-pool.yaml:356:36: error: 'CLIMATE_MODE_COOL' was not declared in this scope
} else if(id(Schalter_WP).mode==CLIMATE_MODE_COOL){
^~~~~~~~~~~~~~~~~
/config/esphome/display-pool.yaml:356:36: note: suggested alternative:
In file included from src/esphome/components/api/api_connection.h:4,
from src/esphome.h:3,
from src/main.cpp:3:
src/esphome/components/api/api_pb2.h:86:3: note: 'CLIMATE_MODE_COOL'
CLIMATE_MODE_COOL = 2,
^~~~~~~~~~~~~~~~~
/config/esphome/display-pool.yaml:358:30: error: 'class esphome::homeassistant::HomeassistantBinarySensor' has no member named 'mode'
} else if(id(Schalter_WP).mode==CLIMATE_MODE_AUTO){
^~~~
/config/esphome/display-pool.yaml:358:36: error: 'CLIMATE_MODE_AUTO' was not declared in this scope
} else if(id(Schalter_WP).mode==CLIMATE_MODE_AUTO){
^~~~~~~~~~~~~~~~~
/config/esphome/display-pool.yaml:358:36: note: suggested alternative:
In file included from src/esphome/components/api/api_connection.h:4,
from src/esphome.h:3,
from src/main.cpp:3:
src/esphome/components/api/api_pb2.h:90:3: note: 'CLIMATE_MODE_AUTO'
CLIMATE_MODE_AUTO = 6,
^~~~~~~~~~~~~~~~~
/config/esphome/display-pool.yaml: In function 'void setup()':
/config/esphome/display-pool.yaml:362:8: error: expected ')' before 'it'
}
^
)
/config/esphome/display-pool.yaml:364:7:
it.printf(30,295, id(consolaMono_bold_15), TextAlign::BASELINE_CENTER, "WP");
~~
src/main.cpp:3947:28: note: to match this '('
epaperdisplay->set_writer([=](display::Display & it) -> void {
^
/config/esphome/display-pool.yaml:372:11: error: 'it' was not declared in this scope
it.print(wifi_x, wifi_y, id(wifi_font_30), TextAlign::BASELINE_CENTER, "\U000F0928");
^~
/config/esphome/display-pool.yaml:372:11: note: suggested alternative: 'bit'
it.print(wifi_x, wifi_y, id(wifi_font_30), TextAlign::BASELINE_CENTER, "\U000F0928");
^~
bit
/config/esphome/display-pool.yaml:376:11: error: 'it' was not declared in this scope
it.print(wifi_x, wifi_y, id(wifi_font_30), TextAlign::BASELINE_CENTER, "\U000F0925");
^~
/config/esphome/display-pool.yaml:376:11: note: suggested alternative: 'bit'
it.print(wifi_x, wifi_y, id(wifi_font_30), TextAlign::BASELINE_CENTER, "\U000F0925");
^~
bit
/config/esphome/display-pool.yaml:380:11: error: 'it' was not declared in this scope
it.print(wifi_x, wifi_y, id(wifi_font_30), TextAlign::BASELINE_CENTER, "\U000F0922");
^~
/config/esphome/display-pool.yaml:380:11: note: suggested alternative: 'bit'
it.print(wifi_x, wifi_y, id(wifi_font_30), TextAlign::BASELINE_CENTER, "\U000F0922");
^~
bit
/config/esphome/display-pool.yaml:384:11: error: 'it' was not declared in this scope
it.print(wifi_x, wifi_y, id(wifi_font_30), TextAlign::BASELINE_CENTER, "\U000F091F");
^~
/config/esphome/display-pool.yaml:384:11: note: suggested alternative: 'bit'
it.print(wifi_x, wifi_y, id(wifi_font_30), TextAlign::BASELINE_CENTER, "\U000F091F");
^~
bit
/config/esphome/display-pool.yaml:388:11: error: 'it' was not declared in this scope
it.print(wifi_x, wifi_y, id(wifi_font_30), TextAlign::BASELINE_CENTER, "\U000F092F");
^~
/config/esphome/display-pool.yaml:388:11: note: suggested alternative: 'bit'
it.print(wifi_x, wifi_y, id(wifi_font_30), TextAlign::BASELINE_CENTER, "\U000F092F");
^~
bit
/config/esphome/display-pool.yaml: At global scope:
/config/esphome/display-pool.yaml:392:4: error: expected unqualified-id before ')' token
^
/config/esphome/display-pool.yaml:393:3: error: 'esp32_esp32internalgpiopin_id_6' does not name a type
^
/config/esphome/display-pool.yaml:394:3: error: 'esp32_esp32internalgpiopin_id_6' does not name a type
/config/esphome/display-pool.yaml:395:3: error: 'esp32_esp32internalgpiopin_id_6' does not name a type
/config/esphome/display-pool.yaml:396:3: error: 'esp32_esp32internalgpiopin_id_6' does not name a type
/config/esphome/display-pool.yaml:397:3: error: 'esp32_esp32internalgpiopin_id_6' does not name a type
/config/esphome/display-pool.yaml:398:3: error: 'epaperdisplay' does not name a type
/config/esphome/display-pool.yaml:399:3: error: 'esp32_esp32internalgpiopin_id_5' does not name a type
/config/esphome/display-pool.yaml:400:3: error: 'esp32_esp32internalgpiopin_id_5' does not name a type
/config/esphome/display-pool.yaml:401:3: error: 'esp32_esp32internalgpiopin_id_5' does not name a type
/config/esphome/display-pool.yaml:402:3: error: 'esp32_esp32internalgpiopin_id_5' does not name a type
/config/esphome/display-pool.yaml:403:3: error: 'esp32_esp32internalgpiopin_id_5' does not name a type
/config/esphome/display-pool.yaml:404:3: error: 'epaperdisplay' does not name a type
/config/esphome/display-pool.yaml:410:3: error: 'updatecomponentaction_id' does not name a type
/config/esphome/display-pool.yaml:411:3: error: 'automation_id' does not name a type
/config/esphome/display-pool.yaml:411:56: error: expected unqualified-id before ')' token
/config/esphome/display-pool.yaml:412:3: error: 'time_crontrigger_id_2' does not name a type
/config/esphome/display-pool.yaml:413:3: error: 'time_crontrigger_id_2' does not name a type
/config/esphome/display-pool.yaml:413:41: error: expected unqualified-id before ')' token
/config/esphome/display-pool.yaml:414:3: error: 'time_crontrigger_id_2' does not name a type
/config/esphome/display-pool.yaml:414:45: error: expected unqualified-id before ')' token
/config/esphome/display-pool.yaml:415:3: error: 'time_crontrigger_id_2' does not name a type
/config/esphome/display-pool.yaml:415:64: error: expected unqualified-id before ')' token
/config/esphome/display-pool.yaml:416:3: error: 'time_crontrigger_id_2' does not name a type
/config/esphome/display-pool.yaml:416:159: error: expected unqualified-id before ')' token
/config/esphome/display-pool.yaml:417:3: error: 'time_crontrigger_id_2' does not name a type
/config/esphome/display-pool.yaml:417:76: error: expected unqualified-id before ')' token
/config/esphome/display-pool.yaml:418:3: error: 'time_crontrigger_id_2' does not name a type
/config/esphome/display-pool.yaml:418:64: error: expected unqualified-id before ')' token
/config/esphome/display-pool.yaml:419:3: error: 'time_crontrigger_id_2' does not name a type
/config/esphome/display-pool.yaml:420:3: error: 'App' does not name a type
/config/esphome/display-pool.yaml:421:3: error: 'automation_id_2' does not name a type
/config/esphome/display-pool.yaml:422:3: error: 'updatecomponentaction_id_2' does not name a type
/config/esphome/display-pool.yaml:423:3: error: 'automation_id_2' does not name a type
/config/esphome/display-pool.yaml:423:60: error: expected unqualified-id before ')' token
/config/esphome/display-pool.yaml:424:3: error: 'homeassistant_time' does not name a type
/config/esphome/display-pool.yaml:425:3: error: 'homeassistant_time' does not name a type
/config/esphome/display-pool.yaml:426:3: error: 'App' does not name a type
/config/esphome/display-pool.yaml:428:3: error: 'App' does not name a type
/config/esphome/display-pool.yaml:429:1: error: expected declaration before '}' token