alexjsp / homebridge-plex-sensors

Homebridge Sensors for Plex - a plugin for Homebridge to adds sensors triggered by Plex playbacks.
MIT License
110 stars 10 forks source link

Plex Smart Lights Sensor issue #23

Open stevy20 opened 2 years ago

stevy20 commented 2 years ago

I have setup homebridge and plex to trigger my 1 smart light in my bedroom to turn on and off when playing any media on my server. This works perfectly fine. But I want to set it to only happen when using my Google TV Stick and not my other devices such as my phone or other tvs. I am quite new to all this and have had some hel on this reddit thread and has helped me a biut but still not working.

https://www.reddit.com/r/homebridge/comments/wp2vzz/help_with_plex_smart_light_control/

My current Homebridge Config looks like this:

{
    "bridge": {
        "name": "Homebridge D849",
        "username": "0E:C1:47:69:D8:49",
        "port": 51195,
        "pin": "435-38-673",
        "advertiser": "avahi"
    },
    "accessories": [],
    "platforms": [
        {
            "platform": "homebridge-plex-sensors.Plex",
            "logSeenPlayersAndUsers": true,
            "sensors": [
                {
                    "name": "Movie Playing",
                    "types": [
                        "movie"
                    ],
                    "players": [
                        "Chromecast Google TV"
                    ],
                    "users": [
                        "stephenunderwood"
                    ]
                },
                {
                    "name": "TV Playing",
                    "types": [
                        "episode"
                    ],
                    "players": [
                        "Chromecast Google TV"
                    ],
                    "users": [
                        "stephenunderwood"
                    ]
                }
            ]
        },
        {
            "name": "Plex Webhooks Platform",
            "sensors": [
                {
                    "name": "PlexPi Light Connection"
                }
            ],
            "server": {
                "port": 32401,
                "address": "192.168.0.102"
            },
            "platform": "PlexWebhooks"
        },
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        }
    ]
}