How to trim : ( colon ) from mqtt response

Hi all i have HA with MQTT brocker and some devices connected to the brocker.

The some of the devices are shelly 1 with addon on which one are attached 2 termo probes.

I add this code to my HA configuration file

    - unique_id: a1953a70-f95a-4b27-ac61-9c2fda9d34fa
      name: "shelly1 Temperature probe 0"
      state_topic: "shellies/shelly1-hwid/ext_temperature/0"
      unit_of_measurement: "°C"
    - unique_id: aeb16b5f-cf45-45dc-b1be-c114365aeb1f
      name: "shelly1 Temperature probe 1"
      state_topic: "shellies/shelly1-hwid/ext_temperature/1"
      unit_of_measurement: "°C"

Than i make a graph card but no information was shown.

I started Listen to the topic of the probe and i notice that it returns :12.6 ( for example)

So my question is how can i trim this : ( colon ), from the respons and get only the numbers so i can make a graphs and stuff?
What do i need to change in my HA configuration ?

Add this:

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

Thank you!
What is this type of language in this value_template: variable ?
Where i can read more about how to do stuff like this ?

It’s jinja.

1 Like