iharosi / homebridge-plex-webhooks

Plex Webhooks Server plugin for Homebridge
GNU Affero General Public License v3.0
48 stars 5 forks source link

Can't create more than one accessory #2

Closed moviemakr1620 closed 4 years ago

moviemakr1620 commented 4 years ago

I installed your plugin and had it working but when i went to add more accessories only the first one would activate when playing on plex. the rest would show up but not activate until i brought them to the top. This is my config code. I changed the different ports because it didn't run with only one and added all three in plex.

"accessories": [
    {
        "accessory": "PlexWebhooksServer",
        "name": "Plex Family Room",
        "port": "32401",
        "filter": [
            {
                "Account.title": "Jason Clee",
                "Player.title": "Family room"
            }
        ]
    },
    {
        "accessory": "PlexWebhooksServer",
        "name": "Plex Living Room",
        "port": "32402",
        "filter": [
            {
                "Account.title": "Jason Clee",
                "Player.title": "Living Room"
            }
        ]
    },
    {
        "accessory": "PlexWebhooksServer",
        "name": "Plex Theater",
        "port": "32403",
        "filter": [
            {
                "Account.title": "Jason Clee",
                "Player.title": "Theater"
            }
        ]
    }
],
iharosi commented 4 years ago

Hi @moviemakr1620, Thanks for reporting, I'll take a look and get back to you.

iharosi commented 4 years ago

Hi @moviemakr1620,

Version 1.1.1 has been released to NPM. It will fix the issue. Thanks for reporting this bug!

moviemakr1620 commented 4 years ago

Thanks so much for responding so quickly! Didn’t know if I was just not doing something right.

clemons92 commented 3 years ago

Hello there,

I'm running v.1.1.1 of the plugin, however I'm experiencing this same issue! I would post my config file, but it looks the same as OPs. Any suggestions for me?

Log info: [12/7/2020, 5:52:31 AM] [Plex Sensor - Living Room] Checking the 1st ruleset: [12/7/2020, 5:52:31 AM] [Plex Sensor - Living Room] + Looking for "[my email here]" at "Account.title", found "[my email here]". [12/7/2020, 5:52:31 AM] [Plex Sensor - Living Room] + Looking for "Media Server" at "Server.title", found "Media Server". [12/7/2020, 5:52:31 AM] [Plex Sensor - Living Room] - Looking for "Living Room" at "Player.title", found "Great Room".

Accessory #1 named: Plex Sensor - Living Room, works fine. Accessory #2 named: Plex Sensor - Great Room and is never triggered, its seems as though the first sensor is the only one being validated.. the second sensor never gets the opportunity to check the ruleset and is not outputted in the log. The first accessory is the only one being validated.

Edit here's my config:

"accessories": [
        {
            "accessory": "PlexWebhooksServer",
            "name": "Plex Sensor - Living Room",
            "plex_token": "[my token here]",
            "port": "32401",
            "filter": [
                {
                    "Account.title": "[my email here]",
                    "Server.title": "Media Server",
                    "Player.title": "Living Room",
                    "Player.uuid": "[Device UUID]"
                }
            ]
        },
        {
            "accessory": "PlexWebhooksServer",
            "name": "Plex Sensor - Great Room",
            "plex_token": "[my token here]",
            "port": "32402",
            "filter": [
                {
                    "Account.title": "[my email here]",
                    "Server.title": "Media Server",
                    "Player.title": "Great Room",
                    "Player.uuid": "[Device UUID]"
                }
            ]
        }
    ],
iharosi commented 3 years ago

Hi! I really need to see your config before I can say anything. Could you please share yours?

clemons92 commented 3 years ago

Hi! I really need to see your config before I can say anything. Could you please share yours?

Absolutely, just updated my comment to include config file