The PS5 returns ping requests? Mind posting the sensor code?
Ofc a PS5 reacts to pings. Every computer out there (and the ps5 is no exception) reacts to pings.
For the code, its just
binary_sensor:
- platform: ping
host: (ip of your PS5) example 192.168.2.59
name: PS5
But wouldn’t this rely on the Ping command interval? Default is 5 mins according to the official documentation. I don’t think it’s wise to set automations that may be delayed up to 5 mins before firing.
I could set that for say, “5 seconds” but that seems like I’m sending out a whole lot of ping requests for this single purpose.
Im using an intervall of a minute, sorry, forgot to include it above. This intervall works for my xbox one and my pc like a charm. Tbh, i cant imagine an automation for my pc/console that needs to trigger as soon as i start it. 1 minute delay is for me a good balance between “not-flooding” my network and usability.
What do you want to automate with the console state as trigger? Im turning on my pc fans rgb (this controller was cheaper than getting a controller “for gamers” tm), lights on my desk and switching my amplifier to its pc input. On xbox start and pc off, im switching my amp to its console input.
If you really need a fast changing of the binary sensor, maybe its worth getting a smart wallplug with power monitoring. By measuring the power consumption you can get standby, idle and playing state, maybe even a state for just netflix. But i cant tell that for sure, since i dont have such a smart plug and no ps5, and i dont know if the situation of getting one has changed. I mean, its easier to complete a 10000 piecec puzzle than getting a ps5 or an rtx30xx graphics card haha.
Currently I’m obtaining the state of my receiver and when HA sees the receiver in “game mode” (that’s it’s output when the PS5 is on), and I’m home, and it’s daylight to lower a group of lutron shades, set the lighting, and play a clip from a song over a sonos area in the room.
I’m doing this through a custom sensor that gets the attribute from the network connected onyko-type receiver and there’s about a 5 second delay between when my receiver switches states and my HA fires the automations.
I have other automations for night time, turning off the PS5, etc so I was inquiring about the Ping method in an effort to reduce the latency between when my receiver reports its state and when HA begins the automation process.
Based on this conversation, I’m likely at the best speed/implementation now as I don’t really want to send out ping requests to my PS5 faster than 5 seconds, continuously, forever…
And I’m w/ you bro on the PS5/vid card availability. I had to buy both my PS5’s from scalpers on eBay…