Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add start stop channel for Aeotec swipe #1135

Merged
merged 1 commit into from
Feb 16, 2019

Conversation

cdjackson
Copy link
Collaborator

This adds a new switch_startstop channel and makes it available for the ZW130 swipe commands.
Closes #598
Signed-off-by: Chris Jackson [email protected]

@cdjackson cdjackson added this to the 2.5 milestone Feb 16, 2019
Signed-off-by: Chris Jackson <[email protected]>
@cdjackson cdjackson merged commit a74a413 into openhab:master Feb 16, 2019
@cdjackson cdjackson deleted the move_stop_channel branch February 16, 2019 12:15
@dastrix80
Copy link

Thanks Chris !

@cdjackson
Copy link
Collaborator Author

cdjackson commented Feb 16, 2019 via email

@dastrix80
Copy link

dastrix80 commented Feb 16, 2019

Shall do soon as i work out where the jar file is :) i have 4 of these so they will get a good workout

@mhilbush
Copy link

I couldn't get the Wallmote Quad to emit anything until I set config parameter 3 (Button slide) to Enable AND config parameter 4 (Notification report) to Central scene and report. In my testing, just setting parameter 3 alone was not sufficient.

With both those parameters set, the device would emit a CONFIGURATION_REPORT for parameters 9 and 10.

swipe1

swipe2

I might have this backwards, but

if value9 < value10
    // Swipe UP
else if value9 > value10
    // Swipe DOWN 

This HA post seems to say the same thing.

If this is the way it's supposed to work, it seems pretty odd to me.

@cdjackson Does this match was you were told by Aeotec?

@dastrix80
Copy link

Interesting. Ill turn the Central Scene & Report back on and do some testing.

@mhilbush
Copy link

mhilbush commented Feb 18, 2019

BTW, I'm guessing those values returned in the configuration report are the location of my finger on the sensor when I start and stop the swipe.

I find this whole thing rather confusing. The Wallmote Quad has 4 "zones", but there's nothing in these configuration reports that would indicate what "zone" is being swiped (other than a way to possibly derive that from the values).

I'm very curious to know what Aeotec says about this functionality.

@dastrix80
Copy link

switch_startstop1
switch_startstop2
switch_startstop3
switch_startstop4

Each 3,5,7,9 values for the Association Groups gets set to LifeLine for MultiLevel.

I would then imagine you get different numerical values on each swipe for each zone?

@mhilbush
Copy link

Possibly. I didn't try setting any of those associations. I can try that tomorrow.

@dastrix80
Copy link

dastrix80 commented Feb 18, 2019

Yep, set all those associations. Chris mentioned this to me via email. I'll test this in a few hours and see how I go with report being added to parameter 4 and report back.

PS: do you have linked channels for your new string item? I do not.

@cdjackson
Copy link
Collaborator Author

Yes, the configuration parameters report the location and direction. I don't plan to try and support that (it's very non-standard!) so I would suggest to disable the config reports. You MUST have the other associations set though.

@dastrix80
Copy link

Hi Chris

Ive done this and the string item reports NULL. I also see no linked channels to this new string item. Nor the channel visible in Habmin

Cheers

@cdjackson
Copy link
Collaborator Author

cdjackson commented Feb 18, 2019 via email

@dastrix80
Copy link

Hi Chris, no i didnt delete it. You never mentioned I had to. I have done that now and I can see the channels.

@cdjackson
Copy link
Collaborator Author

cdjackson commented Feb 18, 2019 via email

@dastrix80
Copy link

No dramas :) I still don't get values populated into the string item despite them being linked now. But the debug does show the Parameter 9 & 10 values

@cdjackson
Copy link
Collaborator Author

cdjackson commented Feb 18, 2019 via email

@dastrix80
Copy link

Hi Chris

I had the report set in para 4, have changed that now and the log shows the info correctly

19-Feb-2019 06:58:26.684 [DEBUG] [.openhab.binding.zwave.internal.protocol.ZWaveNode] - NODE 20: resetResendCount initComplete=true isDead=false
19-Feb-2019 06:58:26.684 [DEBUG] [.openhab.binding.zwave.internal.protocol.ZWaveNode] - NODE 20: Decapsulating COMMAND_CLASS_MULTI_CHANNEL
19-Feb-2019 06:58:26.684 [DEBUG] [.openhab.binding.zwave.internal.protocol.ZWaveNode] - NODE 20: COMMAND_CLASS_MULTI_CHANNEL corrupted payload 60 0D 02 01 26 05
19-Feb-2019 06:58:36.843 [TRACE] [nhab.binding.zwave.internal.protocol.SerialMessage] - NODE 20: Message payload = 00 14 0A 60 0D 02 01 26 04 38 00 FF 00
19-Feb-2019 06:58:36.844 [DEBUG] [ng.zwave.internal.protocol.ZWaveTransactionManager] - NODE 20: Application Command Request (ALIVE:DONE)
19-Feb-2019 06:58:36.845 [DEBUG] [.openhab.binding.zwave.internal.protocol.ZWaveNode] - NODE 20: resetResendCount initComplete=true isDead=false
19-Feb-2019 06:58:36.845 [DEBUG] [.openhab.binding.zwave.internal.protocol.ZWaveNode] - NODE 20: Decapsulating COMMAND_CLASS_MULTI_CHANNEL
19-Feb-2019 06:58:36.845 [DEBUG] [.openhab.binding.zwave.internal.protocol.ZWaveNode] - NODE 20: Incoming command class COMMAND_CLASS_SWITCH_MULTILEVEL, endpoint 2
19-Feb-2019 06:58:36.845 [DEBUG] [.openhab.binding.zwave.internal.protocol.ZWaveNode] - NODE 20: SECURITY not supported
19-Feb-2019 06:58:36.845 [DEBUG] [e.internal.protocol.commandclass.ZWaveCommandClass] - NODE 20: Received COMMAND_CLASS_SWITCH_MULTILEVEL V0 SWITCH_MULTILEVEL_START_LEVEL_CHANGE
19-Feb-2019 06:58:36.846 [DEBUG] [col.commandclass.ZWaveMultiLevelSwitchCommandClass] - NODE 20: Switch Multi Level start level change, direction = INCREASE
19-Feb-2019 06:58:36.846 [DEBUG] [rg.openhab.binding.zwave.handler.ZWaveThingHandler] - NODE 20: Got an event from Z-Wave network: ZWaveStartStopEvent
19-Feb-2019 06:58:36.846 [DEBUG] [rg.openhab.binding.zwave.handler.ZWaveThingHandler] - NODE 20: Got a value event from Z-Wave network, endpoint = 2, command class = COMMAND_CLASS_SWITCH_MULTILEVEL, value = INCREASE
19-Feb-2019 06:58:36.846 [DEBUG] [ng.zwave.internal.protocol.ZWaveTransactionManager] - NODE 20: Commands processed 1.
19-Feb-2019 06:58:36.847 [DEBUG] [ng.zwave.internal.protocol.ZWaveTransactionManager] - NODE 20: Checking command org.openhab.binding.zwave.internal.protocol.ZWaveCommandClassPayload@76b91d53.
19-Feb-2019 06:58:37.133 [TRACE] [nhab.binding.zwave.internal.protocol.SerialMessage] - NODE 20: Message payload = 00 14 06 60 0D 02 01 26 05
19-Feb-2019 06:58:37.135 [DEBUG] [ng.zwave.internal.protocol.ZWaveTransactionManager] - NODE 20: Application Command Request (ALIVE:DONE)
19-Feb-2019 06:58:37.135 [DEBUG] [.openhab.binding.zwave.internal.protocol.ZWaveNode] - NODE 20: resetResendCount initComplete=true isDead=false
19-Feb-2019 06:58:37.135 [DEBUG] [.openhab.binding.zwave.internal.protocol.ZWaveNode] - NODE 20: Decapsulating COMMAND_CLASS_MULTI_CHANNEL
19-Feb-2019 06:58:37.135 [DEBUG] [.openhab.binding.zwave.internal.protocol.ZWaveNode] - NODE 20: COMMAND_CLASS_MULTI_CHANNEL corrupted payload 60 0D 02 01 26 05
19-Feb-2019 06:58:57.113 [TRACE] [nhab.binding.zwave.internal.protocol.SerialMessage] - NODE 20: Message payload = 00 14 0A 60 0D 02 01 26 04 78 00 FF 00
19-Feb-2019 06:58:57.114 [DEBUG] [ng.zwave.internal.protocol.ZWaveTransactionManager] - NODE 20: Application Command Request (ALIVE:DONE)
19-Feb-2019 06:58:57.115 [DEBUG] [.openhab.binding.zwave.internal.protocol.ZWaveNode] - NODE 20: resetResendCount initComplete=true isDead=false
19-Feb-2019 06:58:57.115 [DEBUG] [.openhab.binding.zwave.internal.protocol.ZWaveNode] - NODE 20: Decapsulating COMMAND_CLASS_MULTI_CHANNEL
19-Feb-2019 06:58:57.115 [DEBUG] [.openhab.binding.zwave.internal.protocol.ZWaveNode] - NODE 20: Incoming command class COMMAND_CLASS_SWITCH_MULTILEVEL, endpoint 2
19-Feb-2019 06:58:57.115 [DEBUG] [.openhab.binding.zwave.internal.protocol.ZWaveNode] - NODE 20: SECURITY not supported
19-Feb-2019 06:58:57.116 [DEBUG] [e.internal.protocol.commandclass.ZWaveCommandClass] - NODE 20: Received COMMAND_CLASS_SWITCH_MULTILEVEL V0 SWITCH_MULTILEVEL_START_LEVEL_CHANGE
19-Feb-2019 06:58:57.116 [DEBUG] [col.commandclass.ZWaveMultiLevelSwitchCommandClass] - NODE 20: Switch Multi Level start level change, direction = DECREASE
19-Feb-2019 06:58:57.116 [DEBUG] [rg.openhab.binding.zwave.handler.ZWaveThingHandler] - NODE 20: Got an event from Z-Wave network: ZWaveStartStopEvent
19-Feb-2019 06:58:57.117 [DEBUG] [rg.openhab.binding.zwave.handler.ZWaveThingHandler] - NODE 20: Got a value event from Z-Wave network, endpoint = 2, command class = COMMAND_CLASS_SWITCH_MULTILEVEL, value = DECREASE
19-Feb-2019 06:58:57.117 [DEBUG] [ng.zwave.internal.protocol.ZWaveTransactionManager] - NODE 20: Commands processed 1.
19-Feb-2019 06:58:57.117 [DEBUG] [ng.zwave.internal.protocol.ZWaveTransactionManager] - NODE 20: Checking command org.openhab.binding.zwave.internal.protocol.ZWaveCommandClassPayload@4d343c6d.
19-Feb-2019 06:58:57.355 [TRACE] [nhab.binding.zwave.internal.protocol.SerialMessage] - NODE 20: Message payload = 00 14 06 60 0D 02 01 26 05
19-Feb-2019 06:58:57.357 [DEBUG] [ng.zwave.internal.protocol.ZWaveTransactionManager] - NODE 20: Application Command Request (ALIVE:DONE)
19-Feb-2019 06:58:57.357 [DEBUG] [.openhab.binding.zwave.internal.protocol.ZWaveNode] - NODE 20: resetResendCount initComplete=true isDead=false
19-Feb-2019 06:58:57.357 [DEBUG] [.openhab.binding.zwave.internal.protocol.ZWaveNode] - NODE 20: Decapsulating COMMAND_CLASS_MULTI_CHANNEL
19-Feb-2019 06:58:57.358 [DEBUG] [.openhab.binding.zwave.internal.protocol.ZWaveNode] - NODE 20: COMMAND_CLASS_MULTI_CHANNEL corrupted payload 60 0D 02 01 26 05

@dastrix80
Copy link

Still no values in the string item

@cdjackson
Copy link
Collaborator Author

cdjackson commented Feb 19, 2019 via email

@dastrix80
Copy link

Correct.

See my attached items, I believe I've done this correctly.

/*ZWave Aeotec WallMote Bedroom  */
Number BedRoom1_AeoButton_Scene      "Aeotec WallMote #3 Button"                               { channel="zwave:device:a1562d1c:node20:scene_number" }
Number BedRoom1_AeoButton_Battery    "Aeotec WallMote #3 Battery"          (gBatteries)        { channel="zwave:device:a1562d1c:node20:battery-level" }
String BedRoom1_AeoButton_Slide1      "Aeotec WallMote #3 Button"                               { channel="zwave:device:a1562d1c:node20:switch_startstop1" }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants