aangert / homebridge-musiccast-tv

Homebridge plugin for Yamaha MusicCast devices
GNU General Public License v3.0
15 stars 3 forks source link

New button play favorites radio list or favorite playlist ? #14

Closed jakubbrach closed 2 years ago

jakubbrach commented 3 years ago

Hi Is it possible to add support for starting the radio from the list of favorites or a favorite playlist? Maybe as an extra button.

Thanks

aangert commented 3 years ago

There should be a way to do this, I'll try to look into the API Documentation next week

marvelousmo commented 3 years ago

any news on that?

aangert commented 3 years ago

Recalling a tuner preset should be possible using http://{host}/YamahaExtendedControl/v1/tuner/recallPreset?zone=main&band=fm&num=13

Implementing and testing these changes might take a few more weeks

aangert commented 3 years ago

You can test this Feature by installing v1.8 and adding buttonBand, buttonName and buttonNumber to your config.json. Please report back if it doesn't work as intended

jakubbrach commented 3 years ago

Hello

Thanks for adding this feature. Button: buttonBand works ok I don't know how to set: ButtonName and buttonNumber. I have it set like this: { "powerOnInput": "net_radio", "inputs": { "net_radio": "Online radio", "tv": "tv" }, "accessory": "MusicCastTV", "volumeName": "TV", "model": "Yamaha BAR 400", "volume": "100", "ip": "192.168.1.107", "maxvol": "161", "name": "Soundbar", "volumeFan": "1", "buttonNumber": "1", "buttonName": "test", "buttonBand": "fm" },

And nothing happens. I thought the button would change the radio station saved in favorites to number one

aangert commented 3 years ago

buttonNumber should be the number in your list of favourites and buttonName should be the name to display on the button in homebridge. I will read the API documentation again in the next few weeks to find the bug

jakubbrach commented 3 years ago

buttonNumber should be the number in your list of favourites and buttonName should be the name to display on the button in homebridge. I will read the API documentation again in the next few weeks to find the bug

hi

url: 'http://' + this.ip + '/YamahaExtendedControl/v1/**tuner**/recallPreset?zone=' + this.zone + '&band=' + this.buttonBand + '&num=' + this.buttonNumber, method: 'GET',

Replacement : tuner on netusb - it helped. Now everything works

aangert commented 2 years ago

I will test and release this bugfix next weekend

aangert commented 2 years ago

Could you please test v1.8.1 and report back