'Set a percentage in knx for a given attribute.
DPT_Scaling / DPT 5.001 is a single byte scaled percentage'

def set_percentage(self, name, percentage):

    percentage = abs(percentage)
    scaled_value = ((percentage * 255) / 100)
    value = min(255, scaled_value)
    return self.set_int_value(name, value)
