jakadia / esphome_vl6180x

Adafruit VL6180X TOF/Lux sensor intergraded in to Home Assistant using ESPHome
2 stars 0 forks source link

can not make it works #1

Open wazoo666 opened 2 years ago

wazoo666 commented 2 years ago

Hi I am no t a expert in coding, but I tried to configure a VL6180x module on HomeAssistant using ESPhome addon, but can not make it work. Could you help me ?

I have installed other I2C devices on same bus, and they works fine, but when tried to add vl6180x sentences as your yaml code, esphome compiler crash, it ask for "wire.h" "....... Looking for Wire.h dependency....."

why it is asking for wire.h library? because it is used for other I2C devices I have defined on my code, like BMP180 module on same SDA/SCL pin. If I remove vl6180x declarations and complile code, once uploaded and looking for logger file, I can see both BMP180 address and VL6180x address, so ToF device is detected.

thankU

jakadia commented 2 years ago

Does the location of the “vl6180x.h” file match the location you have specified under “include:” portion of the .yaml file?

wazoo666 commented 2 years ago

thankU @jakardia for your fast response.

I think yes. "vl6180x.h" file is on same folder than esphome project /config/esphome/test-sonoff.yaml...

this are my initial lines ........................ esphome: name: test-sonoff platform: ESP8266 board: esp01_1m

includes:

that is starting response from compiler....

INFO Reading configuration /config/esphome/test-sonoff.yaml... INFO Generating C++ source... INFO Compiling app... Processing test-sonoff (board: esp01_1m; framework: arduino; platform: platformio/espressif8266 @ 3.2.0)

HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf Library Manager: Installing pololu/VL6180X @ 1.3.1

Unpacking [------------------------------------] 0% Unpacking [##----------------------------------] 7% Unpacking [#####-------------------------------] 14% Unpacking [#######-----------------------------] 21% Unpacking [##########--------------------------] 28% Unpacking [############------------------------] 35% Unpacking [###############---------------------] 42% Unpacking [##################------------------] 50% Unpacking [####################----------------] 57% Unpacking [#######################-------------] 64% Unpacking [#########################-----------] 71% Unpacking [############################--------] 78% Unpacking [##############################------] 85% Unpacking [#################################---] 92% Unpacking [####################################] 100% Library Manager: VL6180X @ 1.3.1 has been installed! Dependency Graph |-- 1.3.1 |-- 1.0 |-- 1.2 |-- 1.0 Compiling /data/test-sonoff/.pioenvs/test-sonoff/src/esphome/components/api/api_connection.cpp.o Compiling /data/test-sonoff/.pioenvs/test-sonoff/src/esphome/components/api/api_frame_helper.cpp.o . . . but at the end of compiling, it shows like this.... . . . . Compiling /data/test-sonoff/.pioenvs/test-sonoff/src/esphome/core/util.cpp.o Compiling /data/test-sonoff/.pioenvs/test-sonoff/src/main.cpp.o Generating LD script /data/test-sonoff/.pioenvs/test-sonoff/ld/local.eagle.app.v6.common.ld Compiling /data/test-sonoff/.pioenvs/test-sonoff/libb32/VL6180X/VL6180X.cpp.o In file included from /data/test-sonoff/.piolibdeps/test-sonoff/VL6180X/VL6180X.cpp:1: /data/test-sonoff/.piolibdeps/test-sonoff/VL6180X/VL6180X.h:5:10: fatal error: Wire.h: No such file or directory