Hello,
I’m very new to the world of home assistant, be gentle
I’m trying to create a plot with data from my own temperature sensors and the publicly available bureau of meteorology.
In Developer Tools / States I can find those 4 entities:
- sensor.entrance_sensor_temperature
- sensor.living_room_sensor_temperature
- sensor.upstairs_office_temperature
- sensor.weather_temperature
They all show a sensible number under State and have the following Attributes
- unit_of_measurement: °C
- device_class: temperature
- friendly_name: <A friendly name>
The first 3 also have:
- state_class: measurement
sensor.weather_temperature is coming from my sensors.yaml, which I’ve included in my configuration.yaml via sensor: !include sensors.yaml. It looks like this:
- platform: template
sensors:
weather_temperature:
friendly_name: "Weather Temperature"
unit_of_measurement: "°C"
device_class: "temperature"
value_template: "{{ state_attr('weather.marmion', 'temperature') }}"
I have made a new view in my Dashboard of type “Panel”. It’s using card_mod and looks like this:
type: vertical-stack
cards:
- type: statistics-graph
chart_type: line
title: Day
period: 5minute
days_to_show: 1
entities:
- entity: sensor.living_room_sensor_temperature
name: Living Room
- entity: sensor.entrance_sensor_temperature
name: Entrance
- entity: sensor.upstairs_office_sensor_temperature
name: Upstairs
- entity: sensor.weather_temperature
name: Outside
stat_types:
- max
card_mod:
class: middle
- type: statistics-graph
chart_type: line
title: Week
period: hour
days_to_show: 7
entities:
- entity: sensor.living_room_sensor_temperature
name: Living Room
- entity: sensor.entrance_sensor_temperature
name: Entrance
- entity: sensor.upstairs_office_sensor_temperature
name: Upstairs
- entity: sensor.weather_temperature
name: Outside
stat_types:
- max
card_mod:
class: middle
Unfortunately, I can’t get the data from sensor.weather_temperature to show:
What am I missing?