OpenZWave / open-zwave

a C++ library to control Z-Wave Networks via a USB Z-Wave Controller.
http://www.openzwave.net/
GNU Lesser General Public License v3.0
1.05k stars 911 forks source link

Send "STOP" command via Somfy ZRTSI - Z-Wave to RTS Interface #851

Closed raypp2 closed 8 years ago

raypp2 commented 8 years ago

I'm looking for a command that could trigger the STOP signal in Somfy window shade motors. It seems this should be possible by sending the following:

0x26 COMMAND_CLASS_SWITCH_MULTILEVEL argument: 0x05 (SWITCH_MULTILEVEL_STOP_LEVEL_CHANGE)

I've tried a number of unsuccessful variations on: zwave.setValue(shade_node,38,1,00x05);

My UP and DOWN commands have been working correctly.

Reports of Working Z-Wave Commands

In the UI, if a device supports COMMAND_CLASS_SWITCH_MULTILEVEL, the UP button sends SWITCH_MULTILEVEL_START_LEVEL_CHANGE with the arguments 0x60, 0x0, and the DOWN button uses arguments 0x20, 0x0, while STOP does SWITCH_MULTILEVEL_STOP_LEVEL_CHANGE.

If the device does not support that command class, but does support COMMAND_CLASS_BASIC_WINDOW_COVERING, the UP button sends BASIC_WINDOW_COVERING_START_LEVEL_CHANGE with the argument 0x0, DOWN sends 64, and STOP sends BASIC_WINDOW_COVERING_STOP_LEVEL_CHANGE.

http://wiki.micasaverde.com/index.php/Window_Covering_Notes

"i tried using a z-wave send raw command using bytes "0x26, 0x05" as above. i can confirm that it works as STOP, i.e. when the shades were moving and this command was sent, the motors stop in their current position. "

http://forums.indigodomo.com/viewtopic.php?f=5&t=9356&sid=82e75990c85c4d2219c3de22d55bf9c8&start=30

Z-Wave Device Specifications ZRTSI - Z-Wave to RTS Interface https://www.somfysystems.com/file.cfm/ZRTSI_Spec_Sheet.pdf?contentid=311990

The stop command serves a number of important functions:

  1. Stopping the shade while in motion
  2. Sending the shade to a programmed position when triggered in standby (i.e. 50% down)
  3. Programming key settings like upper limit, lower limit, device pairing, etc ...

Device Information node6: Somfy, Unknown: type=5a52, id=5402 node6: name="", type="Motor Control Class A", location="" node6: class 37 node6: Switch=false

node6: class 38 node6: Level=0 node6: Bright=undefined node6: Dim=undefined node6: Ignore Start Level=true node6: Start Level=0

node6: class 134 node6: Library Version=7 node6: Protocol Version=3.42 node6: Application Version=1.08

Z-Wave Interface: Aeotec Z-Stick Gen 5

Fishwaldo commented 8 years ago

What ValueID's do you have exposed on this device?

If you have the Increment/Decrement ValueID's, the Stop Command is sent when the Button is Released.

Fishwaldo commented 8 years ago

any update?

Fishwaldo commented 8 years ago

Closing. Please reopen if you have updates.

joelrbrandt commented 5 years ago

I had the same problem, but eventually got it to work. Here's how to use the Somfy ZRTSI interface:

To make the shades go down, "push" the Bright button: zwave.setValue(<shade id>, 38, 1, 1, true);

To stop the shades while they're moving down, "release" the Bright button: zwave.setValue(<shade id>, 38, 1, 1, false);

To make the shades go up, "push" the Dim button: zwave.setValue(<shade id>, 38, 1, 2, true);

To stop the shades while they're going up, "release" the Dim button: zwave.setValue(<shade id>, 38, 1, 2, false);

tomaszzz commented 4 years ago

Hi @joelrbrandt, what API are you running in your examples? I wonder what the arguments represent (besides the shade id of course).

I am trying to do the same - make the dimmable part work with my roller shades so that the shade stops at 25, 50 , 75% and I am wondering if all it takes is adjustment of the values that homseer uses to send to the shade?

Much appreciated. Tomasz

My setup:

tomaszzz commented 4 years ago

Never mind, just realized what page I am on :) .... open-zwave of course After searching the API here: http://www.openzwave.com/dev/namespaceOpenZWave.html it is not obvious to me what class the zwave object is of, in the above example. I guess I will pull the code down.

I wonder if I will be able to translate these params to homseer params.