Open DevineCZ opened 5 months ago
Processing samsung-ac-remote-control (board: wb3s; framework: arduino; platform: libretiny @ 1.4.1)
I think your problem is you're trying to build for a platform that this library doesn't support. ie. wb3s is not an ESP8266 or a ESP32.
See the main README.md
for this repository/project/library:
Version/revision of the library used
2.8.6
Describe the bug
When I compile in ESPHome 2023.12.9 in Home Assistant IRremoteESP826, I get an error message.
Compiling .pioenvs/samsung-ac-remote-control/lib84c/IRremoteESP8266/IRrecv.cpp.o Compiling .pioenvs/samsung-ac-remote-control/lib84c/IRremoteESP8266/IRtext.cpp.o Compiling .pioenvs/samsung-ac-remote-control/lib84c/IRremoteESP8266/IRtimer.cpp.o Compiling .pioenvs/samsung-ac-remote-control/lib84c/IRremoteESP8266/IRutils.cpp.o /piolibs/IRremoteESP8266/src/IRrecv.cpp:140:7: error: '_IRrecv' has not been declared 140 | using _IRrecv::timer; | ^
~~ /piolibs/IRremoteESP8266/src/IRrecv.cpp:174:3: error: expected unqualified-id before 'if' 174 | if (params.rawlen) params.rcvstate = kStopState; | ^~ /piolibs/IRremoteESP8266/src/IRrecv.cpp:181:1: error: expected declaration before '}' token 181 | } | ^ /piolibs/IRremoteESP8266/src/IRrecv.cpp:184:27: error: expected initializer before 'gpio_intr' 184 | static void USE_IRAM_ATTR gpio_intr() { | ^~~~~ /piolibs/IRremoteESP8266/src/IRrecv.cpp: In member function 'void IRrecv::enableIRIn(bool)': /piolibs/IRremoteESP8266/src/IRrecv.cpp:389:35: error: 'gpio_intr' was not declared in this scope 389 | attachInterrupt(params.recvpin, gpio_intr, CHANGE); | ^~~~~ *** [.pioenvs/samsung-ac-remote-control/lib84c/IRremoteESP8266/IRrecv.cpp.o] Error 1To Reproduce
In the ESPHome add-on in Home Assistant, try compiling the following:
esphome: name: samsung-ac-remote-control friendly_name: samsung-ac includes:
Example code used