Playstation integration for Homebridge / HOOBS.

Overview

Homebridge Playstation

Playstation integration for Homebridge / HOOBS.

Hey Siri, turn on Playstation finally possible!

IMG_2114

This integration exposes a Switch service that can be used to switch on/off your PS4/PS5, and determine its current state.

Most of the work is done by the amazing playactor library, which this project depends on.

Installation

You can install it via Homebridge UI or manually using:

npm -g install homebridge-playstation

Configuration

Before doing anything, switch on your PlayStation.

Now you need to configure PlayActor and follow the authentication process provided by the library; to do so, open the terminal in the HomeBridge UI (make sure you don't run these commands as root, you need to run them as homebridge user!) and run:

homebridge-playstation-login

Open the authorization link provided, authenticate it using your PSN account, and copy the URL when the page shows "redirect" in the terminal.

Once you've done that, go to Settings > System > Remote Play > Link Device and provide the PIN code.

Now just restart the HomeBridge instance, and add your fresh new PlayStation as extra accessory using "Add Accessory" in the Home app.

Parameters

  • pollInterval: Determine how often should informations be fetched (in milliseconds)
Comments
  • Help

    Help

    Hi, can you help me with this problem ? Everytime i press the button in home app in HB log writes "[playstation] Unable to request credentials" and nothing happens. I have latest version o you plugin. Thanks for reply :)

    question 
    opened by HellJohny 6
  • Second screen unable to see PlayActor w/ Homebridge running in Docker

    Second screen unable to see PlayActor w/ Homebridge running in Docker

    Describe Your Problem: I am running homebridge in a Docker container. The second screen app cannot see any device called PlayActor and hence I cannot continue with the setup.

    Logs:

    Nothing of importance
    

    Plugin Config:

    Nothing of importance as I fail to setup the plugin
    

    Environment:

    • Plugin Version: 1.4.1
    • Homebridge Version: 1.4.0
    • Node.js Version: 16.13.2
    • NPM Version: 8.1.2
    • Operating System: Docker
    question 
    opened by bjoernmayer 5
  • Multiple PlayStation ?

    Multiple PlayStation ?

    Hello, How can I add multiple PlayStation devices. I have a PS4 and a PS5 on the same network. Following the instructions, my PS4 gets added automatically but not the PS5. For information I already use PS4 waker platform plugin for my PS4 and playactor with Cmdswitch2 plugin for my PS5... but I got some malfunction now and then so I hoped to get a plugin to control both smoothly. Also, when i log into playactor it didn't send me to Sony web page for login but I think it is because my credentials are already saved because of previous configuration...

    enhancement 
    opened by mesoblaste 5
  • homebridge terminal user password?

    homebridge terminal user password?

    Describe Your Problem:

    when running the install command in the homebridge terminal window, a password is required, even though no password is set for the homebridge user.

    :/var/lib/homebridge$ homebridge-playstation-login No credentials for PSSystem and unable to request (need root permissions). Attempting to request root permissions now (we will relinquish them as soon as possible)... [sudo] password for homebridge: Logs:

    Show the Homebridge logs here, remove any sensitive information.
    

    Plugin Config:

    Show your Homebridge config.json here, remove any sensitive information.
    

    Screenshots:

    Environment:

    • Plugin Version:
    • Homebridge Version:
    • Node.js Version:
    • NPM Version:
    • Operating System: elementary Loki (0.4.1 Loki)
    question 
    opened by DifferentComputers 4
  • Siri is confused :)

    Siri is confused :)

    https://github.com/kopiro/homebridge-playstation/issues/1#issuecomment-1033099339 one thing I’ve noticed. When I’m saying “hey Siri, turn on the tv” PlayStation is also turning on when the accessory type is set top box :(

    enhancement question 
    opened by adamrzanek 4
  • Accessory Doesn't Appear When Trying to Add

    Accessory Doesn't Appear When Trying to Add

    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:

    • Plugin Version: homebridge-playstation [v1.2.2]
    • Homebridge Version: [v1.4.0]
    • Node.js Version: [v16.13.2]
    • NPM Version: [v8.1.2]
    • Operating System: Raspbian GNU/Linux Buster (10)
    question 
    opened by chrisdudek 4
  • Change device type

    Change device type

    Hello !

    I was trying to add my PS5 to HomeKit, i found the playactor guide and then your plugin. Great work ! Is it possible to change the device type of the switch created by the plugin ?

    For example, with https://github.com/unknownskl/homebridge-smartglass, the Xbox shows as a "set-top-box" with a nice icon in Homebridge Capture d’écran 2022-02-08 à 18 27 05

    Thx !

    enhancement 
    opened by n0tkazz 4
  • Configuration code ?

    Configuration code ?

    Hello again, When trying to add my PS4 in HomeKit through add accessory, the PS4 is detected alright but I'm asked for the HomeKit configuration code (8-digits), what should I used? It didn't work using the pin code provided by PS4 system in add a peripheral for remote play...

    opened by mesoblaste 2
  • Has to be in Rest Mode?

    Has to be in Rest Mode?

    Hello, does the PS5 have to stay in Rest Mode in order for this plugin to work or does this plugin turn the PS5 on even when it’s completely off? Thank you.

    enhancement 
    opened by FranciRoosters 1
  • Can't add the PS5 to homekit

    Can't add the PS5 to homekit

    Hi there

    So did all the steps and rightly so the PS5 is shown as a device to add in HomeKit, but when I try to enter the code it tells me its wrong.

    Im using Hoobs in a box :)

    opened by pellehebs 1
  • multiple playstations dont appear in apple home

    multiple playstations dont appear in apple home

    This is a great feature. I had to deactivate the plugin because I have a PS4 and a PS5 and I used cmdswitch2 with Playactor instead but I prefer this plugin because the PlayStation appear as set top box. I just reactivate the plugin and deactivate cmdswitch2 to test it. It works really fine in homebridge as my two PlayStation are discovered in homebridge accessories, and I get two messages in log at homebridge reboot that ask to add manually in homebridge, one for the PS4 and one for the PS5. In homebridge, turning on/off the PS4/PS5 works smoothly. The problem is that they are not discovered in Apple Home...

    Did i missed a step?

    I remember before it was compatible with multiple PlayStation the plugin showed one of my 2 PlayStations in Apple home and I could add it...

    Originally posted by @mesoblaste in https://github.com/kopiro/homebridge-playstation/pull/22#issuecomment-1071207440

    opened by mesoblaste 1
  • Plugin without response :

    Plugin without response :

    Great plugin that allows you to see if a console is in rest mode or in use. Unfortunately, if it is completely off, this creates an error (without response) in Homekit. It would have been really great if the Ping does not respond the plugin interprets that as console off. I hope to see this improvement in a future update!

    enhancement 
    opened by Stewart06 0
  • Unable to request credentials error

    Unable to request credentials error

    it shows the status of my ps5 being on or off but whenever i try to use homekit to turn it on or off it just says "Unable to request credentials"

    I am very new to this and have no clue whats wrong but if I had to guess its something with playactor I don't have terminal access on homebridge on windows and I'm not sure I installed it in the correct place

    question 
    opened by GaintPumpkinz 1
  • PS5 remote

    PS5 remote

    I've noticed this plugin also adds the playstation as a selectable device to control in the control center remote image

    I can't get it to work though, am I missing something? Or is this not a supported feature? If not, can it be added? Could be really nice as a media remote

    enhancement 
    opened by Aransh 1
  • Registration error: 403: Forbidden: Other Error

    Registration error: 403: Forbidden: Other Error

    Describe Your Problem: I keep receiving the message "Registration error: 403: Forbidden: Other Error" while going through the process under the Homebridge Terminal.

    Any idea here?

    Appreciate your help. Thanks!

    Logs:

    pi@homebridge:/var/lib/homebridge $ homebridge-playstation-login
    Discovered device: {
      address: { address: '192.168.1.141', family: 'IPv4', port: 9302, size: 162 },
      hostRequestPort: 997,
      extras: {
        statusLine: '200 Ok',
        statusCode: '200',
        statusMessage: 'Ok',
        status: 'AWAKE'
      },
      discoveryVersion: '00030010',
      systemVersion: '06020004',
      id: '70662AA0B52F',
      name: 'Playstation',
      status: 'AWAKE',
      type: 'PS5'
    }
    Authenticate to Playstation? (y/n) y
    Connecting to <70662AA0B52F>...
    Registration error: 403: Forbidden: Other Error
    
    Discovering next device...
    

    Plugin Config:

    
        "pollInterval": 5000,
        "platform": "playstation"
    }
    
    • Plugin Version: v1.4.2
    • Homebridge Version: v1.5.1
    • Node.js Version:
    • NPM Version:
    • Operating System:
    question 
    opened by Recks247 0
  • Bump minimatch from 3.0.4 to 3.1.2

    Bump minimatch from 3.0.4 to 3.1.2

    Bumps minimatch from 3.0.4 to 3.1.2.

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • Unable to complete setup on Synology Docker

    Unable to complete setup on Synology Docker

    I was able to successfully complete auth via homebridge-playstation-login:

    root@hombridge: homebridge-playstation-login
    Discovered device: {
      address: { address: '192.168.X.Y', family: 'IPv4', port: 9302, size: 170 },
      hostRequestPort: 997,
      extras: {
        statusLine: '620 Server Standby',
        statusCode: '620',
        statusMessage: 'Server',
        status: 'STANDBY'
      },
      discoveryVersion: '00030010',
      systemVersion: '06020004',
      id: 'ABCDEF',
      name: 'PS5-XYZ',
      status: 'STANDBY',
      type: 'PS5'
    }
    Authenticate to PS5-XYZ? (y/n) y
    Connecting to <ABCDEF>... // PS5 turns on at this point
    Connection successful, wait a bit so we can safely close the connection...
    
    Discovering next device...
    
    Please restart Homebridge now!
    

    However, I don't see the "Please add [PS5 XYZ] manually in Home app. Setup Code: 111-22-333" message post-reboot.

    In the logs post-reboot:

    root@homebridge:/var/lib/homebridge $ grep -i playstation /var/lib/homebridge/homebridge.log 
    [10/22/2022, 4:58:10 PM] Loaded plugin: [email protected]
    [10/22/2022, 4:58:10 PM] Registering platform 'homebridge-playstation.playstation'
    root@homebridge:/var/lib/homebridge $ grep -i ps5 /var/lib/homebridge/homebridge.log
    root@homebridge:/var/lib/homebridge $ 
    

    Homebridge version: 1.5.0 Plugin version: 1.4.2 DSM: 6

    opened by ebfg 1
Releases(v1.4.2)
  • v1.4.2(Jun 28, 2022)

    What's Changed

    • Bump minimist from 1.2.5 to 1.2.6 by @dependabot in https://github.com/kopiro/homebridge-playstation/pull/28
    • Bump ansi-regex from 3.0.0 to 3.0.1 by @dependabot in https://github.com/kopiro/homebridge-playstation/pull/29
    • Better messaging in CLI by @kopiro in https://github.com/kopiro/homebridge-playstation/pull/35
    • Using ConfiguredName char by @kopiro in https://github.com/kopiro/homebridge-playstation/pull/42

    New Contributors

    • @dependabot made their first contribution in https://github.com/kopiro/homebridge-playstation/pull/28

    Full Changelog: https://github.com/kopiro/homebridge-playstation/compare/v1.4.1...v1.4.2

    Source code(tar.gz)
    Source code(zip)
  • v1.4.1(Mar 9, 2022)

  • v1.4.0(Mar 9, 2022)

    What's Changed

    • Support multiple playstations by @grelca in https://github.com/kopiro/homebridge-playstation/pull/22

    New Contributors

    • @grelca made their first contribution in https://github.com/kopiro/homebridge-playstation/pull/22

    Full Changelog: https://github.com/kopiro/homebridge-playstation/compare/v1.3.1...v1.4.0

    Source code(tar.gz)
    Source code(zip)
  • v1.3.1(Feb 22, 2022)

    What's Changed

    • Upgrading playactor to 0.4.1 by @kopiro in https://github.com/kopiro/homebridge-playstation/pull/16

    Full Changelog: https://github.com/kopiro/homebridge-playstation/compare/v1.3.0...v1.3.1

    Source code(tar.gz)
    Source code(zip)
  • v1.3.0(Feb 11, 2022)

    If you try to turn off the PS5 when the PS5 is already off (for example by setting a scene that turns off PS5, or via Siri); the connection to device would be opened (and therefore waking up) and then it would be put in standby. We don't want that as PS5 is already in desidered state, therefore we can skip opening the connection at all.

    Full Changelog: https://github.com/kopiro/homebridge-playstation/compare/v1.2.2...v1.3.0

    Source code(tar.gz)
    Source code(zip)
  • v1.2.2(Feb 10, 2022)

    • Fixed an issue that was causing PS5 to be woken up whenever Homebridge restarts
    • Fixed a problem that was preventing people to rename the accessory in the Home app
    • Addressing https://github.com/dhleong/playactor/issues/46
    Source code(tar.gz)
    Source code(zip)
  • v1.1.0(Feb 8, 2022)

    What's Changed

    • Better lock mechanisms by @kopiro in https://github.com/kopiro/homebridge-playstation/pull/2
    • Use TV_SET_TOP_BOX as category by @kopiro in https://github.com/kopiro/homebridge-playstation/pull/3

    New Contributors

    • @kopiro made their first contribution in https://github.com/kopiro/homebridge-playstation/pull/2

    Full Changelog: https://github.com/kopiro/homebridge-playstation/compare/v1.0.0...v1.1.0

    Source code(tar.gz)
    Source code(zip)
  • v1.0.0(Feb 8, 2022)

Owner
Flavio De Stefano
Senior Engineer living in Stockholm
Flavio De Stefano
La extensión web que muestra el precio de los juegos de la web de Xbox, PlayStation, Nintendo y Epic Games Store con los impuestos de Argentina incluidos. Conocé cuanto vas a pagar por tus juegos 💚💙❤️

Conocido anteriormente como Xboxito Impuestito - Conocé el precio real de los juegos Impuestito calcula y muestra el precio de los juegos de la web de

Luke ✨ 23 Dec 4, 2022
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
Connect Web Integration illustrates the integration of Connect-Web in various JS frameworks and tooling

Connect Web Integration Connect Web Integration is a repository of example projects using Connect-Web with various JS frameworks and tooling. It provi

Buf 43 Dec 29, 2022
A homebridge plugin to display the current consumption from your Tibber pulse as lux in Home kit.

homebridge-tibber-lightsensor Tibber lightsensor is a plugin for Homebridge. It fetches the current watt usage of your house and displays it as a ligh

Johan Runbert 2 Oct 11, 2022
This is a Homebridge plugin that adds HomeKit support to Tidbyt devices.

Tidbyt Platform Plugin This is a Homebridge plugin that adds HomeKit support to Tidbyt devices. Built with node-tidbyt. This project is not endorsed o

Nicholas Penree 18 Nov 20, 2022
🏠 Homebridge plugin for SmartRent installations

Homebridge SmartRent Unofficial Homebridge plugin for SmartRent, allowing you to control your SmartRent devices with Apple Home. ?? Supported Devices

Grant Burry 8 Aug 12, 2022
Homebridge plugin exposes to Apple's HomeKit devices

This Homebridge plugin exposes to Apple's HomeKit devices (lights, plugs, sensors, switches, ...) and virtual devices on a Crestron professor. Homebridge Crestron communicates with TCP.

null 23 Nov 21, 2022
Example-browserstack-reporting - This repository contains an example of running Selenium tests and reporting BrowserStack test results, including full CI pipeline integration.

BrowserStack reporting and Selenium test result example This repository contains an example of running Selenium tests and reporting BrowserStack test

Testmo 1 Jan 1, 2022
Runs various integration tests for the composable picasso parachain.

Picasso Integration Tester Picasso Integration Tester is a collection of different implementation tests for the Picasso Polkadot Parachain. Installati

Dominik Roth 0 Jan 11, 2022
🔐 Lambda Authorizer ready for integration with Serverless Framework and Auth0.

Getting started 1. Clone the repository (or generate a serverless project) sls create --name auth-service --template-url https://github.com/GustavoNor

Gustavo Noronha 2 Feb 10, 2022
A Next.js 12 integration of GraphQL Server.

This is a Next.js 12 integration of GraphQL Server. It is early work and has not been extensively tested in production. It is based on samples provide

Arthur Puyou 15 Dec 29, 2022
Example Serverless DynamoDB integration tests using Jest, TypeScript and the AWS CDK

serverless dynamodb integration tests ?? Example Serverless DynamoDB integration tests using Jest, TypeScript and the AWS CDK Introduction How to inte

Lee Gilmore 8 Nov 4, 2022
Integration of WebSlides and Markdown.

WebSlides.md 集成 WebSlides 和 Markdown。 这个项目做什么用? 简单来说当然是在线分享PPT(Slides)(手动狗头)。 具体来说就是你可以用任意一个简单的、在线能够运行 Web 代码的 Playground 环境来当做 PPT 制作工具来写你的 PPT,比如 Co

稀土 8 Oct 10, 2022
This plugin allows for basic integration with Raindrop.io, a bookmarking service and Obsidian.

Obsidian Raindrop Plugin This plugin allows for basic integration with Raindrop.io, a bookmarking service and Obsidian. Current Features Create a code

null 108 Jan 7, 2023
Node.js TypeScript project demonstrating a Prisma integration with PostgreSQL

Prisma with PostgreSQL, TypeScript, Serverless and Parameter Store This project is the outcome of following the Prisma Getting Started guide. In addit

Christian Rich 10 Aug 28, 2022
Hardhat plugin for integration with hethers.js

hardhat-hethers Hardhat plugin for integration with hethers.js. What This plugin brings to Hardhat the Hedera library hethers.js, which allows you to

null 10 Sep 21, 2022
Mi Band/Amazfit heart rate monitor with OSC integration for VRChat

Mi Band/Amazfit OSC heart rate monitor for VRChat By Vard Based on Jaapp-'s miband-5-heart-rate-monitor and gzalo's miband-6-heart-rate-monitor Thanks

Vard 34 Jan 1, 2023