COMMAND_CLASS_SWITCH_MULTILEVEL StopChange?

134 views
Skip to first unread message

philip...@gmail.com

unread,
Jan 27, 2016, 4:58:34 AM1/27/16
to python-openzwave-discuss
Hi all,

I am trying to use a Fibaro Roller Shutter 2 (Fgrm222).

The open/close actions are OK. But, my problem is for stopping the shutter. Indeed, I do not find the right value to stop the shutter when moving.

I saw here http://zwave.myehome.my/example/SWITCH%20MULTILEVEL/index.html that the index=3 is corresponding to the label="stopChange". So I tried to set the value corresponding to the command class SWITCH MULTILEVEL with index=3 without success.

And if I look at the log I have:
---
2016-01-27 10:21:54,701 - libopenzwave - DEBUG - addValueId : Notification : {'homeId': 23191955, 'valueId': {'index': 3, 'units': u'', 'type': 'Bool', 'nodeId': 8, 'value': True, 'commandClass': 'COMMAND_CLASS_SWITCH_MULTILEVEL', 'instance': 1, 'readOnly': False, 'homeId': 23191955, 'label': u'Ignore Start Level', 'genre': 'System', 'id': 72057594185351216L}, 'notificationType': 'ValueChanged', 'nodeId': 8}
---

where we can see that 'index':3 is corresponding to 'label': u'Ignore Start Level'.

which is normal if I look at my zwcfg_0x0161e193.xml :-(
---
    <Node id="8" name="" location="" basic="4" generic="17" specific="6" type="Motor Control Class B" listening="true" frequentListening="false" beaming="true" routing="true" max_baud_rate="40000" version="4" query_stage="Complete">
        <Manufacturer id="010f" name="FIBARO System">
            <Product type="0301" id="1001" name="FGRM222 Roller Shutter Controller 2" />
        </Manufacturer>
        <CommandClasses>
            <CommandClass id="32" name="COMMAND_CLASS_BASIC" version="1" request_flags="4" mapping="38">
                <Instance index="1" />
            </CommandClass>
            <CommandClass id="37" name="COMMAND_CLASS_SWITCH_BINARY" version="1" request_flags="4">
                <Instance index="1" />
                <Value type="bool" genre="user" instance="1" index="0" label="Switch" units="" read_only="false" write_only="false" verify_changes="false" poll_intensity="0" min="0" max="0" value="True" />
            </CommandClass>
            <CommandClass id="38" name="COMMAND_CLASS_SWITCH_MULTILEVEL" version="3">
                <Instance index="1" />
                <Value type="byte" genre="user" instance="1" index="0" label="Level" units="" read_only="false" write_only="false" verify_changes="false" poll_intensity="0" min="0" max="255" value="99" />
                <Value type="button" genre="user" instance="1" index="1" label="Open" units="" read_only="false" write_only="true" verify_changes="false" poll_intensity="0" min="0" max="0" />
                <Value type="button" genre="user" instance="1" index="2" label="Close" units="" read_only="false" write_only="true" verify_changes="false" poll_intensity="0" min="0" max="0" />
                <Value type="bool" genre="system" instance="1" index="3" label="Ignore Start Level" units="" read_only="false" write_only="false" verify_changes="false" poll_intensity="0" min="0" max="0" value="True" />
                <Value type="byte" genre="system" instance="1" index="4" label="Start Level" units="" read_only="false" write_only="false" verify_changes="false" poll_intensity="0" min="0" max="255" value="0" />
                <Value type="byte" genre="system" instance="1" index="5" label="Dimming Duration" units="" read_only="false" write_only="false" verify_changes="false" poll_intensity="0" min="0" max="255" value="255" />
                <Value type="byte" genre="user" instance="1" index="6" label="Step Size" units="" read_only="false" write_only="false" verify_changes="false" poll_intensity="0" min="0" max="255" value="0" />
                <Value type="button" genre="user" instance="1" index="7" label="Inc" units="" read_only="false" write_only="true" verify_changes="false" poll_intensity="0" min="0" max="0" />
                <Value type="button" genre="user" instance="1" index="8" label="Dec" units="" read_only="false" write_only="true" verify_changes="false" poll_intensity="0" min="0" max="0" />
            </CommandClass>
---

For information, I am only using the libopenzwave '0.3.0b8'.

Someone would have an idea how I could find the right method to stop my roller shutter?

Thanks per advance.

BR,

Philippe.


John arild Berentsen

unread,
Jul 31, 2016, 11:46:09 AM7/31/16
to python-openzwave-discuss
Did you find a solution to perform this action?

Regards John.

John arild Berentsen

unread,
Aug 11, 2016, 1:01:19 PM8/11/16
to python-openzwave-discuss
For future reference, this is what you need to use to do the StopLevelChange command:

manager = libopenzwave.PyManager()
manger.create()
manager.releaseButton(value_id)
Reply all
Reply to author
Forward
0 new messages