I have two templates to get outside temperature & humidity, like this:
My goal is to display both temperature and humidity of all my sensors as well as the from the weather platform (converted using template), on the same graph.
Then my configuration card:
type: history-graph
entities:
- entity: sensor.temperature_158d0001b91088
- entity: sensor.template_temperature_exterior
- entity: sensor.humidity_158d0001b91088
- entity: sensor.humidity_158d0001e4c4f5
- entity: sensor.template_humidade_exterior
- entity: sensor.temperature_158d0001b91088
hours_to_show: 18
refresh_interval: 0
title: Clima em casa a 18 horas
And the fantastic result:
As you can see I have two different issues:
The obvious, why is it splitting in three different graphs? Can I avoid that?
For some reason unlike the template for the outside temperature, I have the sensor.template_humidade_exterior on the same graph as the internal humidity sensors. However, is not shown, despite the fact (as you can see in the screenshot of the developer tools), that it has a current value.
Using the core history graph you can only graph one unit of measurement per graph ( %, °C, and C in your case). So all % sensors on one graph, all C sensors on another.
You need to change the unit of your external temperature sensor to °C if you want it on the same graph as the other temperature sensors.
Yep, thatâs it. But Iâm struggling with dealing with the temperature, because I get a graph with âCâ and another one as â°Câ if I use âdegreesâ as unit of measurement.
So in short,
unit_of_measurement: â°Câ - error below
unit_of_measurement: âÂșCâ - error below
unit_of_measurement: â°degreesâ -> appears graph with âCâ (which is a problem because the one from the sensors come with ÂșC
Error loading /config/configuration.yaml: âutf-8â codec canât decode byte 0xb0 in position 1119: invalid start byte