How to allow percentage > 100?


I am using openDTU, which uses HA auto discovery for percentage values with this code on OpenDTU Github repo

 publishInverterNumber(inv, "Limit Persistent Relative", "mdi:speedometer", "config", "cmd/limit_persistent_relative", "status/limit_relative", "%");

Problem is, inverters can sometimes produce more than 100% and that leads to tons of errors in the logs:

2023-12-12 18:44:43.481 ERROR (MainThread) [homeassistant.components.mqtt.number] Invalid value for number.balkon_limit_nonpersistent_relative: 133.3 (range 1.0 - 100.0)

Can it be configured somehow to allow more than 100%?


for now I’m fine - but the fix is as hackish as it can get… :smiley:
Would be glad to hear a proper way to address this!