'Turn the device on.'

def turn_on(self, **kwargs):

    self._set_duration(**kwargs)
    if (ATTR_BRIGHTNESS in kwargs):
        self._brightness = kwargs[ATTR_BRIGHTNESS]
        brightness = int(((self._brightness / 255) * 99))
    else:
        brightness = 255
    if self.node.set_dimmer(self.values.primary.value_id, brightness):
        self._state = STATE_ON
