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

propertyName list for the binary sensor


Ros

Question

Hi guys,

My binary sensor is connected to dry contacts on IN1. I am need to read its state (open or closed). Can I use fibaro:get(deviceID, propertyName) ? If so, where can I lookup the list of property names for this type of sensor? Which promertyName should I use?

 

Thanks a lot!

Ros

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Hi @Ros,

 

and welcome to the forum.

 

Please, look into REST API active documentation. You find that when you type into URL HC_IP/docs, e.g. 192.168.81.1/docs.

 

Then you can get to Devices -> /devices/{Device ID} and you just need ID of your binary sensor.

Link to comment
Share on other sites

  • 0

Hi Ros and welcome to Fibaro forum!

 

UBS or other binary sensors will add device for each input to the gateway. Depending on which input you want to read status you need to see corresponding device ID and use this code:

Please login or register to see this code.

If you are writing scene in LUA, then you will also have list of all available devices on the left column and if you select one it will show you all possible functions. Same is also if you right click inside editor in web GUI.

Edited by Sankotronic
Link to comment
Share on other sites

  • 0
  • Inquirer
  • Thanks guys!

    So if I do  fibaro:getValue(deviceID, "value") and the returned value is '1', this means the IN1 contact is

    - 'open'

    - 'closed'

    - whichever is specified as ''Normal' in Parameter 3

    What would '1' mean? And '0' would mean the opposite?

     

    Edited by Ros
    Link to comment
    Share on other sites

    • 0
    12 hours ago, Ros said:

    Thanks guys!

    So if I do  fibaro:getValue(deviceID, "value") and the returned value is '1', this means the IN1 contact is

    - 'open'

    - 'closed'

    - whichever is specified as ''Normal' in Parameter 3

    What would '1' mean? And '0' would mean the opposite?

     

    0 means that UBS is not breached.

    1 means that UBS is breached.

     

    UBS - universal binary sensor

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Thanks Jakub!
    I hope this is the last stupid question from my side... What is the meaning of "breach"? Is it change of state of the sensor? Or a change specific position?

    Link to comment
    Share on other sites

    • 0

    @Ros, i will try to describe it on example.

     

    When motion sensor detects movement, that mean it was breached. Or if door was opened and Door sensor detects that, then it is also breached.

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