platypush/plugins/zwave/mqtt/__init__.py
def scene_add_value(self, data: Optional[Any] = None, value_id: Optional[int] = None,
                        id_on_network: Optional[str] = None, value_label: Optional[str] = None,
                        scene_id: Optional[int] = None, scene_label: Optional[str] = None,
                        node_id: Optional[int] = None, node_name: Optional[str] = None, **kwargs):
        """
        Add a value to a scene.

        :param data: Data to set for the value (default: current value data).
        :param value_id: Select value by value_id.
        :param id_on_network: Select value by id_on_network.
        :param value_label: Select value by [node_id/node_name, value_label]
        :param node_id: Select value by [node_id/node_name, value_label]
        :param node_name: Select value by [node_id/node_name, value_label]
        :param scene_id: Select scene by scene_id.
        :param scene_label: Select scene by scene label.
        :param kwargs: Extra arguments to be passed to :meth:`platypush.plugins.mqtt.MqttPlugin.publish``
            (default: query the default configured device).
        """
        value = self._get_value(value_id=value_id, value_label=value_label, id_on_network=id_on_network,
                                node_id=node_id, node_name=node_name, **kwargs)
        scene = self._get_scene(scene_id=scene_id, scene_label=scene_label, **kwargs)

        self._api_request('_addSceneValue', scene['scene_id'], {
            'nodeId': value['node_id'],
            'commandClass': value['command_class'],
            'property': value['property_id'],
            'endpoint': value['endpoint'],
        }, data, kwargs.get('timeout', self.timeout))

        Add a value to a scene.

        :param data: Data to set for the value (default: current value data).
        :param value_id: Select value by value_id.
        :param id_on_network: Select value by id_on_network.
        :param value_label: Select value by [node_id/node_name, value_label]
        :param node_id: Select value by [node_id/node_name, value_label]
        :param node_name: Select value by [node_id/node_name, value_label]
        :param scene_id: Select scene by scene_id.
        :param scene_label: Select scene by scene label.
        :param kwargs: Extra arguments to be passed to :meth:`platypush.plugins.mqtt.MqttPlugin.publish``
            (default: query the default configured device).
        
Add a value to a scene.
Add a value to a scene .
def scene_add_value(self, data: Optional[Any] = None, value_id: Optional[int] = None,
                        id_on_network: Optional[str] = None, value_label: Optional[str] = None,
                        scene_id: Optional[int] = None, scene_label: Optional[str] = None,
                        node_id: Optional[int] = None, node_name: Optional[str] = None, **kwargs):
        value = self._get_value(value_id=value_id, value_label=value_label, id_on_network=id_on_network,
                                node_id=node_id, node_name=node_name, **kwargs)
        scene = self._get_scene(scene_id=scene_id, scene_label=scene_label, **kwargs)
        self._api_request('_addSceneValue', scene['scene_id'], {
            'nodeId': value['node_id'],
            'commandClass': value['command_class'],
            'property': value['property_id'],
            'endpoint': value['endpoint'],
        }, data, kwargs.get('timeout', self.timeout))
def scene_add_value ( self , data : Optional [ Any ] = None , value_id : Optional [ int ] = None , id_on_network : Optional [ str ] = None , value_label : Optional [ str ] = None , scene_id : Optional [ int ] = None , scene_label : Optional [ str ] = None , node_id : Optional [ int ] = None , node_name : Optional [ str ] = None , ** kwargs ) : value = self . _get_value ( value_id = value_id , value_label = value_label , id_on_network = id_on_network , node_id = node_id , node_name = node_name , ** kwargs ) scene = self . _get_scene ( scene_id = scene_id , scene_label = scene_label , ** kwargs ) self . _api_request ( '_addSceneValue' , scene [ 'scene_id' ] , { 'nodeId' : value [ 'node_id' ] , 'commandClass' : value [ 'command_class' ] , 'property' : value [ 'property_id' ] , 'endpoint' : value [ 'endpoint' ] , } , data , kwargs . get ( 'timeout' , self . timeout ) )
Add a value to a scene.
Add a value to a scene .
"""
        Add a value to a scene.

        :param data: Data to set for the value (default: current value data).
        :param value_id: Select value by value_id.
        :param id_on_network: Select value by id_on_network.
        :param value_label: Select value by [node_id/node_name, value_label]
        :param node_id: Select value by [node_id/node_name, value_label]
        :param node_name: Select value by [node_id/node_name, value_label]
        :param scene_id: Select scene by scene_id.
        :param scene_label: Select scene by scene label.
        :param kwargs: Extra arguments to be passed to :meth:`platypush.plugins.mqtt.MqttPlugin.publish``
            (default: query the default configured device).
        """
self
data
Optional[Any]
Data to set for the value (default: current value data).
Data to set for the value ( default : current value data ) .
value_id
Optional[int]
Select value by value_id.
Select value by value_id .
id_on_network
Optional[str]
Select value by id_on_network.
Select value by id_on_network .
value_label
Optional[str]
Select value by [node_id/node_name, value_label]
Select value by [ node_id / node_name value_label ]
scene_id
Optional[int]
Select scene by scene_id.
Select scene by scene_id .
scene_label
Optional[str]
Select scene by scene label.
Select scene by scene label .
node_id
Optional[int]
Select value by [node_id/node_name, value_label]
Select value by [ node_id / node_name value_label ]
node_name
Optional[str]
Select value by [node_id/node_name, value_label]
Select value by [ node_id / node_name value_label ]
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 ) .