Assuming your entities have the correct device_classes this can already be accomplished from the front end.
See these instructions but change the unit above the display precision instead: Change number format of sensor - #2 by tom_l
Assuming your entities have the correct device_classes this can already be accomplished from the front end.
See these instructions but change the unit above the display precision instead: Change number format of sensor - #2 by tom_l