Hi,
when my Playstation 4 is turned off, it goes into the state "standby" which is regarded as "idle" by the mini-player and therefor the power-status indicates it is on.
Btw. home-assistant also wrongly regards STATE_STANDBY as "on" in general, which leads to the toggle-feature being broken, because it always tries to turn it off from standby. But turn_off for Playstation maps to standby.
Could you add standby to be regarded as off?
Just read about, #208 and setting idle_view seems to fix the indicator issue:
idle_view:
when_standby: true
Maybe the docs could mention to set this for Playstation 4?
Hello,
Glad you figured it out.
Yes standby is a bit awkward in HA and can mean different things depending on platform and component. That's why I opted for the optional idle view for standby and same for idle.
Yes, we could probably change the option description to describe the option better.
Feel free to create a PR too the readme if you come up with a better description.
Thanks!
Hi,
I will have a look into it and see what I can come up with. But still there remains the broken standby-toggle function, though I think this has to be fixed in HA.
Just found another small thing, regarding the power-state:
when the PS4 not unreachable via network, it will go into STATE_UNKNOWN, which is not recognized by the widget and shown as on:
[homeassistant.components.ps4.media_player] PS4 could not be reached
It seems, only unavailable is checked for. But to be honest, there is just so much stuff in HA, who can make sense of every little detail?! ;)
Hi,
I have the same issue, when try to turn on the PS4 with the "power" button from mini media player not work.
for the moment I use ps4-waker like a switch in HA.
I hope that this issue will be solved as soon as possible
Hello,
IMHO that's more of an issue with the playstation component than the card itself.
The card simply calls media_player.toggle, the component is responsible to handle the request correctly.
You could try creating a universal media player and override the default handling of the power/state.
You are right, the root cause is the usage of a newly introduced state STATE_STANDBY instead of the usual STATE_OFF, when the device is off.
Seemingly fixed by home-assistant/home-assistant#30344, thanks.