Hi guys, maybe I am having some problems in my config.
In config.yaml I have template: !include template.yaml
This is my template.yaml I have not errors during the system check but windspeed 12h sensor doesn’t show up.
What am I doing wrong?
Thank you
- sensor:
shelly_em_corrente_ch1:
friendly_name: "Corrente casa"
value_template: '{{ (states("sensor.Assorbimento_casa")|float / states("sensor.tensione_condominio")|float)|float|round(1) }}'
unit_of_measurement: "Ampere"
icon_template: mdi:current-ac
- sensor:
shelly_em_corrente_ch2:
friendly_name: "Corrente condominio"
value_template: '{{ (states("sensor.Assorbimento_condominio")|float / states("sensor.tensione_condominio")|float)|float|round(1) }}'
unit_of_measurement: "Ampere"
icon_template: mdi:current-ac
- sensor:
night_or_day:
friendly_name: 'Night or Day'
icon_template: mdi:power-sleep
value_template: >
{% if is_state('sun.sun', 'above_horizon') %}
0
{% else %}
1
{% endif %}
- trigger:
- platform: time_pattern
hours: /1
- platform: homeassistant
event: start
action:
- service: weather.get_forecasts
data:
type: hourly
target:
entity_id: weather.forecast_home
response_variable: hourly
sensor:
- name: "Windspeed 12h"
unit_of_measurement: "m/s"
state: "{{ hourly['weather.forecast_casa'].forecast[11].wind_speed|float(default=0) }}"