When setting minval and maxval on a threshold (Duration for example), if the value is set to 0 in the yaml the method getMinval and getMaxval will return None. If 0 is set to both min and max, you will get an event "threshold error: no minimum or maximum defined".
To work around this, you need to set the value to '0' in the yaml, so that the property is a string instead of int.
When setting minval and maxval on a threshold (Duration for example), if the value is set to 0 in the yaml the method getMinval and getMaxval will return None. If 0 is set to both min and max, you will get an event "threshold error: no minimum or maximum defined".
To work around this, you need to set the value to '0' in the yaml, so that the property is a string instead of int.