platypush/plugins/zigbee/mqtt/__init__.py
def group_get(self, group: str, property: Optional[str] = None, **kwargs) -> dict:
        """
        Get one or more properties of a group. The compatible properties vary depending on the devices on the group.
        For example, a light bulb may have the "``state``" (with values ``"ON"`` and ``"OFF"``) and "``brightness``"
        properties, while an environment sensor may have the "``temperature``" and "``humidity``" properties, and so on.

        :param group: Display name of the group.
        :param property: Name of the property to retrieve (default: all available properties)
        :param kwargs: Extra arguments to be passed to :meth:`platypush.plugins.mqtt.MqttPlugin.publish``
            (default: query the default configured device).
        """
        msg = {}
        if property:
            msg = {property: ''}

        properties = self.publish(topic=self._topic(group + '/get'),
                                  reply_topic=self._topic(group),
                                  msg=msg, **self._mqtt_args(**kwargs)).output

        if property:
            assert property in properties, 'No such property: ' + property
            return {property: properties[property]}

        return properties

        Get one or more properties of a group. The compatible properties vary depending on the devices on the group.
        For example, a light bulb may have the "``state``" (with values ``"ON"`` and ``"OFF"``) and "``brightness``"
        properties, while an environment sensor may have the "``temperature``" and "``humidity``" properties, and so on.

        :param group: Display name of the group.
        :param property: Name of the property to retrieve (default: all available properties)
        :param kwargs: Extra arguments to be passed to :meth:`platypush.plugins.mqtt.MqttPlugin.publish``
            (default: query the default configured device).
        
Get one or more properties of a group. The compatible properties vary depending on the devices on the group.
Get one or more properties of a group . The compatible properties vary depending on the devices on the group .
def group_get(self, group: str, property: Optional[str] = None, **kwargs) -> dict:
        msg = {}
        if property:
            msg = {property: ''}
        properties = self.publish(topic=self._topic(group + '/get'),
                                  reply_topic=self._topic(group),
                                  msg=msg, **self._mqtt_args(**kwargs)).output
        if property:
            assert property in properties, 'No such property: ' + property
            return {property: properties[property]}
        return properties
def group_get ( self , group : str , property : Optional [ str ] = None , ** kwargs ) -> dict : msg = { } if property : msg = { property : '' } properties = self . publish ( topic = self . _topic ( group + '/get' ) , reply_topic = self . _topic ( group ) , msg = msg , ** self . _mqtt_args ( ** kwargs ) ) . output if property : assert property in properties , 'No such property: ' + property return { property : properties [ property ] } return properties
Get one or more properties of a group.
Get one or more properties of a group .
"""
        Get one or more properties of a group. The compatible properties vary depending on the devices on the group.
        For example, a light bulb may have the "``state``" (with values ``"ON"`` and ``"OFF"``) and "``brightness``"
        properties, while an environment sensor may have the "``temperature``" and "``humidity``" properties, and so on.

        :param group: Display name of the group.
        :param property: Name of the property to retrieve (default: all available properties)
        :param kwargs: Extra arguments to be passed to :meth:`platypush.plugins.mqtt.MqttPlugin.publish``
            (default: query the default configured device).
        """
self
group
str
Display name of the group.
Display name of the group .
property
Optional[str]
Name of the property to retrieve (default: all available properties)
Name of the property to retrieve ( default : all available properties )
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 ) .