Some devices allow to directly set values to perform a specific task.
167201
def setValue(self, key, value, channel=1):
        
        if channel in self.CHANNELS:
            return self.CHANNELS[channel].setValue(key, value)

        LOG.error("HMDevice.setValue: channel not found %i!" % channel)
899466
def setbit(self, name, offset, value):
        
        value = value and 1 or 0
        return self.execute_command('SETBIT', name, offset, value)
750048
def p_task(self, p):
        ''
        p[0] = Task(p[2], p[4], lineno=p.lineno(1))
        p.set_lineno(0, p.lineno(1))
23013
def set_state(self, state, *, index=0):
        """"""
        return self.set_values({
            ATTR_DEVICE_STATE: int(state)
        }, index=index)
424006
def set(self, timestamp, status, value):
        """"""
        received_timestamp = self._manager.time()
        reading = KATCPSensorReading(received_timestamp, timestamp, status, value)
        self._reading = reading
        self.call_listeners(reading)
45885
def set_qs_value(self, qsid, val, success_cb):
        """"""
        self.loop.create_task(self.async_set_qs_value(qsid, val, success_cb))
1282391
def setbit(self, key, offset, value):
        
        if not isinstance(offset, int):
            raise TypeError("offset argument must be int")
        if offset < 0:
            raise ValueError("offset must be greater equal 0")
        if value not in (0, 1):
            raise ValueError("value argument must be either 1 or 0")
        return self.execute(b'SETBIT', key, offset, value)
168987
def set(self, values):
        
        if hasattr(self, "inputs"):
            for item in self.inputs:
                if hasattr(self, item):
                    setattr(self, item, values[item])
694927
def set(self, instance, value, **kw):
        
        return self._set(instance, value, **kw)
628449
def set_value(self, value):
        """"""
        self._value = value

        for proxy in self.get_proxies():
            proxy.handler_block(self._changed_handlers[proxy])
            proxy.set_value(self._value)
            proxy.handler_unblock(self._changed_handlers[proxy])
            pass

        self.emit('changed')
        return
936226
def set(self, type, offset, value):
        
        self._command_stack.extend(['SET', type, offset, value])
        return self
976514
def _set(self, pos):
        """"""
        assert 0 <= pos < self.len
        self._datastore.setbit(pos)
883097
def sync_set_heater_temp(self, device_id, set_temp):
        """"""
        loop = asyncio.get_event_loop()
        task = loop.create_task(self.set_heater_temp(device_id, set_temp))
        loop.run_until_complete(task)
1247998
def set_state(self, state):
        
        desired_state = {"desired_state": {"powered": state}}
        response = self.api_interface.set_device_state(self, desired_state)
        self._update_state_from_response(response)
1198180
function setEnabledFeatures(selectedFeature) {
  switch (selectedFeature) {
  case "AnalogInputFirmata":
    analogInputEnabled = true;
    break;
  case "AnalogOutputFirmata":
    analogOutputEnabled = true;
    break;
  case "DigitalInputFirmata":
    digitalInputEnabled = true;
    break;
  case "DigitalOutputFirmata":
    digitalOutputEnabled = true;
    break;
  case "ServoFirmata":
    servoEnabled = true;
    break;
  case "FirmataScheduler":
    schedulerEnabled = true;
    break;
  }
}
272479
public void setTargetedDeviceCapabilities(com.google.api.ads.admanager.axis.v201808.Technology[] targetedDeviceCapabilities) {
        this.targetedDeviceCapabilities = targetedDeviceCapabilities;
    }
684588
def device_set(self, device):
		

		if device['id'].startswith('0x'):
			self.device_id = device['id'][2:]
		elif device['id'].startswith('ios:'):
			self.device_id = device['id'].replace(':', '')
		else:
			self.device_id = device['id']