Although the local weather is being acquired and displayed by the Weather Forecast Card, the only variable that seems to be historized is the weather - no temperature, rainfall, etc.
I’ve looked for a how-to to add current outside temperature to the list of entities but came up dry. Does this how-to exist, or if not, how can this be done?
Ok, that fixes the ID problem - another step closer!
Now this entity appears on the list like the others, but when selected from the historian pick list of variables, there’s no data on the trend … any ideas?
If you may recall, I mentioned this before: Check the spelling of the Temperature attribute. It’s probably temperature (all lower-case) not Temperature.
Yes, thank you both! Taras, yes, you mentioned it yesterday - and I glazed right over it. Doh!
It’s been too long since I coded in a case sensitive environment.
Looking good now - and lessons learned!!!
Also appreciate learning that the variable names listed in the Attributes column of the Developer Tools / States page are not just loose references but the literal / actual variables / tags used by the system!
Composing a template via the UI is an entirely different subject (and unrelated to this over one year-old discussion).
The Automation Editor in visual mode has supported the entry of a template via the UI (sans quotes) long before it became possible to configure a Template Sensor via the UI.
Is this process still relevant? I’ve been trying to replicate it, putting the code into the config file but I have no idea how the entity/state would be named. Does it take the name value and turn it into something like “sensor.outside_temperature”? Also the configuration.yaml file is quite empty, see the code, that is basically the whole file right now.
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
template:
- sensor:
- name: "Outside temperature"
unit_of_measurement: "°C"
device_class: temperature
state: "{{ state_attr('weather.forecast_domov', 'temperature') }}"