'Turn the switch off.'

def turn_off(self, **kwargs):

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