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

informations duplicate in RefreshStates


jjacques68

Question

hello, 

 

somebody knows why some informations are duplicate one the panel RefreshStates in the API ?

 

For example : 

 

- state of PIR

- state of switch

 

when one state change, I have 2 records, with the same value, but with an another ID (of RefreshStates)

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

State of PIR and Switch?

Might be you change switch by PIR motion somewhere?

Could you post refreshState screen shot?

Link to comment
Share on other sites

  • 0
  • Inquirer
  • All excuse, it's not in "RefreshStates" panel but in "panels/event" !

     

    and here a print screen : 

     

    And I just realized that there is a difference  (green arrows...)

     

    Please login or register to see this image.

    /monthly_2020_06/image.png.c6e86fb5881b19a317e6cbbf06bf393d.png" />

     

    I'm sorry... ... ...

     

    Link to comment
    Share on other sites

    • 0

    OK... now it makes sense.

    The id is the id of the event, not the device.

    Regarding properties "value" and "state", in case of switch they are the same, but if (for example) is a dimmer, then the state shows on/off (true/false) and in case of "value" is the dimmer level (0-99)

    So everything looks correct.

    Let me know if you've more questions

    Edited by cag014
    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Thanks, 

     

    I understand chapter with the IDs.

    And now I understand the difference between "State" and "value"'...

    I didn't think about it...

     

    thank you !!!!! :) 

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