In developer tools/template it works:
but in sensors.yaml I get this error message:
then I have tried this in configuration.yaml instead of sensors.yaml:
In developer tools/template it works:
but in sensors.yaml I get this error message:
then I have tried this in configuration.yaml instead of sensors.yaml:
You need to insert additional intend:
template:
- sensor:
- name: "Beaufort"
friendly_name: Wind Force
icon: "mdi:weather-windy"
state: >
{% set wind = bla-bla-bla %}
...
Thanks. Done.
Just had to delete additionally the âfriendly nameâ and âiconâ.
Now it works.
Another new issue is:
âno unique idâ
Dont know hiw to repair this
Use âiconâ, not âicon_templateâ and write âunique_idâ
icon: "mdi:weather-windy"
unique_id: wind_force (or something else).
Hi all,
I am battling to make this template work.
My wind value is not in m/s but km/h
I am trying to first convert the km/h to m/s and then apply the template but i am getting silly results.
Is there a way for this template to work straight using km/h ?
Thank you all in advance
I copied mine from another source and I now realize that this is already (!) in km/h ⌠the m/s units added at the end are plainly wrong