Hi,
Firstly thanks for writing this great component. I'm looking forward to getting it working on my home config.
The issue is that your component only picks up the main zone of my YAmaha AV Recevier RX-A2070. I've got two Zones configured at the moment, with a 3rd on the way. All can be controlled with the Yamaha Mobile MusicCast App, so I know the setup is ok.
Below are some DeviceInfo responses for you (inc Zone2), please let me know what else you need. I did see that the current Yamaha Receiver Component looks for multi-zone AV's, by performing a zone loop, and Add_Device in HASS. You may be able to use some of that code (if you can?).
By the way, my use for this is more about turning on off the right zone, and changing a preset tuner station. So if you need somewhere to start that would be fantastic. I can test the code for you as much as you need.
Hope this all helps?
Thanks,
Andy...
http:///YamahaExtendedControl/v1/system/getDeviceInfo
{"response_code":0,"model_name":"RX-A2070","destination":"A","device_id":"00A0DEFD2FF5","system_id":"07F85DF3","system_version":1.07,"api_version":1.19,"netmodule_version":"1626 ","netmodule_checksum":"D9231566","operation_mode":"normal","update_error_code":"00000000"}
http:///YamahaExtendedControl/v1/system/getFeatures
{"response_code":0,"system":{"func_list":["wired_lan","wireless_lan","wireless_direct","network_standby","network_standby_auto","bluetooth_standby","bluetooth_tx_setting","hdmi_out_1","hdmi_out_2","airplay","disklavier_settings","remote_info","network_reboot"],"zone_num":4,"input_list":[{"id":"pandora","distribution_enable":true,"rename_enable":false,"account_enable":true,"play_info_type":"netusb"},{"id":"spotify","distribution_enable":true,"rename_enable":false,"account_enable":false,"play_info_type":"netusb"},{"id":"tidal","distribution_enable":true,"rename_enable":false,"account_enable":true,"play_info_type":"netusb"},{"id":"deezer","distribution_enable":true,"rename_enable":false,"account_enable":true,"play_info_type":"netusb"},{"id":"airplay","distribution_enable":false,"rename_enable":false,"account_enable":false,"play_info_type":"netusb"},{"id":"mc_link","distribution_enable":false,"rename_enable":true,"account_enable":false,"play_info_type":"netusb"},{"id":"server","distribution_enable":true,"rename_enable":true,"account_enable":false,"play_info_type":"netusb"},{"id":"net_radio","distribution_enable":true,"rename_enable":true,"account_enable":false,"play_info_type":"netusb"},{"id":"bluetooth","distribution_enable":true,"rename_enable":false,"account_enable":false,"play_info_type":"netusb"},{"id":"usb","distribution_enable":true,"rename_enable":true,"account_enable":false,"play_info_type":"netusb"},{"id":"tuner","distribution_enable":true,"rename_enable":true,"account_enable":false,"play_info_type":"tuner"},{"id":"av1","distribution_enable":true,"rename_enable":true,"account_enable":false,"play_info_type":"none"},{"id":"av2","distribution_enable":true,"rename_enable":true,"account_enable":false,"play_info_type":"none"},{"id":"av3","distribution_enable":true,"rename_enable":true,"account_enable":false,"play_info_type":"none"},{"id":"av4","distribution_enable":true,"rename_enable":true,"account_enable":false,"play_info_type":"none"},{"id":"av5","distribution_enable":true,"rename_enable":true,"account_enable":false,"play_info_type":"none"},{"id":"av6","distribution_enable":true,"rename_enable":true,"account_enable":false,"play_info_type":"none"},{"id":"av7","distribution_enable":true,"rename_enable":true,"account_enable":false,"play_info_type":"none"},{"id":"audio1","distribution_enable":true,"rename_enable":true,"account_enable":false,"play_info_type":"none"},{"id":"audio2","distribution_enable":true,"rename_enable":true,"account_enable":false,"play_info_type":"none"},{"id":"audio3","distribution_enable":true,"rename_enable":true,"account_enable":false,"play_info_type":"none"},{"id":"phono","distribution_enable":true,"rename_enable":true,"account_enable":false,"play_info_type":"none"},{"id":"v_aux","distribution_enable":true,"rename_enable":true,"account_enable":false,"play_info_type":"none"},{"id":"main_sync","distribution_enable":true,"rename_enable":true,"account_enable":false,"play_info_type":"none"}]},"zone":[{"id":"main","func_list":["power","sleep","volume","mute","sound_program","pure_direct","enhancer","tone_control","dialogue_level","signal_info","prepare_input_change","link_control","link_audio_delay"],"input_list":["pandora","spotify","tidal","deezer","airplay","mc_link","server","net_radio","bluetooth","usb","tuner","av1","av2","av3","av4","av5","av6","av7","audio1","audio2","audio3","phono","v_aux"],"sound_program_list":["munich","vienna","amsterdam","freiburg","royaumont","chamber","village_vanguard","warehouse_loft","cellar_club","roxy_theatre","bottom_line","sports","action_game","roleplaying_game","music_video","recital_opera","standard","spectacle","sci-fi","adventure","drama","mono_movie","enhanced","2ch_stereo","9ch_stereo","surr_decoder","straight"],"tone_control_mode_list":["manual"],"link_control_list":["speed","standard","stability"],"link_audio_delay_list":["audio_sync","lip_sync"],"range_step":[{"id":"volume","min":0,"max":161,"step":1},{"id":"tone_control","min":-12,"max":12,"step":1},{"id":"dialogue_level","min":0,"max":3,"step":1}]},{"id":"zone2","zone_b":false,"func_list":["power","sleep","volume","mute","enhancer","tone_control","prepare_input_change","link_control"],"input_list":["pandora","spotify","tidal","deezer","airplay","mc_link","server","net_radio","bluetooth","usb","tuner","av1","av2","av3","av4","av5","av6","av7","audio1","audio2","audio3","phono","v_aux","main_sync"],"tone_control_mode_list":["manual","auto","bypass"],"link_control_list":["speed","standard","stability"],"range_step":[{"id":"volume","min":0,"max":161,"step":1},{"id":"tone_control","min":-12,"max":12,"step":1}]},{"id":"zone3","func_list":["power","sleep","volume","mute","enhancer","tone_control","prepare_input_change"],"input_list":["pandora","spotify","tidal","deezer","airplay","mc_link","server","net_radio","bluetooth","usb","tuner","av1","av2","av3","av4","audio1","audio2","audio3","phono","v_aux","main_sync"],"tone_control_mode_list":["manual","auto","bypass"],"range_step":[{"id":"volume","min":0,"max":161,"step":1},{"id":"tone_control","min":-12,"max":12,"step":1}]},{"id":"zone4","func_list":["power","sleep","prepare_input_change"],"input_list":["av1","av2","av3","av4","av5","av6","av7","v_aux"]}],"tuner":{"func_list":["fm","dab"],"range_step":[{"id":"fm","min":87500,"max":108000,"step":50}],"preset":{"type":"separate","num":40}},"netusb":{"func_list":["recent_info","play_queue","mc_playlist"],"preset":{"num":40},"recent_info":{"num":40},"play_queue":{"size":200},"mc_playlist":{"size":200,"num":5},"net_radio_type":"airable","pandora":{"sort_option_list":["recent","alphabet"]}},"distribution":{"server_zone_list":["main","zone2"]},"ccs":{"supported":true}}
http:///YamahaExtendedControl/v1/netusb/getPlayInfo
{"response_code":0,"input":"net_radio","play_queue_type":"system","playback":"stop","repeat":"off","shuffle":"off","play_time":0,"total_time":0,"artist":"","album":"","track":"","albumart_url":"","albumart_id":7262,"usb_devicetype":"unknown","auto_stopped":false,"attribute":16777219,"repeat_available":[],"shuffle_available":[]}
http:///YamahaExtendedControl/v1/main/getStatus
{"response_code":0,"power":"standby","sleep":0,"volume":130,"mute":false,"max_volume":161,"input":"audio1","distribution_enable":true,"sound_program":"surr_decoder","pure_direct":false,"enhancer":true,"tone_control":{"mode":"auto","bass":0,"treble":0},"dialogue_level":0,"link_control":"standard","link_audio_delay":"audio_sync","disable_flags":0}
http:///YamahaExtendedControl/v1/system/getLocationInfo
{"response_code":0,"id":"5bd222d8e6de48b3bf8f7fb133774da5","name":"HomeTheater","zone_list":{"main":true,"zone2":true,"zone3":false,"zone4":false}}
http:///YamahaExtendedControl/v1/zone2/getStatus
{"response_code":0,"power":"standby","sleep":0,"volume":103,"mute":false,"max_volume":161,"input":"tuner","distribution_enable":true,"enhancer":true,"tone_control":{"mode":"auto","bass":0,"treble":0},"link_control":"standard","disable_flags":0}