I’m looking to show the outdoor temperature as a helper on Home Assistant
I created a helper called outdoor temperature but I can’t work out how I pick up the temperature attribute from the hourly weather entity.
I also want this to trigger every hour to update. Can anyone help with this I’ve trawled the forum but I can’t find what I’m looking for and also not sure what I would use as an hourly trigger.
The code below was what I thought I needed to enter but yaml doesn’t like it
Thank you Andrew you’re a star for sharing all of this with me. I’m still very much a beginner am in the process of building a multisensor just waiting for parts to arrive due to christmas
Hi Mark, I´m still learning Template and Sensor coding and got this messsage while trying to past your code into my sensor.yaml which is mapped in the configuration.yaml:
While trying to check the configuration, I got this message: Invalid config for [sensor]: required key not provided @ data[‘platform’]. Got None. (See /config/configuration.yaml, line 26).
Spent already an hour trying to fix this. Any hint?
You can’t paste it in sensor.yaml because it’s a template, you need to either paste it directly in to configuration.yaml, or you need to create template.yaml and map that in configuration.yaml like you have with sensor.yaml.