Output Celcius from Kelvin mqtt sensor

I have a mqtt sensor reading temperature, but it is in Kelvin. How can I convert it to Celcius (-273) for the sensor?

  - platform: mqtt
    state_topic: "environment.inside.mainCabin.temperature"
    value_template: "{{ value_json.value }}"
    unit_of_measurement: "°C"
    name: "CabinTemperature" 
value_template: "{{ value_json.value | float - 273 }}"

Thank you so much!