iharosi / homebridge-plex-webhooks

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

Sensor Not Activating, Despite Log Stating Is Activate #26

Closed Garywoo closed 2 years ago

Garywoo commented 2 years ago

Node.js version

Homebridge version

Plex Webhooks Server plugin version

Configuration

{
    "name": "Plex Webhooks Platform",
    "sensors": [
        {
            "name": "Movie Playing in Living Room",
            "filters": [
                [
                    {
                        "path": "Metadata.type",
                        "value": "movie"
                    },
                    {
                        "path": "Player.title",
                        "value": "Apple TV - Living Room"
                    },
                    {
                        "path": "Account.title",
                        "value": "Garywoo"
                    }
                ]
            ]
        },
        {
            "name": "TV Playing in Living Room",
            "filters": [
                [
                    {
                        "path": "Metadata.type",
                        "value": "episode"
                    },
                    {
                        "path": "Player.title",
                        "value": "Apple TV - Living Room"
                    },
                    {
                        "path": "Account.title",
                        "value": "Garywoo"
                    }
                ]
            ]
        },
        {
            "name": "Plex Playing in Bedroom",
            "filters": [
                [
                    {
                        "path": "Metadata.type",
                        "value": "movie"
                    },
                    {
                        "path": "Player.title",
                        "value": "Apple TV - Bedroom"
                    },
                    {
                        "path": "Account.title",
                        "value": "Garywoo"
                    }
                ],
                [
                    {
                        "path": "Metadata.type",
                        "value": "episode"
                    },
                    {
                        "path": "Player.title",
                        "value": "Apple TV - Bedroom"
                    },
                    {
                        "path": "Account.title",
                        "value": "Garywoo"
                    }
                ]
            ]
        },
        {
            "name": "Plex Playing in Kitchen",
            "filters": [
                [
                    {
                        "path": "Metadata.type",
                        "value": "movie"
                    },
                    {
                        "path": "Player.title",
                        "value": "Apple TV - Kitchen"
                    },
                    {
                        "path": "Account.title",
                        "value": "Garywoo"
                    }
                ],
                [
                    {
                        "path": "Metadata.type",
                        "value": "episode"
                    },
                    {
                        "path": "Player.title",
                        "value": "Apple TV - Kitchen"
                    },
                    {
                        "path": "Account.title",
                        "value": "Garywoo"
                    }
                ]
            ]
        }
    ],
    "server": {
        "port": 22987
    },
    "verbose": true,
    "platform": "PlexWebhooks"
}

Log

[18/05/2022, 22:26:47] [Plex Webhooks Platform] Checking filter rulesets of [Movie Playing in Living Room] sensor:
[18/05/2022, 22:26:47] [Plex Webhooks Platform]  > filter group #1
[18/05/2022, 22:26:47] [Plex Webhooks Platform]  - looking for "movie" at "Metadata.type", found "episode"
[18/05/2022, 22:26:47] [Plex Webhooks Platform]  - looking for "Apple TV - Living Room" at "Player.title", found "Apple TV - Kitchen"
[18/05/2022, 22:26:47] [Plex Webhooks Platform]  + looking for "Garywoo" at "Account.title", found "Garywoo"
[18/05/2022, 22:26:47] [Plex Webhooks Platform] Checking filter rulesets of [TV Playing in Living Room] sensor:
[18/05/2022, 22:26:47] [Plex Webhooks Platform]  > filter group #1
[18/05/2022, 22:26:47] [Plex Webhooks Platform]  + looking for "episode" at "Metadata.type", found "episode"
[18/05/2022, 22:26:47] [Plex Webhooks Platform]  - looking for "Apple TV - Living Room" at "Player.title", found "Apple TV - Kitchen"
[18/05/2022, 22:26:47] [Plex Webhooks Platform]  + looking for "Garywoo" at "Account.title", found "Garywoo"
[18/05/2022, 22:26:47] [Plex Webhooks Platform] Checking filter rulesets of [Plex Playing in Bedroom] sensor:
[18/05/2022, 22:26:47] [Plex Webhooks Platform]  > filter group #1
[18/05/2022, 22:26:47] [Plex Webhooks Platform]  - looking for "movie" at "Metadata.type", found "episode"
[18/05/2022, 22:26:47] [Plex Webhooks Platform]  - looking for "Apple TV - Bedroom" at "Player.title", found "Apple TV - Kitchen"
[18/05/2022, 22:26:47] [Plex Webhooks Platform]  + looking for "Garywoo" at "Account.title", found "Garywoo"
[18/05/2022, 22:26:47] [Plex Webhooks Platform]  > filter group #2
[18/05/2022, 22:26:47] [Plex Webhooks Platform]  + looking for "episode" at "Metadata.type", found "episode"
[18/05/2022, 22:26:47] [Plex Webhooks Platform]  - looking for "Apple TV - Bedroom" at "Player.title", found "Apple TV - Kitchen"
[18/05/2022, 22:26:47] [Plex Webhooks Platform]  + looking for "Garywoo" at "Account.title", found "Garywoo"
[18/05/2022, 22:26:47] [Plex Webhooks Platform] Checking filter rulesets of [Plex Playing in Kitchen] sensor:
[18/05/2022, 22:26:47] [Plex Webhooks Platform]  > filter group #1
[18/05/2022, 22:26:47] [Plex Webhooks Platform]  - looking for "movie" at "Metadata.type", found "episode"
[18/05/2022, 22:26:47] [Plex Webhooks Platform]  + looking for "Apple TV - Kitchen" at "Player.title", found "Apple TV - Kitchen"
[18/05/2022, 22:26:47] [Plex Webhooks Platform]  + looking for "Garywoo" at "Account.title", found "Garywoo"
[18/05/2022, 22:26:47] [Plex Webhooks Platform]  > filter group #2
[18/05/2022, 22:26:47] [Plex Webhooks Platform]  + looking for "episode" at "Metadata.type", found "episode"
[18/05/2022, 22:26:47] [Plex Webhooks Platform]  + looking for "Apple TV - Kitchen" at "Player.title", found "Apple TV - Kitchen"
[18/05/2022, 22:26:47] [Plex Webhooks Platform]  + looking for "Garywoo" at "Account.title", found "Garywoo"
[18/05/2022, 22:26:47] [Plex Webhooks Platform] [Plex Playing in Kitchen] is active

Additional info The sensors appear in the Home app, however they never update when the filter is matched. They also don't update in the 'Accessories' tab of Homebridge. I was previously running the Homebridge Plex Sensors plugin, however was having similar issues where the sensors never triggered. Any ideas why this could be?

iharosi commented 2 years ago

This is a strange one. Looking at the logs the plugin is working as expected. I'm not sure why your home sensors are not triggering. Because I was experiencing other strange issues in Home app I suggest you to create a new Home and add the sensors there and try once again. However, I'm pretty sure this issue is not related to this plugin.