Hi davorf,
thanks for your reply and the code cleaning. I had a look in the console and the output loks like this:
Oct 22, 2018 16:31:20.491 [0x7fb71726b700] Erweitert — * Host => 192-168-0-14.3af68f25ecb44a2d950c2577c8235fd8.plex.direct:32400
Oct 22, 2018 16:31:20.491 [0x7fb71726b700] Erweitert — * Accept-Encoding => deflate, gzip
Oct 22, 2018 16:31:20.491 [0x7fb71726b700] Erweitert — * Accept => text/plain, */*; q=0.01
Oct 22, 2018 16:31:20.491 [0x7fb71726b700] Erweitert — * Referer => https://plex.tv/web/tv/ps4-181
Oct 22, 2018 16:31:20.491 [0x7fb71726b700] Erweitert — * Origin => https://plex.tv
Oct 22, 2018 16:31:20.491 [0x7fb71726b700] Erweitert — * Accept-Language => en
Oct 22, 2018 16:31:20.491 [0x7fb71726b700] Erweitert — * User-Agent => Mozilla/5.0 (PlayStation 4) AppleWebKit/531.3 (KHTML, like Gecko) SCEE/1.0 Nuanti/2.0
Oct 22, 2018 16:31:20.491 [0x7fb71726b700] Erweitert — * X-Plex-Client-Identifier => myID
Oct 22, 2018 16:31:20.492 [0x7fb71726b700] Erweitert — * X-Plex-Device => PlayStation 4
Oct 22, 2018 16:31:20.492 [0x7fb71726b700] Erweitert — * X-Plex-Device-Screen-Resolution => 1280x720
Oct 22, 2018 16:31:20.492 [0x7fb71726b700] Erweitert — * X-Plex-No-Cache => 15402186772701179
Oct 22, 2018 16:31:20.492 [0x7fb71726b700] Erweitert — * X-Plex-Platform => WebMAF
Oct 22, 2018 16:31:20.492 [0x7fb71726b700] Erweitert — * X-Plex-Platform-Version => 01.81
Oct 22, 2018 16:31:20.492 [0x7fb71726b700] Erweitert — * X-Plex-Product => Plex for PlayStation 4
Oct 22, 2018 16:31:20.492 [0x7fb71726b700] Erweitert — * X-Plex-Session-Identifier => 1h10ams1iogox4wb41ogjl5m
Oct 22, 2018 16:31:20.492 [0x7fb71726b700] Erweitert — * X-Plex-Token => xxxxxxxxxxxxxxxxxxxx
Oct 22, 2018 16:31:20.492 [0x7fb71726b700] Erweitert — * X-Plex-Version => 3.13.25
Oct 22, 2018 16:31:20.492 [0x7fb71726b700] Erweitert — * hasMDE => 1
Oct 22, 2018 16:31:20.492 [0x7fb71726b700] Erweitert — * ratingKey => 3022
Oct 22, 2018 16:31:20.492 [0x7fb71726b700] Erweitert — * key => /library/metadata/3022
Oct 22, 2018 16:31:20.492 [0x7fb71726b700] Erweitert — * state => stopped
Oct 22, 2018 16:31:20.492 [0x7fb71726b700] Erweitert — * playQueueItemID => 496
Oct 22, 2018 16:31:20.492 [0x7fb71726b700] Erweitert — * time => 4473266
Oct 22, 2018 16:31:20.492 [0x7fb71726b700] Erweitert — * duration => 6041046
Oct 22, 2018 16:31:20.492 [0x7fb71726b700] Erweitert — * X-Plex-No-Cache => 15402186772701179
Oct 22, 2018 16:31:20.492 [0x7fb71726b700] Erweitert — * X-Plex-Client-Identifier => myID
Oct 22, 2018 16:31:20.492 [0x7fb71726b700] Erweitert — * X-Plex-Device-Screen-Resolution => 1280x720
Oct 22, 2018 16:31:20.492 [0x7fb71726b700] Erweitert — * X-Plex-Version => 3.13.25
Oct 22, 2018 16:31:20.492 [0x7fb71726b700] Erweitert — * X-Plex-Product => Plex for PlayStation 4
Oct 22, 2018 16:31:20.492 [0x7fb71726b700] Erweitert — * X-Plex-Platform => WebMAF
Oct 22, 2018 16:31:20.492 [0x7fb71726b700] Erweitert — * X-Plex-Platform-Version => 01.81
Oct 22, 2018 16:31:20.492 [0x7fb71726b700] Erweitert — * X-Plex-Device => PlayStation 4
Oct 22, 2018 16:31:20.492 [0x7fb71726b700] Erweitert — * X-Plex-Token => xxxxxxxxxxxxxxxxxxxx
Oct 22, 2018 16:31:20.492 [0x7fb71726b700] Erweitert — * X-Plex-Session-Identifier => mySessionID
Oct 22, 2018 16:31:20.493 [0x7fb71726b700] Fehlersuche — Client [mySessionID] reporting timeline state stopped, progress of 4473266/6041046ms for guid=, ratingKey=3022 url=, key=/library/metadata/3022, containerKey=, metadataId=3022
Oct 22, 2018 16:31:20.551 [0x7fb723d11700] Fehler — Error parsing allowedNetworks 'http:/192.168.0.14:8090': Invalid argument
Oct 22, 2018 16:31:20.551 [0x7fb723d11700] Fehler — Error parsing allowedNetworks 'http:/192.168.0.14:32400': Invalid argument
Oct 22, 2018 16:31:20.551 [0x7fb723d11700] Erweitert — Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
Oct 22, 2018 16:31:20.551 [0x7fb723d11700] Fehlersuche — Auth: authenticated user 1 as FluffyCake
Oct 22, 2018 16:31:20.551 [0x7fb723d11700] Erweitert — Auth: Came in with a super-token, authorization succeeded.
Oct 22, 2018 16:31:20.552 [0x7fb71c1a1700] Fehlersuche — Request: [192.168.0.25:59723 (Subnet)] GET /video/:/transcode/universal/stop?session=90lanc633k96tqwe7wdcvgdx (19 live) TLS GZIP Signed-in Token (FluffyCake)
Oct 22, 2018 16:31:20.552 [0x7fb71c1a1700] Erweitert — * Host => 192-168-0-14.3af68f25ecb44a2d950c2577c8235fd8.plex.direct:32400
I didnt’t see the logInfo(“PlexLight”, “Stopped”) in the Server log. Moreover I get these Error parsing allowedNetworks ‘http:/192.168.0.14:32400’: Invalid argument Exceptions I can’t really classify.
My plex.rules look now like this:
val Functions$Function1 dimLiving = [ int dimlevel |
sendCommand(EG_Wohnzimmer, dimlevel)
]
rule "Plex TV Status changed"
when
Item PlexTVStatus changed
then
if (PlexTVStatus.state == "Paused") {
logInfo("PlexLight", "Paused")
dimLiving.apply(80)
} else if (PlexTVStatus.state == "Stopped") {
logInfo("PlexLight", "Stopped")
dimLiving.apply(150)
} else {
logInfo("PlexLight", "Playing")
dimLiving.apply(10)
}
end
cheers
Udpate:
Both networks are defined in plex as no auth ip adresse, comma seperated
http://192.168.0.14:8090,http://192.168.0.14:32400
hope this helps
Update:
network problems solved the ip synthax was wrong, it’s:
192.168.0.14