I have sensor values like
sensor.sensor_*_bme680_gas
and sensor.sensor_*_bme680_humidity
for 15 sensors called sensor_01 … sensor_15.
From BME680 gas resistance values - #13 by HFsi, I took the formula
log(id(g_res).state) + 0.04 * id(hum).state
.
I would like to have 15 new “virtual sensors” called sensor.sensor_*_bme680_IAQ
with
name: "BME680 IAQ"
value: log(sensor.sensor_*_bme680_gas) + 0.04 * sensor.sensor_*_bme680_humidity
unit_of_measurement: IAQ
Is that possible using glob, or do I need new entries for every single sensors?