Hi,
does anyone know what’s wrong here?
sensor:
- platform: template
sensors:
haWeatherTemp:
friendly_name: "Temperatur von HomeAssistant"
entity_id: weather.myzone
value_template: "{{states.weather.myzone.attributes.temperature}}"
All examples I’ve found look similar.
But I get the following error:
sensor.template: [source /config/esphome/nodemcu1.yaml:55]
platform: template
[sensors] is an invalid option for [sensor.template]. Please check the indentation.
sensors: [source /config/esphome/nodemcu1.yaml:57]
haWeatherTemp:
friendly_name: Temperatur von HomeAssistant
entity_id: weather.kelpi_haus
value_template: {{states.weather.kelpi_haus.attributes.temperature}}
Thanks for your answers,
Tom