https://esphome.io/cookbook/index.html
To support TSL2591 run (inside container):
platformio lib --global install "Adafruit TSL2591 Library" && platformio lib --global install "Adafruit Unified Sensor"
esphome example.yaml run
https://esphome.io/components/sensor/custom.html