TSL2591 integration

I wish to use a TSL2591 to measure light levels. I’ve found very useful information at https://github.com/esphome/feature-requests/issues/267 but can’t figure out where to run the pio lib install "Adafruit TSL2591 Library" instruction.

I am running HASS.IO on Ubuntu 18.04.1 LTS and have tried running it on the Ubuntu host after installing python. This gave an error message Error: The /home/rich is not a PlatformIO project.

Please can anyone point me in the correct direction - where should this command be run?



I think you need to change directory to the dir where your project resides. By default the project created by mytest.yaml is in the directory mytest/

Thanks @nickrout - is that on the Ubuntu host console or somewhere else? Apologies if this is a silly question but I’m way out of my depth with linux!

My installation follows this very helpful guide Simple install command for installing Hass.io on a Generic Ubuntu/Debian machine · GitHub