Skip to content

How to read/write configuration on a Z-Wave device? #121

@nowox

Description

@nowox

I would like to read/write configuration parameters for this device:

http://nodon.fr/support/NodOn_OctanRemote_ZWave_UserGuide_EN.pdf

The help for get_config says Set config to value.

In [28]: rocker.get_config?
Signature: rocker.get_config(value_id=None)
Docstring:
The command 0x70 (COMMAND_CLASS_CONFIGURATION) of this node.
Set config to value (using value value_id)

:param value_id: The value to retrieve value. If None, retrieve the first value
:type value_id: int
:return: The level of this battery
:rtype: int
File:      /usr/local/lib/python3.5/dist-packages/openzwave/command.py
Type:      method

Unfortunately it seems the command class COMMAND_CLASS_CONFIGURATION is empty:

In [34]: rocker.get_values_for_command_class(112)
Out[34]: {}

In [35]: rocker.get_command_class_as_string(112)
Out[35]: 'COMMAND_CLASS_CONFIGURATION'

How can I get/read a configuration parameter on a Z-Wave device? I am looking for documentation

It seems the configuration file is not linked to my device:
https://github.com/OpenZWave/open-zwave/blob/master/config/nodon/crc360xSofremote.xml

In [39]: rocker.manufacturer_id
Out[39]: '0x0165'

In [40]: rocker.product_type
Out[40]: '0x0002'

In [41]: rocker.product_id
Out[41]: '0x0002'

I have tried this:

In [47]: network.manager.setConfigParam(network.home_id, rocker.node_id, 8, 1, 1)
Out[47]: True

In [48]: network.manager.requestConfigParam(network.home_id, rocker.node_id, 8)

In [49]:

But it does not change the behavior of my soft remote.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions