Aeotec Wallmote

Thanks Ole

Sliding needs to be added to OH2. This is basic functionality in my view thats fundamental!

Click, Touch, Slide, Swipe etc etc etc all its all core of an IPhone which always wins in usability.

I want to use this device in a rule – is this possible. I have set up Items for each of the 4 buttons and the “scene” and tried to set a rule for “received command” event. But that doesn’t work. Any ideas?

Commands are sent from UIs and rules. Bindings update the state of linked Items… use ‘received update’.

Do I have to set the device association?
I want to use a rule like this:
when
Item QuadScene received update

where QuadScene is defined in items as:
Number QuadScene {channel=“zwave:device:a412db75:node13:scene_number”}

Your rule should look like this. Other than the Lifeline, you shouldn’t need to set any other associations.

ule "Wallmote"
when
    Item QuadScene received update
then
    var double sceneNumber = (QuadScene.state as Number).doubleValue

    switch (sceneNumber) {
        case 1.0 : {            // Button 1 short press
        }
        case 1.1 : {            // Button 1 long press
        }
        case 1.2 : {            // Button 1 hold
        }
        case 2.0 : {            // Button 2 short press
        }
        case 2.1 : {            // Button 2 long press
        }
        case 2.2 : {            // Button 2 hold
        }
        case 3.0 : {            // Button 3 short press
        }
        case 3.1 : {            // Button 3 long press
        }
        case 3.2 : {            // Button 3 hold
        }
        case 4.0 : {            // Button 4 short press
        }
        case 4.1 : {            // Button 4 long press
        }
        case 4.2 : {            // Button 4 hold
        }
        default : {             // Unknown
        }
    }
end

Ohhhhh I got it! =) Thanks @mhilbush his rule works perfectly! Be sure to use 1.0 and not 1,0 or simply 1!

1 Like