@gymguy (Gymguy) posted a new topic, subject "How to configure ZRC-90 Scene Controller in OpenHAB2 paperUI". It read:

   Hi,  
    I am new to OH2. I searched the forum to find help on configuring ZRC-90 Scene Controller in OH2. However, I couldn't find any step by step guide. Can you redirect me to such a guide to configure the 8 button scene controller to control a zwaveplus lamp. I am able to control the lamp via paper/basic UI. Now I want to control it using a 8button scene controller.  
    To be precise, what should I add in my sitemap, items file?
    
    Thanks in advance.

So @sihui (SiHui) replied

    As the name states it is a **scene** controller.  
    You need to link a number itemtype to the scene_number channel, then catch the button presses in a rule and do stuff with it.

@gymguy (Gymguy) replied

    Hi @sihui  
    Thank you for the response. I created the scene in PaperUI and it works when I manually run it from the paperUI. I still do not know how to map the buttons on ZRC-90 with that of various actions. Say on button press, I want to switch ON the light 1 and again on the same button press I want to switch it OFF. The rule I have written works very well but how do I capture the button press on ZRC-90 and map it is not clear. For now I have to map 8 buttons of ZRC-90 with 8 different lamps.

To which @sihui (SiHui) replied

    gymguy:
    
    > I want to switch ON the light 1 and again on the same button press I want to switch it OFF.
    
    Check your events.log which scene numbers are for which button press and then trigger your rules on `received update`

After which, @gymguy (Gymguy) added

    sihui:
    
    > Check your events.log
    
    I checked the events.log and see all the logs but nothing for button press on ZRC-90.  
    My .items file contains this:  
    Number GF_Zrc_Remote “GF ZRC Remote” (GF_Dining) {channel=“zwave:device:bc3e0154:node3:scene_number” }
    
    Is it correct or should it be anything else?

To which @sihui (SiHui) replied

    gymguy:
    
    > Is it correct
    
    You can easily check your channels via PaperUI (example is a motion sensor):
    
    1.jpeg1200×624 40.7 KB

To which @gymguy (Gymguy) replied

    @sihui I see it in the list and it was also detected as 8 button scene controller. Out of frustration, I deleted it and am trying to add it again. Now it is added as “unknown device”. Somehow openHAB2 is not able to recognize it as “8 button controller” now.  
    How do I reset and add it again?

So @sihui (SiHui) replied

    gymguy:
    
    > I deleted it
    
    What do you mean with deleted? Did you exclude it from the network or did you just delete the thing?  
    Read through the docs to properly differentiate between that:  
    openhab.org
    
    ### ZWave - Bindings
    
    The ZWave binding supports an interface to a wireless Z-Wave home automation network.
    
    gymguy:
    
    > How do I reset and add it again?
    
    If the device was not properly excluded from the network it needs to be reset. Check your manual on how to do that.

@gymguy (Gymguy) replied

    I have reset the device. Now when I press the keys, I can capture the keys as 1,2,… Still when I map in a rule and try to send command on my lamp, it doesn't work. In the logging, I get the key press event and also number.  
    How can I send On/Off command to a lamp on key press?

Then @sihui (SiHui) said

    [code]
        rule "switch on scene number"
        when
        	Item YourSceneItem received update X //X=scene number you want to catch
        then
        	YourSwitchItem.sendCommand(ON) //Or OFF
        end
    [/code]

To which @gymguy (Gymguy) replied

    sihui:
    
    > YourSwitchItem.sendCommand(ON) //Or OFF
    
    Instead of switch I used the light and that didn't work. As per your indication, I used a switch and it works now like a charm.  
    Thank you very much for your gr8 help @sihui

After which, @gymguy (Gymguy) added

    How can I send the command to rgwb bulb from this rule for a specific color scene?

After which, @sihui (SiHui) added

    Search the forum for RGBW and you will find a lot of threads dealing with this.

After which, @gymguy (Gymguy) added

    Thanks @sihui. I wish to close this thread now. Any other questions, I will raise in a new thread or existing thread on respective topic.


{'source': 'discourse', 'url': 'https://community.openhab.org/t/how-to-configure-zrc-90-scene-controller-in-openhab2-paperui/50593', 'title': 'How to configure ZRC-90 Scene Controller in OpenHAB2 paperUI', 'views': 1949, 'has_accepted_answer': False, 'word_count': 751, 'like_count': 1, 'reply_count': 11, 'participant_count': 2, 'posts': 14, 'tags': 'zrc-90', 'author': '@gymguy (Gymguy)', 'participants': '@gymguy (Gymguy), @sihui (SiHui)', 'image_url': [None], 'created_at': '2018-09-01T19:07:25.975Z', 'last_posted_at': '2018-09-07T07:54:03.256Z'}