VL6180X/VL6180 Time of Flight distance/ALS Lux Sensor Component for ESPHome

If anyone is interested, I’ve created a custom ESPHome component for the VL6180X and VL6180 ToF sensors. It’s available at GitHub - thedayowl/esphome-vl6180x: An ESPHome external component for the ST Microelectronics VL6180X (range + ambient light) and VL6180 (range only) time-of-flight sensors. · GitHub

Multiple sensors can be used simultaneously on the same I2C bus when using GPIO pins to control XSHUT on each sensor during initialization.

Documentation on how to use it is in the readme and example yaml in the github repository.

Thank you so much, it worked without problem in ESP32-C3 and in ESP8266!

This worked for me but the LUX doesn't seem to work, not sure if it is my sensor or a configuration issue?

Thank you!