Unable to convert value from MQTT light mired to kelvin

I’ll look into that. Thanks…for now i found this which seems that it was never solved… with the template i posted aove the slider moves when i change kelvin in smartthings app, but it doesn’t work in reverse, still get mired values being sent out.