iobroker-community-adapters / ioBroker.yamaha

Yamaha Adapter for ioBroker
MIT License
1 stars 3 forks source link

simulate press enter from remote Control, USB not play #426

Open Jumbo125 opened 7 months ago

Jumbo125 commented 7 months ago

Hello

When i change the input to USB to play sounds from my usb-stick, the window will change to the usb menu. perfect.

But the song will not be played....

I need to press the "enter" button on the conrtol device to choose a song, which one will be play.

how can i change the input to usb and play the first song or anything else(it is shuffle) i need to press the enter button via iobroker or http url

Thank you a lot

Garfonso commented 7 months ago

"Pressing" return seems to be possible in general, at least there is a library that can do it: https://github.com/PSeitz/yamaha-nodejs

But it seems soef forked the library a long time ago...

You could try to use the state yamaha.0.Commands.command and enter "Return" there, it seems to be what the library sends. I did not yet completely check if it really sends the same string in the end, but you could just try.

Jumbo125 commented 7 months ago

i found the solution https://github.com/lwsrbrts/Yamaha/blob/master/Yamaha.ps1 the xml command with Sel do the trick