'Turn the switch on.'

def turn_on(self, **kwargs):

    self.gateway.set_child_value(self.node_id, self.child_id, self.value_type, 1)
    if self.gateway.optimistic:
        self._values[self.value_type] = STATE_ON
        self.schedule_update_ha_state()
