diff --git a/Contents/Code/__init__.py b/Contents/Code/__init__.py index 6250945..40ace4e 100755 --- a/Contents/Code/__init__.py +++ b/Contents/Code/__init__.py @@ -1156,7 +1156,7 @@ def is_plex_playing(plex_status): somethingwasdone = False for item in plex_status.findall('Video'): for room, client_name in configuredclients.iteritems(): - if item.find('Player').get('title') == client_name: + if item.find('Player').get('title') == client_name or item.find('Player').get('product') == client_name: client_name_room = client_name + str(room) if not client_name_room in ACTIVE_CLIENTS: ACTIVE_CLIENTS.append(client_name_room) diff --git a/README.md b/README.md index 7f12b4e..d939d5e 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ One room is composed of **one client**, **one or multiple users** and **one or m * ```Preset 1, brightness:``` brightness value for lights preset 1. * ... * ```Activate HelloHue in room 1``` Tick to activate room 1 (and fill the client, users and lights settings for room 1). -* ```Name of plex client able to trigger in room 1``` You can find the list of users in PMS -> settings -> devices. Only put ONE client per room. If your have two clients in the same room, activate an other room and fill the settings with the other clients name and the same lights names. +* ```Name of plex client able to trigger in room 1``` You can find the list of users in PMS -> settings -> devices. Only put ONE client per room. If your have two clients in the same room, activate an other room and fill the settings with the other clients name and the same lights names. If your device does not work because it does not provide a valid title like the PS4, you can use the product name instead. * ```Name of the users able to trigger in room 1``` You can find the list of users in PMS -> settings -> users -> myhome. You can put multiple users (comma separated values, case sensitive). * ```Name of the lights to trigger in room 1``` is the list of lights that will be triggered in room 1. You can put multiple users (comma separated values, case sensitive). * ```When a media is playing in room 1``` is the action that will fire when a media is playing in room 1.