MCPcopy
hub / github.com/rytilahti/python-miio / send

Method send

miio/gateway/devices/subdevice.py:148–156  ·  view source on GitHub ↗

Send a command/query to the subdevice.

(self, command)

Source from the content-addressed store, hash-verified

146
147 @command()
148 def send(self, command):
149 """Send a command/query to the subdevice."""
150 try:
151 return self._gw.send(command, [self.sid])
152 except Exception as ex:
153 raise GatewayException(
154 "Got an exception while sending command %s on model %s"
155 % (command, self.model)
156 ) from ex
157
158 @command()
159 def send_arg(self, command, arguments):

Callers 15

unpairMethod · 0.95
get_batteryMethod · 0.95
get_zigbee_versionMethod · 0.45
get_zigbee_channelMethod · 0.45
set_zigbee_channelMethod · 0.45
zigbee_pairMethod · 0.45
send_to_zigbeeMethod · 0.45
read_zigbee_eepMethod · 0.45
read_zigbee_attributeMethod · 0.45
zigbee_unpair_allMethod · 0.45
rgb_statusMethod · 0.45

Calls 1

GatewayExceptionClass · 0.85

Tested by

no test coverage detected