Hi there.
Fairy new to HA and Yaml files.
I just added an SGP41 VOX/NOx sensor to an existing ESP32-C3 temp/hum setup. The htu21d works fine and so does the SGP41. No problem so far,
My problem is adding the optional temp/hum compensation.
sensor:
I would like to use the htu21d temp/hum data to compensate, but I can’t get the yaml validated. Tried every trick I know. Added id’s to the temp/hum sensor and used them. Used the name as id. Don’t know how to proceed.
I think I put the two id entries in the wrong place,
before temperature and humidity instead of after “name”, which didn’t validate.
This yaml validates and the sensor works.