You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library enables you to **send _and_ receive** infra-red signals on an [ESP8266](https://github.com/esp8266/Arduino) or an
[ESP32](https://github.com/espressif/arduino-esp32) using the [Arduino framework](https://www.arduino.cc/) using common 940nm IR LEDs and common IR receiver modules. e.g. TSOP{17,22,24,36,38,44,48}* demodulators etc.
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 1
To Reproduce
In the ESPHome add-on in Home Assistant, try compiling the following:
esphome:
name: samsung-ac-remote-control
friendly_name: samsung-ac
includes:
libraries:
build_path: build/samsung-ac-remote-control
area: ''
platformio_options: {}
name_add_mac_suffix: false
min_version: 2023.12.9
bk72xx:
board: wb3s
framework:
version: 0.0.0
loglevel: WARN
debug: []
sdk_silent: all
gpio_recover: true
options: {}
source: null
family: BK7231T
component_id: bk72xx
wifi:
ap:
ssid: Samsung Ac Remote Control
password: password
ap_timeout: 1min
domain: .local
reboot_timeout: 15min
power_save_mode: NONE
fast_connect: false
passive_scan: false
enable_on_boot: true
networks:
password: xxxxxx
priority: 0.0
use_address: samsung-ac-remote-control.local
captive_portal: {}
logger:
baud_rate: 115200
tx_buffer_size: 512
deassert_rts_dtr: false
hardware_uart: DEFAULT
level: DEBUG
logs: {}
api:
password: password
port: 6053
reboot_timeout: 15min
ota:
password: password
safe_mode: true
port: 8892
reboot_timeout: 5min
num_attempts: 10
status_led:
pin:
number: 9
mode:
output: true
input: false
open_drain: false
pullup: false
pulldown: false
analog: false
inverted: false
sensor:
name: My Room Temperature
accuracy_decimals: 1
id: my_room_temp
disabled_by_default: false
force_update: false
update_interval: 60s
climate:
lambda: !lambda |-
auto samsungac = new SamsungAC();
samsungac->set_sensor(id(my_room_temp));
App.register_component(samsungac);
return {samsungac};
climates:
disabled_by_default: false
visual: {}
Example code used
I have followed the steps in the Troubleshooting Guide & read the FAQ
Yes
Has this library/code previously worked as expected for you?
No.
Other useful information
I found the same error here:
esphome/issues#5432
The text was updated successfully, but these errors were encountered: