'Turn the IR switch off.'

def turn_off(self, **kwargs):

    set_req = self.gateway.const.SetReq
    if (set_req.V_LIGHT not in self._values):
        _LOGGER.error('missing    value_type:    %s    at    node:    %s,    child:    %s', set_req.V_LIGHT.name, self.node_id, self.child_id)
        return
    self.gateway.set_child_value(self.node_id, self.child_id, set_req.V_LIGHT, 0)
    if self.gateway.optimistic:
        self._values[set_req.V_LIGHT] = STATE_OFF
        self.schedule_update_ha_state()
