Hi,
I created a temperature sensor, measuring water supply and return temperature. I calculate the delta temprature using a lambda function.I see both supply and return temperature appear in HA and also the delta T (as sensor data). Strange thing now is that the HA recorder does log the supply and return temperature meaning I can see historical data. Delta T however is NOT logged by the HA recorder, meaning I can not see historical data.
Does anyone have a clue how I can make the delta T sensor to appear in HA recorder?
part of the ESPHOME code
sensor:
- platform: dallas
address: 0x****
name: “Supply Temperature - Ta”
id: Ta
accuracy_decimals: 1 - platform: dallas
address: 0xf83c01f095c53a28
name: “Return Temperature - Tr”
id: Tr
accuracy_decimals: 1 - platform: template
name: “Delta T”
id: Td
unit_of_measurement: °C
update_interval: 60s
lambda: |-
return (id(Ta).state - (id(Tr).state - 0.25000));