Converting Radians to Degrees

I’ve not got good math skills, need help on converting data input from Mqtt (via SignalK).

Wind direction is sent as Radians but I want to work with in in cards/gauges etc as degrees.

template:
  - sensor:
      - name: "Wind Diretion"
        unit_of_measurement: "°"
        icon: "mdi:compass-rose"
        state: "{{ ( states('sensor.your_radians_sensor_here')|float(0) * 180 / pi )|round(1) }}"
1 Like