Setting sensor max/min values?

I’ve got some MQTT sensors setup for grabbing energy consumption values from my smart meter setup. However when you go into an entity the entity’s history the graph range is -8000 up to +2000 when really the energy consumption is only ever from 0 to 3/4Kw. Therefore the graph is useless. Is there a way to set the max/min ranges for a sensor?