Beaufort Wind Scale

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:

image

You need to insert additional intend:

template:
  - sensor:
      - name: "Beaufort"
        friendly_name: Wind Force
        icon: "mdi:weather-windy"
        state: >
          {% set wind = bla-bla-bla %}
          ...
1 Like

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).
1 Like

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