Hello All,
I hava four humidity sensors and want to create an additional one with the mean of all four. For this, I have created a template. I properly get the value, but cannot get the history. I have searched but cannot get a precise answer. What am I missing ?
- platform: template
name: "TCm Humidity"
lambda: 'return ((id(B0H).state+id(B1H).state+id(B2H).state+id(B3H).state)/4.0);'
update_interval: 5s
id: BHm
All four Humidity sensors are created with the following code ( for sensor 0)
sensor:
- platform: bme280
i2c_id: multiplex0channel0
address: 0x76
humidity:
name: "TC0 Humidity"
accuracy_decimals: 2
id: B0H
update_interval: 5s
ESPHome 2023.12.5