platypush/plugins/zigbee/mqtt/__init__.py
def device_set_option(self, device: str, option: str, value: Any, **kwargs):
        """
        Change the options of a device. Options can only be changed, not added or deleted.

        :param device: Display name of the device.
        :param option: Option name.
        :param value: New value.
        :param kwargs: Extra arguments to be passed to :meth:`platypush.plugins.mqtt.MqttPlugin.publish``
            (default: query the default configured device).
        """
        return self._parse_response(
            self.publish(topic=self._topic('bridge/request/device/options'),
                         reply_topic=self._topic('bridge/response/device/options'),
                         msg={
                             'id': device,
                             'options': {
                                 option: value,
                             }
                         }, **self._mqtt_args(**kwargs)))

        Change the options of a device. Options can only be changed, not added or deleted.

        :param device: Display name of the device.
        :param option: Option name.
        :param value: New value.
        :param kwargs: Extra arguments to be passed to :meth:`platypush.plugins.mqtt.MqttPlugin.publish``
            (default: query the default configured device).
        
Change the options of a device. Options can only be changed, not added or deleted.
Change the options of a device . Options can only be changed not added or deleted .
def device_set_option(self, device: str, option: str, value: Any, **kwargs):
        return self._parse_response(
            self.publish(topic=self._topic('bridge/request/device/options'),
                         reply_topic=self._topic('bridge/response/device/options'),
                         msg={
                             'id': device,
                             'options': {
                                 option: value,
                             }
                         }, **self._mqtt_args(**kwargs)))
def device_set_option ( self , device : str , option : str , value : Any , ** kwargs ) : return self . _parse_response ( self . publish ( topic = self . _topic ( 'bridge/request/device/options' ) , reply_topic = self . _topic ( 'bridge/response/device/options' ) , msg = { 'id' : device , 'options' : { option : value , } } , ** self . _mqtt_args ( ** kwargs ) ) )
Change the options of a device.
Change the options of a device .
"""
        Change the options of a device. Options can only be changed, not added or deleted.

        :param device: Display name of the device.
        :param option: Option name.
        :param value: New value.
        :param kwargs: Extra arguments to be passed to :meth:`platypush.plugins.mqtt.MqttPlugin.publish``
            (default: query the default configured device).
        """
self
device
str
Display name of the device.
Display name of the device .
option
str
None
value
Any
None
kwargs
Extra arguments to be passed to :meth:`platypush.plugins.mqtt.MqttPlugin.publish``
(default: query the default configured device).
Extra arguments to be passed to : meth : ` platypush . plugins . mqtt . MqttPlugin . publish ` ` ( default : query the default configured device ) .