iharosi / homebridge-plex-webhooks

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

My occupancy sensor never goes back to inactive state #20

Closed jeronthenet23 closed 2 years ago

jeronthenet23 commented 2 years ago

Hopefully I am not duplicating a question here. Also, I am very new to this so please, go easy. I created a sensor that should go active when anything starts playing. It works great. My problem is that the sensor never goes inactive. I checked the logging and see that the filter criteria no longer matches but that still does not inactivate the sensor.

here is my config: { "name": "Plex Webhooks Platform", "sensors": [ { "name": "Movie Playing", "filters": [ [ { "path": "event", "value": "media.play" } ] ] } ], "verbose": true, "platform": "PlexWebhooks" }

here is the logging I noted (I left out a lot of filler information in the web hook that is irrelevant): [12/20/2021, 1:22:15 PM] [Plex Webhooks Platform] Checking filter rulesets of [Movie Playing] sensor: [12/20/2021, 1:22:15 PM] [Plex Webhooks Platform] > filter group #1 [12/20/2021, 1:22:15 PM] [Plex Webhooks Platform] + looking for "media.play" at "event", found "media.play" [12/20/2021, 1:22:15 PM] [Plex Webhooks Platform] [Movie Playing] is active

[12/20/2021, 2:01:43 PM] [Plex Webhooks Platform] {"event":"media.pause","user":true,"owner":true,"Account","type":"movie","librarySectionTitle":"Movies","librarySectionID":1,"librarySectionKey":"/library/sections/1", [12/20/2021, 2:01:43 PM] [Plex Webhooks Platform] Checking filter rulesets of [Movie Playing] sensor: [12/20/2021, 2:01:43 PM] [Plex Webhooks Platform] > filter group #1 [12/20/2021, 2:01:43 PM] [Plex Webhooks Platform] - looking for "media.play" at "event", found "media.pause"

The line "[12/20/2021, 1:22:15 PM] [Plex Webhooks Platform] [Movie Playing] is active" appears to make the sensor active. I assume I should see a line that inactivates the sensor but I never see that...

iharosi commented 2 years ago

This is a duplication of #13 so, closing.