platypush/plugins/zigbee/mqtt/__init__.py
def bind_devices(self, source: str, target: str, **kwargs):
        """
        Bind two devices. Binding makes it possible that devices can directly control each other without the
        intervention of zigbee2mqtt or any home automation software. You may want to use this feature to bind
        for example an IKEA/Philips Hue dimmer switch to a light bulb, or a Zigbee remote to a thermostat.
        Read more on the `zigbee2mqtt binding page <https://www.zigbee2mqtt.io/information/binding.html>`_.

        :param source: Name of the source device. It can also be a group name, although the support is
            `still experimental <https://www.zigbee2mqtt.io/information/binding.html#binding-a-group>`_.
            You can also bind a specific device endpoint - for example ``MySensor/temperature``.
        :param target: Name of the target device.
            You can also bind a specific device endpoint - for example ``MyLight/state``.
        :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/bind'),
                         reply_topic=self._topic('bridge/response/device/bind'),
                         msg={'from': source, 'to': target}, **self._mqtt_args(**kwargs)))

        Bind two devices. Binding makes it possible that devices can directly control each other without the
        intervention of zigbee2mqtt or any home automation software. You may want to use this feature to bind
        for example an IKEA/Philips Hue dimmer switch to a light bulb, or a Zigbee remote to a thermostat.
        Read more on the `zigbee2mqtt binding page <https://www.zigbee2mqtt.io/information/binding.html>`_.

        :param source: Name of the source device. It can also be a group name, although the support is
            `still experimental <https://www.zigbee2mqtt.io/information/binding.html#binding-a-group>`_.
            You can also bind a specific device endpoint - for example ``MySensor/temperature``.
        :param target: Name of the target device.
            You can also bind a specific device endpoint - for example ``MyLight/state``.
        :param kwargs: Extra arguments to be passed to :meth:`platypush.plugins.mqtt.MqttPlugin.publish``
            (default: query the default configured device).
        
Bind two devices. Binding makes it possible that devices can directly control each other without the
intervention of zigbee2mqtt or any home automation software. You may want to use this feature to bind
for example an IKEA/Philips Hue dimmer switch to a light bulb, or a Zigbee remote to a thermostat.
Read more on the `zigbee2mqtt binding page `_.
Bind two devices . Binding makes it possible that devices can directly control each other without the intervention of zigbee2mqtt or any home automation software . You may want to use this feature to bind for example an IKEA / Philips Hue dimmer switch to a light bulb or a Zigbee remote to a thermostat . Read more on the ` zigbee2mqtt binding page ` _ .
def bind_devices(self, source: str, target: str, **kwargs):
        return self._parse_response(
            self.publish(topic=self._topic('bridge/request/device/bind'),
                         reply_topic=self._topic('bridge/response/device/bind'),
                         msg={'from': source, 'to': target}, **self._mqtt_args(**kwargs)))
def bind_devices ( self , source : str , target : str , ** kwargs ) : return self . _parse_response ( self . publish ( topic = self . _topic ( 'bridge/request/device/bind' ) , reply_topic = self . _topic ( 'bridge/response/device/bind' ) , msg = { 'from' : source , 'to' : target } , ** self . _mqtt_args ( ** kwargs ) ) )
Bind two devices.
Bind two devices .
"""
        Bind two devices. Binding makes it possible that devices can directly control each other without the
        intervention of zigbee2mqtt or any home automation software. You may want to use this feature to bind
        for example an IKEA/Philips Hue dimmer switch to a light bulb, or a Zigbee remote to a thermostat.
        Read more on the `zigbee2mqtt binding page <https://www.zigbee2mqtt.io/information/binding.html>`_.

        :param source: Name of the source device. It can also be a group name, although the support is
            `still experimental <https://www.zigbee2mqtt.io/information/binding.html#binding-a-group>`_.
            You can also bind a specific device endpoint - for example ``MySensor/temperature``.
        :param target: Name of the target device.
            You can also bind a specific device endpoint - for example ``MyLight/state``.
        :param kwargs: Extra arguments to be passed to :meth:`platypush.plugins.mqtt.MqttPlugin.publish``
            (default: query the default configured device).
        """
self
source
str
Name of the source device. It can also be a group name, although the support is
`still experimental `_.
You can also bind a specific device endpoint - for example ``MySensor/temperature``.
Name of the source device . It can also be a group name although the support is ` still experimental ` _ . You can also bind a specific device endpoint - for example ` ` MySensor / temperature ` ` .
target
str
Name of the target device.
You can also bind a specific device endpoint - for example ``MyLight/state``.
Name of the target device . You can also bind a specific device endpoint - for example ` ` MyLight / state ` ` .
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 ) .