I’ve successfully defined 2 sensors and got a graph with these 2 temp sensors on it but what I really want is to graph only the absolute value of the difference between the sensors ie sensor1-sensor2 over a week.
- platform: template
sensors:
temperature_loc1:
friendly_name: "Temp1"
unit_of_measurement: 'degrees'
value_template: "{{ state_attr('weather.loc1', 'temperature') }}"
What’s the best way to do that? I’d also like to create a history graph of the same thing, over a month.
Would this be another sensor template? I tried this with no luck…
- platform: template
sensors:
temperature_diff:
friendly_name: "Temperature difference"
unit_of_measurement: 'degrees'
value_template: "{{ state_attr('weather.loc1', 'temperature')
- state_attr('weather.loc2', 'temperature') }}"
Thanks for any advice!
Jeff