wifwucite / esphome-ble-controller

Bluetooth Low Energy (BLE) controller for ESPHome
MIT License
114 stars 23 forks source link

I tried your example I get this, can you help? thanks! #7

Closed maker999 closed 3 years ago

maker999 commented 3 years ago

Compiling .pioenvs\core_v2\src\esphome\components\binary_sensor\automation.cpp.o Compiling .pioenvs\core_v2\src\esphome\components\binary_sensor\binary_sensor.cpp.o Compiling .pioenvs\core_v2\src\esphome\components\binary_sensor\filter.cpp.o xtensa-esp32-elf-g++: fatal error: no input files compilation terminated. xtensa-esp32-elf-g++: fatal error: no input files compilation terminated. xtensa-esp32-elf-g++: fatal error: no input files compilation terminated. [.pioenvs\core_v2\src\esphome\components\binary_sensor\automation.cpp.o] Error 1 Compiling .pioenvs\core_v2\src\esphome\components\captive_portal\captive_portal.cpp.o [.pioenvs\core_v2\src\esphome\components\binary_sensor\binary_sensor.cpp.o] Error 1 [.pioenvs\core_v2\src\esphome\components\binary_sensor\filter.cpp.o] Error 1 xtensa-esp32-elf-g++: fatal error: no input files compilation terminated. [.pioenvs\core_v2\src\esphome\components\captive_portal\captive_portal.cpp.o] Error 1

wifwucite commented 3 years ago

Well, it seems that all the errors are coming from core ESPHome components like binary sensor or captive portal. Can you remove the BLE component from your yaml configuration and see if you are still getting errors.

maker999 commented 3 years ago

when I remove the BLE component I get no errors

wifwucite commented 3 years ago

Ok, can you post the yaml file that you use (without secrets), please? And are you using the latest ESPHome version?

maker999 commented 3 years ago

yaml files couldn't be uploaded so I uploaded a text file ble_test.txt

wifwucite commented 3 years ago

I have tested your file with minor changes with esphome version 2021.10.3 and Espressif platform 3.3.2. It compiled without any issues. For some template switch I had to add "optimistic: true", otherwise the validation of the yaml failed. Can you confirm that you have the latest ESPHome version?

maker999 commented 3 years ago

I have the version 2021.9.0 because the latest one doesnt run on windows. Is it possible to use this component with this version?

wifwucite commented 3 years ago

Yes, it should, but you have to use the previous release 0.4.0, which has the same functionality as the current one.

wifwucite commented 3 years ago

Have you tried the previous release?

maker999 commented 3 years ago

I faced other problems so I had to set everything up from beginning. now with the latest esphome(2021.10.3) it compiles ok.

wifwucite commented 3 years ago

Sounds good. :-)