iharosi / homebridge-plex-webhooks

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

Sensor never detect occupancy in HomeKit, despite matching criteria in HomeBridge logs #21

Closed wifiovermybody closed 2 years ago

wifiovermybody commented 2 years ago

Node.js version v16.13.1

Homebridge version Can be found on the Status page of Homebridge UI. v1.3.8

Plex Webhooks Server plugin version Can be found on the Plugin page of Homebridge UI. homebridge-plex-webhooks v2.1.2

Configuration

{
            "name": "Plex Webhooks Platform",
            "sensors": [
                {
                    "name": "admin plex play",
                    "filters": [
                        [
                            {
                                "path": "user",
                                "value": "admin"
                            },
                            {
                                "path": "Metadata.type",
                                "value": "movie"
                            }
                        ]
                    ]
                }
            ],
            "server": {
                "port": 32401,
                "address": "10.0.0.12"
            },
            "verbose": true,
            "platform": "PlexWebhooks"
        }

Error message

Sensor never detect occupancy in HomeKit, despite matching criteria in HomeBridge logs

[12/25/2021, 8:48:27 PM] [Plex Webhooks Platform] Checking filter rulesets of [admin plex play] sensor:
[12/25/2021, 8:48:27 PM] [Plex Webhooks Platform]  > filter group #1
[12/25/2021, 8:48:27 PM] [Plex Webhooks Platform]  - looking for "admin" at "user", found "true"
[12/25/2021, 8:48:27 PM] [Plex Webhooks Platform]  + looking for "movie" at "Metadata.type", found "movie"

Payload

Additional info I had it working successfully with you plex-v2 plugin - sensor lit up as occupied no problem.

iharosi commented 2 years ago

‘’’ [12/25/2021, 8:48:27 PM] [Plex Webhooks Platform] - looking for "admin" at "user", found "true" ‘’’ This is not matching.