grzegorz914 / homebridge-meraki-control

Homebridge plugin for Meraki devices using RESTFull API, publish as independent external platform accessory.
MIT License
0 stars 3 forks source link

SSID Filter of more than one network only filters the last one in the list. #7

Closed magic7s closed 3 years ago

magic7s commented 3 years ago

I found some weird behavior with the new filer SSID. It works perfectly with a single network, however when you add more than one, only the last one in the list will be filtered.

Examples: Three networks exist on my Meraki configuration = 1HOTBR, b_only, kids_only.


This will filter 1HOTBR and show b_only and kids_only in Accessories. WORKING as expected.

"filterSsidByName": [
                        {
                            "name": "1HOTBR"
                        }
                    ],

This will filter b_only and show 1HOTBR and kids_only in Accessories. WORKING as expected.

"filterSsidByName": [
                        {
                            "name": "b_only"
                        }
                    ],

This will filter 1HOTBR and show b_only and kids_only in Accessories. NOT WORKING as expected.

"filterSsidByName": [
                        {
                            "name": "b_only"
                        },
                       {
                            "name": "1HOTBR"
                        }
                    ],

This will filter b_only and show 1HOTBR and kids_only in Accessories. NOT WORKING as expected.

"filterSsidByName": [
                        {
                            "name": "1HOTBR"
                        },
                       {
                            "name": "b_only"
                        }
                    ],

This will filter kids_only and show 1HOTBR and b_only in Accessories. NOT WORKING as expected.

"filterSsidByName": [
                        {
                            "name": "1HOTBR"
                        },
                       {
                            "name": "b_only"
                        },
                      {
                            "name": "kids_only"
                        }
                    ],