APDS9960 has invalid id!

I’m now facing this issue with some sensors I bought. Seems that it’s common fix to patch it in the source code, but where can I find this .cpp file on home assistant with esphome integration?

I’ve run find and grep on all .h and .cpp files in my home assistant, I can’t even find anything with the string APDS in it… or A8 or AB

Hi,
I updated 0xAB to 0xA8 in the folder
/config/esphome/.esphome/build/[project directory] /src/esphome/components/apds9960/apds9960.cpp
but config is overwritten every time I install the file to ESP32.

How do you managed it?

2 Likes

Quite simply someone needs to post a PR to esphome.

Hi,
I updated 0xAB to 0xA8 in the folder
/config/esphome/.esphome/build/[project directory] /src/esphome/components/apds9960/apds9960.cpp
but config is overwritten every time I install the file to ESP32.

How do you managed it?

No I think you have to do it in the esphome source code, not in the generated source code. Otherwise it’ll just be generated again with the wrong value.

If you are running the addon, enter the docker container and edit it there.