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

Alarm lua HC3


Lode

Question

A couple of questions about alarm settings in lua (HC3)

 

How can i arm/disarm a sensor in lua ?

How can i ask the state of a sensor in lua ? (armed or disarmed)

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0
9 minutes ago, Lode said:

A couple of questions about alarm settings in lua (HC3)

 

How can i arm/disarm a sensor in lua ?

How can i ask the state of a sensor in lua ? (armed or disarmed)

You don't arm/disarm sensors.

Sensors belong to alarmZones and you arm/disarm alarmZones.

Link to comment
Share on other sites

  • 0
  • Inquirer
  • Just found that out about the zones but how to arm/disarm a zone in lua ?

    And how can i ask for the state of those zones.

     

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 24 minutes ago, Lode said:

    Just found that out about the zones but how to arm/disarm a zone in lua ?

    And how can i ask for the state of those zones.

     

    Found it....

    It's really different in HC3.....a lot to discover ?

     

    fibaro.alarm(1'disarm')
    local state = fibaro.getPartitionArmState(1)
    Edited by Lode
    Link to comment
    Share on other sites

    • 0

    Hello,

    a question that may have been answered: Can I arm a SINGLE sensor without to be on a zone?

    Link to comment
    Share on other sites

    • 0
    4 hours ago, FSE said:

    Hello,

    a question that may have been answered: Can I arm a SINGLE sensor without to be on a zone?

    Well you can make a seperate zone with just that one sensor inside.

    Link to comment
    Share on other sites

    • 0
    10 hours ago, JureZ said:

    Well you can make a seperate zone with just that one sensor inside.

    @JureZ thank you!

    Do you know also if I can read the status of the specific sensor or do I have to read the status of the zone (and that is the tricky as a sensor can be included to more than one zone)

    It is a bit of waste of resources IMHO from fibaro...

    Link to comment
    Share on other sites

    • 0
    6 hours ago, FSE said:

    @JureZ thank you!

    Do you know also if I can read the status of the specific sensor or do I have to read the status of the zone (and that is the tricky as a sensor can be included to more than one zone)

    It is a bit of waste of resources IMHO from fibaro...

    fuf ... i dont know if it can be done easily. Maybe you could do it if you write a section that checks that devices specific properties and look if it has arm status in them. Maybe this can help you: 

    Please login or register to see this link.

    Link to comment
    Share on other sites

    • 0
    8 hours ago, FSE said:

    @JureZ thank you!

    Do you know also if I can read the status of the specific sensor or do I have to read the status of the zone (and that is the tricky as a sensor can be included to more than one zone)

    It is a bit of waste of resources IMHO from fibaro...

    You want to know if the sensor is "armed"?

    Sensors are not armed on the HC3. Alarm zones are armed, and sensors belong to alarm zones.

    On the HC2, sensors had an "armed" property. On the HC3 that is removed, and the armed property is moved to the zones objects instead.

    You ask the zones if they are armed, and you arm and disarm zones.

     

    So the mindset change is to not think arming/disarming/checking devices when doing alarms - but thinking arming/disarming/checking zones.

     

    If you need to "arm" a single sensor, then put it in a separate zone like @JureZ suggested.

    If you want the HC3 to do its bells and whistles,  push an alarm notification and show the red light when a sensor is breached this is the only way as it will

    only happen when a zone is breached (that the sensor belongs to).

     

    You can of course have a DIY scene that triggers if a sensor is breached and checks some global variable if the sensor is "armed" and in the case sends a push notification to you or start some siren or whatever. But it will not run the HC3 alarm bells, and you need to keep the "armed" state yourself by using some global variable with that info.

     

     

     

    Edited by jgab
    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...