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

New integration code for DSC alarm with HC2


pos

Question

Ok here is my 2.0 of DSC <-> HC 2 integration

 

(creating a new thread here and will terminate the other old thread at 

Please login or register to see this link.

 )

 

scene trigger for:

  • All zones
  • AC power
  • What user armed or disarmed the partition
  • ARM/DISARM/STAY and the rest of the options :)
  • Panel battery status
  • Tell if a partition is in alarm

 

Presentation device with:

  • Presentation device auto created
  • Buttons for arming AWAY or STAY independantly for partition1 or 2
  • Buttons for DISARMING partition 1 or 2
  • Info of AC power status
  • Info of Panel power battery status
  • Panic buttons for Fire/Ambulance/Police
  • Info with time, arm state and the user who did it for partition 1 and 2

 

 

The whole config is mostly automatic.

 

For those not interested in the DSC itself, my code solves and show solutions for a few issues where Fibaro has no docs.. Included in the code is..

  • Auto creation of global variables
  • Auto creation of VD
  • Auto creation of VD labels and buttons
  • Upload of Icons to HC2
  • Raw Sockets handling against Envisalink plus against syslog

And more...

 

 

 

 

Please login or register to see this link.


Please login or register to see this link.

 

 

Attaches a little screenshot of the presenter device

 

DSC_presenter_work_in_progress-20170512-

 

 

Peo

Edited by pos
Link to comment
Share on other sites

Recommended Posts

  • 0
  • Inquirer
  • Enable debug and restart. Then check the logs so you see the issue

    Link to comment
    Share on other sites

    • 0

    @pos I've been using your DSC integration for some time and it works very well.

     

    I however, want to create a Scene that can "Press" the "Disarm" button on the DSCPartition1 VD. I require a scene because to be able to disarm the alarm via a "Fibaro Button" device or "Google Assistant".

     

    For the Disarm button I require the userpin. I need help with the below code to retrieve the PIN from the Global variables rather than "hardcoding it" . If I use the below code I get the error:

     

    [DEBUG] 22:08:53: 2019-06-22 22:08:53.221765 [ fatal] Unknown exception: /opt/fibaro/scenes/116.lua:11: attempt to index global 'Net' (a nil value)

     

    Line 11 is the first line of the below code: HOST = Net.FHttp(......

    Please login or register to see this code.

     

    Can you please help with the correct syntax above?

     

    Thank you and kind regards,

     

    Nico

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Hi @nicopret

     

    I see what you are trying to achieve. It is doable. 

     

    I think you have to use net.HTTPClient() in scenes. 

     

    Try that and get back if you do not solve it.

     

    Regards

    peo

    Link to comment
    Share on other sites

    • 0

    Hi @pos and everyone!

     

    Did anyone make work the integration with HC3? I guess the same LUA code of the last version (3.7) should work.

     

    HC3 don't use anymore VD, only works with QuickApps.

    Link to comment
    Share on other sites

    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...