Comments (6)
Hello everyone, the setOn is locked
is a preventive timing measure to make sure that the library that we use underneath and the communication with the Playstation works correctly.
What you're seeing then it may be happening because you're just "testing" the plugin and hammering the Playstation with burst of connections, and not using it like you should on a daily basis; something like an Heisenbug.
I've been using the plugin myself for many months now, and you can rest assured that unless you're hammering it, it should do the job.
Let me explain more technically: I observed many errors when trying to switch on/off the console via RemotePlay in a short burst of time; this is happening because the opening of the RemotePlay connection takes some time (is not persistent, as it won't be needed for this feature) - therefore whenever you want to switch on/off, we open a RemotePlay connection, send command and close.
Because this is happening over the Internet, negotiating the initial connection may take sometime; therefore to avoid having these errors and making sure that we don't overload the Playstation, whenever you turn the Playstation on/off via HomeKit, I've a put a 20s timeout that, in case of successful connection it will be released "immediately".
How much immediately really depends on many factor, but what I observed is around 6s to open the connection, send the command, cleanup resource and close connection.
Try it yourself: switch the Playstation On via HomeKit - wait around ~20s - and then try to switch it off; everything should work as expected.
from homebridge-playstation.
What I can try to do is explain this better is the error-message so that people are aware of this limitation :)
from homebridge-playstation.
Same issue
from homebridge-playstation.
same issue for me
from homebridge-playstation.
Same Issue.
from homebridge-playstation.
Hello everyone, the
setOn is locked
is a preventive timing measure to make sure that the library that we use underneath and the communication with the Playstation works correctly.What you're seeing then it may be happening because you're just "testing" the plugin and hammering the Playstation with burst of connections, and not using it like you should on a daily basis; something like an Heisenbug.
I've been using the plugin myself for many months now, and you can rest assured that unless you're hammering it, it should do the job.
Let me explain more technically: I observed many errors when trying to switch on/off the console via RemotePlay in a short burst of time; this is happening because the opening of the RemotePlay connection takes some time (is not persistent, as it won't be needed for this feature) - therefore whenever you want to switch on/off, we open a RemotePlay connection, send command and close.
Because this is happening over the Internet, negotiating the initial connection may take sometime; therefore to avoid having these errors and making sure that we don't overload the Playstation, whenever you turn the Playstation on/off via HomeKit, I've a put a 20s timeout that, in case of successful connection it will be released "immediately".
How much immediately really depends on many factor, but what I observed is around 6s to open the connection, send the command, cleanup resource and close connection.
Try it yourself: switch the Playstation On via HomeKit - wait around ~20s - and then try to switch it off; everything should work as expected.
Thank you for clarifying. It's helpful for users to understand the limitations of the plugin so to not label it as an issue.
Perhaps, it would be resourceful to add the limitations to README.md :)
from homebridge-playstation.
Related Issues (20)
- Will not show PS5 Homekit Code After Homebridge Reboot HOT 2
- Assessory not appearing after registering the app with playstation . HOT 1
- Homebridge is reporting a memory leak with this plugin [v1.6.0]
- After copying the URL when browser shows "redirect" where do I paste it?
- Homebridge password HOT 1
- Can't switch to homebridge user from Homebridge terminal. HOT 1
- In new iOS, TV box accessory require at least 1 input
- MaxListenersExceededWarning
- PlayStation5 wonβt turn off but turns on
- Unable to request credentials.
- TypeError: Cannot read properties of undefined (reading 'toUpperCase') HOT 5
- Update v.1.5.2. Bug HOT 3
- Multiple Devices PS4 & PS5, only 1 is responding. HOT 1
- Setup code conflict with other device HOT 4
- Since v1.5.0 PS5 Button is showing not on when it is on. HOT 2
- Incomplete setup - "Choose how you would like this set-top box to work in your home" HOT 4
- Playstation automatically disconnects after login HOT 3
- PS5 input keeps defaulting to '---' when on? HOT 5
- Cannot add PS5; HomeKit asking for input source? HOT 1
- Remote still will not turn off PS5 after 9+ months of this issue. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-playstation.