Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Door Contact Scene Activation Functionality


Question

Posted

Hi all,

I have hooked up a momentary switch to a door contact sensor (dry contact input) and have setup the device as follows :-

1) Paramater 3 = Input (normally open) as per instructed

2) Parameter 14 = functionality activated

I want to use the switch to do :-

1) double click the switch to -> activate "scene arm"

2) triple click the switch to -> activate "scene disarm"

I'm quiet confused with the instructions given in the HC2. Can anybody help me please. Thanks.

6 answers to this question

Recommended Posts

  • 0
Posted

alijanah, when you enter device API, there will be property SceneActivation visible. It will change every time you activate input. Just create a scene, where this property is trigger.

  • 0
  • Inquirer
  • Posted

    I don't quiet understand what you mean by device API. Do I have to use LUA for this to work ? If so, is there any information that I can read or example on how to do this ?

    I have both scenes that I want to activate already created :-

    1) arm

    2) disarm

    Next, I create another scene to program the double and triple click trigger ? How do I do this with block programming ?

    Thank you.

    [ Added: 2014-10-08, 17:30 ]

    Nobody can elaborate further on this matter ? I'd appreciate it. Thanks.

    • 0
    Posted

    alijanah, assuming you have 3.590, if you enter this url: HC2_IP/api/devices?id=XX where XX is id of device you want to view, you will see json containing all device properties and values. Install addon for your browser called Json Viewer, to display it properly. There you can find property called SceneActivation. It will change values when activated, but page refresh is needed. If you can see that thing changing, you can trigger a scene on that basis. Just use this:

    Please login or register to see this code.

    as a header.

    • 0
  • Inquirer
  • Posted

    Is my assumption correct that the sceneActivation deviceID would be on ID10, ID11, ID12, ID13, ID14 and ID15 ?

    With my setup (Parameter 3 set to value 2) and I'm using momentary switch, when I go to the api json output I don't see the value of sceneActivation ID changing (because when I press the button, the browser needs to be refreshed and when I do that, the value stays at ID11). Is this correct ?

    And can you confirm that I can only activate scene using this method via LUA ? (that means people with HCL can't do this) ?

    Thanks.

    • 0
    Posted

    alijanah, yes, for now scene activation is available on HC2 only. By ID i meant device ID, so ID of a dimmer or D/W sensor etc. You need to check scene activation ID in following part of code. I attached a file with example code for dimmer. You should be able to see scene activation value changing when performing different number of clicks. What device do you use? What kind of switch is installed?

    Please login or register to see this link.

    • 0
  • Inquirer
  • Posted

    I am using momentary switch connected to figaro door window contact (IN dry contact). I set parameter 3 to INPUT_NO (Normally Open) and parameter 14 to functionality activated.According to your HC2 instruction inside the advanced setting, I have to set parameter 3 to value 2 (which is INPUT_NO (Normally Open)). Is this setup correct ?

    I want to use that switch to activate multiple scene. Double Click run "Scene 1" and Triple Click run "Scene 2".

    My device ID that I'm referring to is the sceneactivatetion ID (not device ID). I know that.

    I have created a scene containing this :-

    Please login or register to see this code.

    Whenever I click the momentary switch I only get You click 11. No other value is possible. Why is that. I've tried double clicking the switch, etc but all I get is the debug output 11.

    My debug output :-

    Please login or register to see this code.

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...