kopiro / homebridge-playstation

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

Accessory Doesn't Appear When Trying to Add #11

Closed chrisdudek closed 2 years ago

chrisdudek commented 2 years ago

Describe Your Problem: I installed the previous version of this Plugin. When I was receiving connection errors as noted in a previous issue, I removed the plugin from Homebridge. I also remove the Bridge and Accessory from my Home app. With you latest update, I have now reinstalled the Plugin. I can get the Bridge added to the Home app, but the PS accessory does not show up in the list of available devices.

Logs:

Discovered device: { address: { address: '192.168.1.8', family: 'IPv4', port: XXXX, size: 170 }, hostRequestPort: 997, extras: { statusLine: '620 Server Standby', statusCode: '620', statusMessage: 'Server', status: 'STANDBY' }, discoveryVersion: '00030010', systemVersion: '09090001', id: 'XXXXXXXXXX, name: 'PS5-XXX', status: 'STANDBY', type: 'PS5' } [2/10/2022, 3:49:59 PM] PS5-XXX XXXE is running on port XXXXX. [2/10/2022, 3:49:59 PM] Please add [PS5-XXX XXXE] manually in Home app. Setup Code: XXX-XX-XXX

Plugin Config:

    {
        "pollInterval": 5000,
        "platform": "playstation",
        "_bridge": {
            "username": "XX:XX:XX:XX:XX:XX",
            "port": XXXXX
        }

**NOTE - the Port in the Config != the Port in my Homebridge Logs. Not sure if they are meant to match.

Environment:

conrad-fox commented 2 years ago

Hitting the exact same issue. It doesn't seem to show up as an available accessory anymore whereas previous versions it did

kopiro commented 2 years ago

Hey, can try to manually reset the cache and remove this accessory?

chrisdudek commented 2 years ago

Hey -

I went to Homebridge Settings --> Managed Cached Accessories --> Remove Single Cached Accessory. I then removed the PlayStation that was linked to cmd2 plugin. It is still not showing up in Home App after a restart of both the Child Bridge and the Homebridge.

That said, I did notice in Homebridge, if I go to Accessories, it shows the PS5 there. I don't know how to remove it there. Screen Shot 2022-02-11 at 8 58 13 AM

Are there other steps that need to be taken? I saw this on Reddit (https://www.reddit.com/r/HomeKit/comments/96kgrm/help_with_removing_accessories_from_homebridge/) and it talks about deleting the persist and accessories directories. I've never had to do this before when removing and reading bridges and accessories.

Any thoughts? Thanks.

chrisdudek commented 2 years ago

I was able to get it to work. After trying everything, I went into the Homebridge Terminal and removed all of the files in the Accessories and the Persist directories. Then I restarted Homebridge. After that, I was able to add the PS5 back into the Home app.

Now, I would probably recommend figuring out which files in each directory you need to remove rather than remove them all. I had to re-add all of my Homebridge accessories to HomeKit / Home app since they all showed as not responding. Luckily that was about 5-10 min of work to get back to where I was. But for others that don't want to go through that, try to find the files you need to remove and just delete those. Keep the ones of your existing accessories/bridges that are working.