Closed dkoblar closed 3 years ago
Hi @dkoblar, Could you please update the plugin to the latest version, restart Hoembridge and try again?
Hi @iharosi Thanks for quick reply. You mean Plex webhooks plugin in Hoobs? It is up to date: Plex Webhooks 2.1.0 published 12/25/2020 • 4 days ago
In that case just restart Homebridge/Hoobs and try again.
I have also tried restarting service multiple times, but there is no difference. I also tried rebooting the complete device just now, but I get the same error:
29. 12. 2020 13:33:49 [Plex Webhooks Platform] Checking filter rulesets of [Plex Movie] sensor:
29. 12. 2020 13:33:49 [Plex Webhooks Platform] > filter group #1
29. 12. 2020 13:33:49 [Plex Webhooks Platform] + looking for "movie" at "Metadata.librarySectionType", found "movie"
29. 12. 2020 13:33:49 [Plex Webhooks Platform] Checking filter rulesets of [Plex Show] sensor:
29. 12. 2020 13:33:49 [Plex Webhooks Platform] > filter group #1
29. 12. 2020 13:33:49 [Plex Webhooks Platform] - looking for "show" at "Metadata.librarySectionType", found "movie"
29. 12. 2020 13:33:49 [Plex Webhooks Platform] Error: context.setState is missing
at /home/hoobs/.hoobs/node_modules/homebridge-plex-webhooks/lib/platform.js:113:24
at Array.forEach (<anonymous>)
at PlexWebhooksPlatform._processPayload (/home/hoobs/.hoobs/node_modules/homebridge-plex-webhooks/lib/platform.js:106:8)
at /home/hoobs/.hoobs/node_modules/homebridge-plex-webhooks/lib/server.js:38:7
at Layer.handle [as handle_request] (/home/hoobs/.hoobs/node_modules/express/lib/router/layer.js:95:5)
at next (/home/hoobs/.hoobs/node_modules/express/lib/router/route.js:137:13)
at Array.<anonymous> (/home/hoobs/.hoobs/node_modules/multer/lib/make-middleware.js:53:37)
at listener (/home/hoobs/.hoobs/node_modules/on-finished/index.js:169:15)
at onFinish (/home/hoobs/.hoobs/node_modules/on-finished/index.js:100:5)
at callback (/home/hoobs/.hoobs/node_modules/ee-first/index.js:55:10)
at IncomingMessage.onevent (/home/hoobs/.hoobs/node_modules/ee-first/index.js:93:5)
at IncomingMessage.emit (events.js:215:7)
at endReadableNT (_stream_readable.js:1184:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
29. 12. 2020 13:33:49 [Plex Webhooks Platform] One of your sensor did not register properly, please restart your homebridge server!
29. 12. 2020 13:33:49 [Plex Webhooks Platform] In case you're still having this error, please raise a ticket: https://github.com/iharosi/homebridge-plex-webhooks/issues
Unfortunately this is happening because you've had a previus version of this plugin most probably. You can fix this with the following steps:
Hopefully, with this the occupancy sensors will be re-registered in homebridge. Please let me know if it solves your issue!
I have figured it out.
The advice below did not help.
I had to delete the plug in and reinstall it. After reinstalling I pasted the same config and it started working.
Glad to hear it! Thanks for reporting!
Reopening as turned out this is a bug in the plugin.
Hello, I am having problems with integration of plex webhooks inside hoobs.
I have set up a configuration in Hoobs under sensors:
And when I start a movie the sensor on Apple Home app does not show as occupied. (I see the sensor but it occupancy is not detected).
When I check the log file in Hoobs I get:
Since I am playing a Movie in plex I am focused on this lines from the log file:
Can you please help me what am I doing wrong. As it looks to me apparently I am not providing a setState?