Hi, Chris,
I’m not seeing the desired results when a scene command is generated by an HS-WS100+.
Configuration:
OH1.8.2, HABmin 1.4.0.201504061533, org.openhab.binding.zwave 1.9.0.201612010210
Device: HomeSeer HS-WS100+ (node 15)
Here’s the log for a typical single tap of the device (grep’d for only NODE 15):
2016-12-03 15:24:09.081 [DEBUG] [ApplicationCommandMessageClass:41 ]- NODE 15: Application Command Request (ALIVE:DONE)
2016-12-03 15:24:09.082 [DEBUG] [ApplicationCommandMessageClass:146 ]- NODE 15: Incoming command class CENTRAL_SCENE (0x5b)
2016-12-03 15:24:09.083 [DEBUG] [.ZWaveCentralSceneCommandClass:77 ]- NODE 15: Received central scene command (v1)
2016-12-03 15:24:09.085 [DEBUG] [.ZWaveCentralSceneCommandClass:84 ]- NODE 15: Received scene 1 ; key 0
2016-12-03 15:24:09.086 [DEBUG] [b.z.i.protocol.ZWaveController:668 ]- NODE 15: Notifying event listeners: ZWaveCommandClassValueEvent
2016-12-03 15:24:09.088 [DEBUG] [.z.internal.ZWaveActiveBinding:472 ]- NODE 15: Got a value event from Z-Wave network, endpoint = 0, command class = CENTRAL_SCENE, value = {key=0, scene=1}
And here’s what happens when I tap twice on the “ON” side of the pad:
2016-12-03 15:29:24.978 [DEBUG] [ApplicationCommandMessageClass:41 ]- NODE 15: Application Command Request (ALIVE:DONE)
2016-12-03 15:29:24.980 [DEBUG] [ApplicationCommandMessageClass:146 ]- NODE 15: Incoming command class CENTRAL_SCENE (0x5b)
2016-12-03 15:29:24.982 [DEBUG] [.ZWaveCentralSceneCommandClass:77 ]- NODE 15: Received central scene command (v1)
2016-12-03 15:29:24.984 [DEBUG] [.ZWaveCentralSceneCommandClass:84 ]- NODE 15: Received scene 1 ; key 3
2016-12-03 15:29:24.985 [DEBUG] [b.z.i.protocol.ZWaveController:668 ]- NODE 15: Notifying event listeners: ZWaveCommandClassValueEvent
2016-12-03 15:29:24.988 [DEBUG] [.z.internal.ZWaveActiveBinding:472 ]- NODE 15: Got a value event from Z-Wave network, endpoint = 0, command class = CENTRAL_SCENE, value = {key=3, scene=1}
So, thought I, I’ll use what I’ve seen elsewhere and try to capture some of these events with items that looks like this:
Switch GarageLights "Garage Lights" {zwave="15:command=SWITCH_BINARY" }
Switch GarageLights_S1 "Garage Lights_Scene 1T" {zwave="15:command=CENTRAL_SCENE,scene=1"}
Switch GarageLights_S2 "Garage Lights_Scene 2T" {zwave="15:command=CENTRAL_SCENE,scene=2"}
Switch GarageLights_S3 "Garage Lights_Scene 3T" {zwave="15:command=CENTRAL_SCENE,scene=3"}
Switch GarageLights_S4 "Garage Lights_Scene 3T" {zwave="15:command=CENTRAL_SCENE,scene=4"}
(I actually had “key” values in there before, but tried simplifying when that didn’t work, either.)
I made a rule that looks like this:
rule "Garage Lights Switch Update"
when
Item GarageLights_S1 received update or
Item GarageLights_S2 received update or
Item GarageLights_S3 received update or
Item GarageLights_S4 received update or
Item GarageLights received update
then
logInfo("GLSM", "Got an update from the Garage Lights switch.")
end
I get a log entry when I command GarageLights on from the sitemap, and it occasionally fires off on its own when the network burps or something (not sure what causes it), but I never can trigger this rule with the CLASS_SCENE things like I thought I should be able to based on what was described above.
Any ideas what’s not quite right here?
Thanks,
Bill