Temperature from MQTT is ignored, humidity samse sensor works?!

Hi,
I´ve an sensor over mqtt.
All data are posted over mqtt:


|13:38:58.445|SENT|fhem/Thermo_Bad/temperature|22,7|
|13:38:58.449|SENT|fhem/Thermo_Bad/humidity|54|

configuration.yaml


mqtt:
- sensor:
        - name: "Bad Temperatur"
          state_topic: "fhem/Thermo_Bad/temperature"
          suggested_display_precision: 1
          device_class: temperature
          unit_of_measurement: "°C"
          unique_id: thermo_bad_grad
          
        - name: "Bad Luftfeuchte"
          state_topic: "fhem/Thermo_Bad/humidity"
          device_class: humidity
          unit_of_measurement: "%"
          unique_id: thermo_bad_feuchte

But only humidity is written to HomeAssistant?!
I look on MQTT-Server, temperature data was sent, but HomeAssistant ignores it?!

Greets

Byte

HA only recognizes “.” as the decimal point.

Try adding:

value_template: "{{ value | replace(',','.') }}"

If there is a space it needs to remove that too.