SDR3078 / ps3-home-assistant

Home Assistant integration for Sony PlayStation® 3 devices
Apache License 2.0
15 stars 3 forks source link

Improve HomeKit integration #20

Closed f1x6r closed 3 months ago

f1x6r commented 3 months ago

Hello! I enjoy using your integration. It works absolutely great for me. The only thing I would like to get is normal integration with HomeKit. I think it would be great to include it in Media/TV device. I'm not a developer, so I could be wrong in my assumptions :)

Now the HomeKit integration looks like a bunch of switches, but I think it would be better to think of the HK console as a Receiver. As far as I understand, it is necessary to add device_class to receiver: to correctly identify the “player” in HomeKit аnd also describe the functions of the device

Снимок экрана 2024-08-17 в 00 55 36

For example, this is how a TV configured via SmartIr is displayed.

Снимок экрана 2024-08-17 в 01 04 33

It might also be possible to integrate displaying game art into HomeKit, but I haven't heard about it.

f1x6r commented 3 months ago

I found a solution to the problem. As I expected, you need to add device_class "receiver" to media_player.py. I have created a pull request for the corrected configuration. I think this will help all HomeKit users.

Now the device appears like this: IMG_0094

IMG_0095

This is exactly what I expected in HomeKit.