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

How to filter devices upon multiple types


Neo Andersson

Question

Hi

Anyone have some suggestion, how can i list all devices that have either com.fibaro.baseShutter or  com.fibaro.FGR basType and are visible?

It works with one type like this

 

Please login or register to see this code.

 

but doesn't work for multiple types

 

Please login or register to see this code.

 

thanks

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

Please login or register to see this code.

You can retrieve them like this.

Link to comment
Share on other sites

  • 0
  • Inquirer
  • Yes I know this, but i was hunting solution for the other endpoint..

    There are two endpoints (actually 3)..First can manage the shutter and the slats using setValue or setValue2

    The other is for slats only, using setValue, and the third is for shutters also using setValue when accessing it.

    Anyway thanks

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0

    I don't get what you want to do.

    What is "the other endpoint"?

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Please login or register to see this image.

    /monthly_2024_03/image.png.e61e9e8dfdc7995d5dde9d21d9615d18.png" />

     

    Enpoinst 631,633 634

    Link to comment
    Share on other sites

    • 0

    I don’t get what the question is.

    You search for “a solution” for “endpoints”. What are you trying to accomplish? Please be more specific when asking for help. 

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • If ai am using a filter "

    Please login or register to see this code.

    it will get me all the 3 endpoints..So later in my code, when I access the filtered data, it will affect all three endpoints, because all of them are of rollerShutter type

    So i need to filter only 1 of them, possibly in my example the 633 because using that i can acces both the lamels and the shutter using setValue and setValue2 commands

    Its kinda tricky, becuase we not always have Fibaro moduls.. They can be other blid brands, they can even be a QA devices..

    So i need to list all the blind type devices in a room, and later apply to them a value..But as i mentioned, i can not filter on type..

    If i did, it will affect unwanted devices too

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Actually i was wrong 633 is not of type rollerShutter it is com.fibaro.FGR223, so there are two of them.

    Anyway, the best would be if i could filer on multiple types.. that is my goal in one word..

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

    • 0

    Why not retrieve 3 lists and then combine them into 1 list? Then work with that list.

     

    Edit: reading your last post again, you ask for 2 different things. Filter out 1 device from a list and get all devices of a specific type and send a commando to all of them at once. 

     

     

    Edited by Joep
    I don't understand the question.
    • Like 1
    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • My original question was how to filter devices on multiple different types

    All other stuff that i wrote, just evolved from conversation.

    The question still remains the same..Using any api call, or whatever other method to filter two or more device types...thats it

    Using multiple different calls is a clear solution for me, but i was asking if it is posssible in one call.

    Probably not..thanks 

     

    Link to comment
    Share on other sites

    • 0

    As I’m aware off, that is not possible.

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