def turn_on_with_brightness(self, device_id, name, brightness):
brightness_value = round((brightness * <NUM_LIT>) / <NUM_LIT:255>) + <NUM_LIT:1><EOL>msg = '<STR_LIT>' % (<EOL>device_id, brightness_value, brightness_value, name)<EOL>"""<STR_LIT>"""<EOL>LWLink.registration_message_sent = False<EOL>self._send_message(msg)<EOL>
Scale brightness from 0..255 to 1..32.