alexmohr / media_player.sony

Custom component for Home Assistant to control Sony devices
Apache License 2.0
15 stars 8 forks source link

Send Remote Control Commands #21

Closed Jesusgeek316 closed 3 years ago

Jesusgeek316 commented 3 years ago

Is it possible to send the commands that are on the remote to the player through Home Assistant? If so, how to you do it?

I'm trying to send arrow keys, select, and eject. At least the eject command seems to be part of sonyapilib, but I don't know enough to try to implement it.

I have a Sony BDP-S3700 registered and connected to Home Assistant.

Thanks.

alexmohr commented 3 years ago

At the time this was implemented there was no option to support buttons like this. I'm currently very busy and can't check if this changed but I don't think home assistant offers a way to show these buttons on the UI altough they are implemented in the api lib.

An option could be to create a button which calls a python script but this would be a bit of programming effort. If you have an suggestion on how to implement this or can provide an example for other devices supporting an input like that I'd be more than happy to implement this as soon as my schedule clears up a bit.

alexmohr commented 3 years ago

https://github.com/alexmohr/media_player.sony/issues/20 is related to this and aims to improve the UI

alexmohr commented 3 years ago

Home assistant still does not support this natively on the UI. At the moment the only option you have is described above.