-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've got compilation error when tried to use the component #12
Comments
Framework type should be |
It did not help: new errors :(
|
OK, scratch that. The platform should've been |
I created minimal config for my board and cleaned build files :
Same compilation error:
|
Like I said - try to remove platformio_options under esp home, and
everything under esp32 except board.
…On Mon, 25 Mar 2024, 23:03 Dmitry, ***@***.***> wrote:
I created minimal config for my board and cleaned build files :
esphome:
name: maktestnode1
platformio_options:
board_build.flash_mode: dio
esp32:
board: esp32-s3-devkitc-1
framework:
type: arduino
flash_size: 16Mb
variant: esp32s3
external_components:
# shorthand
source: github://aronsky/esphome-components
light:
- platform: ble_adv_light
type: lampsmart_pro
name: Test Light
duration: 750
default_transition_length: 0s
Same compilation error:
INFO ESPHome 2024.3.0
INFO Reading configuration /config/maktestnode1.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing maktestnode1 (board: esp32-s3-devkitc-1; framework: arduino; platform: ***@***.***)
--------------------------------------------------------------------------------
HARDWARE: ESP32S3 240MHz, 320KB RAM, 8MB Flash
- toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
- toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5
No dependencies
Compiling .pioenvs/maktestnode1/src/main.cpp.o
Compiling .pioenvs/maktestnode1/FrameworkArduino/Print.cpp.o
Compiling .pioenvs/maktestnode1/FrameworkArduino/Stream.cpp.o
Compiling .pioenvs/maktestnode1/FrameworkArduino/StreamString.cpp.o
Compiling .pioenvs/maktestnode1/FrameworkArduino/Tone.cpp.o
Compiling .pioenvs/maktestnode1/FrameworkArduino/USB.cpp.o
Compiling .pioenvs/maktestnode1/FrameworkArduino/USBCDC.cpp.o
Compiling .pioenvs/maktestnode1/FrameworkArduino/USBMSC.cpp.o
In file included from src/esphome.h:3,
from src/main.cpp:3:
src/esphome/components/ble_adv_light/ble_adv_light.h:94:58: error: expected template-name before '<' token
template<typename... Ts> class PairAction : public Action<Ts...> {
^
src/esphome/components/ble_adv_light/ble_adv_light.h:94:58: error: expected '{' before '<' token
src/esphome/components/ble_adv_light/ble_adv_light.h:106:60: error: expected template-name before '<' token
template<typename... Ts> class UnpairAction : public Action<Ts...> {
^
src/esphome/components/ble_adv_light/ble_adv_light.h:106:60: error: expected '{' before '<' token
Compiling .pioenvs/maktestnode1/FrameworkArduino/WMath.cpp.o
Compiling .pioenvs/maktestnode1/FrameworkArduino/WString.cpp.o
Compiling .pioenvs/maktestnode1/FrameworkArduino/base64.cpp.o
*** [.pioenvs/maktestnode1/src/main.cpp.o] Error 1
========================== [FAILED] Took 2.80 seconds ==========================
—
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABD52DAQRPU7WWJTINAGMV3Y2CGJ5AVCNFSM6AAAAABFF5VXK2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJYHEYTAMZWGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Completely new config:
Same error:
|
Strange... Unless the issue is with the board field itself (i.e., it causes
some includes/defines that somehow break the Action template). I'll run the
exact same config on my end tomorrow and check the result.
…On Mon, 25 Mar 2024, 23:11 Dmitry, ***@***.***> wrote:
Completely new config:
esphome:
name: tmp1
esp32:
board: esp32-s3-devkitc-1
external_components:
# shorthand
source: github://aronsky/esphome-components
light:
- platform: ble_adv_light
type: lampsmart_pro
name: Test Light
duration: 750
default_transition_length: 0s
Same error:
INFO ESPHome 2024.3.0
INFO Reading configuration /config/tmp1.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing tmp1 (board: esp32-s3-devkitc-1; framework: arduino; platform: ***@***.***)
--------------------------------------------------------------------------------
HARDWARE: ESP32S3 240MHz, 320KB RAM, 8MB Flash
- toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
- toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5
No dependencies
Compiling .pioenvs/tmp1/src/esphome/components/ble_adv_light/ble_adv_light.cpp.o
Compiling .pioenvs/tmp1/src/esphome/components/ble_adv_light/lampsmart_pro.cpp.o
Compiling .pioenvs/tmp1/src/esphome/components/ble_adv_light/msc26a.cpp.o
Compiling .pioenvs/tmp1/src/esphome/components/ble_adv_light/zhijia_light.cpp.o
Compiling .pioenvs/tmp1/src/esphome/components/esp32/core.cpp.o
Compiling .pioenvs/tmp1/src/esphome/components/esp32/gpio.cpp.o
Compiling .pioenvs/tmp1/src/esphome/components/esp32/preferences.cpp.o
Compiling .pioenvs/tmp1/src/esphome/components/esp32_ble/ble.cpp.o
Compiling .pioenvs/tmp1/src/esphome/components/esp32_ble/ble_advertising.cpp.o
Compiling .pioenvs/tmp1/src/esphome/components/esp32_ble/ble_uuid.cpp.o
Compiling .pioenvs/tmp1/src/esphome/components/light/addressable_light.cpp.o
Compiling .pioenvs/tmp1/src/esphome/components/light/automation.cpp.o
Compiling .pioenvs/tmp1/src/esphome/components/light/esp_color_correction.cpp.o
Compiling .pioenvs/tmp1/src/esphome/components/light/esp_hsv_color.cpp.o
Compiling .pioenvs/tmp1/src/esphome/components/light/esp_range_view.cpp.o
Compiling .pioenvs/tmp1/src/esphome/components/light/light_call.cpp.o
Compiling .pioenvs/tmp1/src/esphome/components/light/light_json_schema.cpp.o
Compiling .pioenvs/tmp1/src/esphome/components/light/light_output.cpp.o
Compiling .pioenvs/tmp1/src/esphome/components/light/light_state.cpp.o
Compiling .pioenvs/tmp1/src/esphome/core/application.cpp.o
Compiling .pioenvs/tmp1/src/esphome/core/color.cpp.o
Compiling .pioenvs/tmp1/src/esphome/core/component.cpp.o
Compiling .pioenvs/tmp1/src/esphome/core/component_iterator.cpp.o
Compiling .pioenvs/tmp1/src/esphome/core/controller.cpp.o
Compiling .pioenvs/tmp1/src/esphome/core/entity_base.cpp.o
Compiling .pioenvs/tmp1/src/esphome/core/helpers.cpp.o
Compiling .pioenvs/tmp1/src/esphome/core/log.cpp.o
Compiling .pioenvs/tmp1/src/esphome/core/ring_buffer.cpp.o
Compiling .pioenvs/tmp1/src/esphome/core/scheduler.cpp.o
Compiling .pioenvs/tmp1/src/esphome/core/string_ref.cpp.o
Compiling .pioenvs/tmp1/src/esphome/core/time.cpp.o
Compiling .pioenvs/tmp1/src/esphome/core/util.cpp.o
Compiling .pioenvs/tmp1/src/main.cpp.o
Building .pioenvs/tmp1/bootloader.bin
Creating esp32s3 image...
Successfully created esp32s3 image.
Generating partitions .pioenvs/tmp1/partitions.bin
Compiling .pioenvs/tmp1/FrameworkArduino/Esp.cpp.o
Compiling .pioenvs/tmp1/FrameworkArduino/FirmwareMSC.cpp.o
Compiling .pioenvs/tmp1/FrameworkArduino/FunctionalInterrupt.cpp.o
Compiling .pioenvs/tmp1/FrameworkArduino/HWCDC.cpp.o
In file included from src/esphome.h:3,
from src/main.cpp:3:
src/esphome/components/ble_adv_light/ble_adv_light.h:94:58: error: expected template-name before '<' token
template<typename... Ts> class PairAction : public Action<Ts...> {
^
src/esphome/components/ble_adv_light/ble_adv_light.h:94:58: error: expected '{' before '<' token
src/esphome/components/ble_adv_light/ble_adv_light.h:106:60: error: expected template-name before '<' token
template<typename... Ts> class UnpairAction : public Action<Ts...> {
^
src/esphome/components/ble_adv_light/ble_adv_light.h:106:60: error: expected '{' before '<' token
Compiling .pioenvs/tmp1/FrameworkArduino/HardwareSerial.cpp.o
Compiling .pioenvs/tmp1/FrameworkArduino/IPAddress.cpp.o
Compiling .pioenvs/tmp1/FrameworkArduino/IPv6Address.cpp.o
Compiling .pioenvs/tmp1/FrameworkArduino/MD5Builder.cpp.o
*** [.pioenvs/tmp1/src/main.cpp.o] Error 1
========================== [FAILED] Took 7.58 seconds ==========================
—
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABD52DG5WROVJJ6RTCXXJJDY2CHIZAVCNFSM6AAAAABFF5VXK2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJYHEZDIMRXGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Changed it for something different:
Same error:
|
OK, I got it. Your original configuration is fine - but the code in this repo (specifically, the part that generates the error - the The long-term fix is to update the code in this repo and enable the |
I've temporary added "api" component. I confirm it works with it. I managed to add and control Estares TETRA (lampsmart_pro type). |
I've add the component into my config and it caused the compilation error:
The config is very simple:
The text was updated successfully, but these errors were encountered: