kopiro / homebridge-playstation

Playstation integration for Homebridge / HOOBS.
Apache License 2.0
97 stars 9 forks source link

Homebridge Log says Unable to Locate Device every two minutes #41

Closed DaveM8686 closed 1 year ago

DaveM8686 commented 2 years ago

Describe The Bug: When the PS5 is in sleep mode, I get this error every two minutes in the Homebridge log: [6/28/2022, 4:25:29 PM] [playstation] Unable to locate device: with id [xxxxxxx] (blanked out for security)

This seems to have started since the PS5 turned off at the power point while in sleep mode (unintentionally).

It is also stopping the PS5 from being able to be turned on by Homebridge. I've tried removing and readding the plugin repeatedly with no luck. I think I need to be able to fully start the authentication process over, but each time I try that it remembers it from last time and never asks for the pin. How can I get this to forget the authentication so I can start over?

To Reproduce: Unsure, but possibly shut down PS5 incorrectly?

Expected behavior: This log to not appear

Logs: [6/28/2022, 4:25:29 PM] [playstation] Unable to locate device: with id [xxxxxxx]

Plugin Config:

{
            "pollInterval": 5000,
            "platform": "playstation"
        }

Screenshots: N/A

Environment:

DaveM8686 commented 2 years ago

Soooo...this may no longer be an issue. I had a Tuya light and the Tuya-Web plugin that was constantly throwing errors from the light. I've removed the light and plugin completely, and now the PS5 seems to be working perfectly ever since. Maybe coincidence, maybe the Tuya plugin was somehow stopping this one from working.

Bat-Maniac commented 1 year ago

I think there is a bug with the poll interval. Since I've changed it to 15000 ms this warning is gone.

{
   "pollInterval": 15000,
   "platform": "playstation"
}