Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

QA for Yamaha Musiccast Devices


michal85pl
 Share

Question

Hi,

 

From the resources available on the forum I managed to glue QA to support Yamaha Musiccast (tested on R-602N and WX-30 ). The code is certainly not clean and needs patches. Would anyone experienced be interested in helping to refine the QA and adding additional functions before posting it in the forum?

 

Regards
Michal

Link to comment
Share on other sites

Recommended Posts

  • 1
  • Inquirer
  • I came to the following state.
    I hope there is someone willing to improve the code and add some functions:
    - adding album cover to QA
    - synchronization between sliders in the browser and in the Fibaro Home Center App, reading and setting the initial value of sliders (at the moment I set the QA type to multilevel switch, because I do not know how to add a slider to the FIbaro HC App)
    - adding buttons to QA in the Home Center App

     

    Please login or register to see this image.

    /monthly_2020_05/147472888_Adnotacja2020-05-03140440.jpg.ae1eaac388c88d21300dea4f393f7f70.jpg" />

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Can anyone help me with:
    1. Addinga slider to handle volume (both from the browser and the Home Center App)
    2. Is it possible to add buttons to QA in the Home Center App? How to do it?
    3. Adding the cover of the currently playing song to QA

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • I don't believe that no one on the forum uses MusicCast devices ...
    Who can help to improve my QA?

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0

    maybe you should just post at and someone would take a look. I do have already Pioneer and Bose on "to do", so no time for another system, but let's hope some other experienced users would take a look on your QA.

    Link to comment
    Share on other sites

    • 0

    @tinman, pioneer is in the pipe and is coming soon, you can focus on Bose ;)

     

    Link to comment
    Share on other sites

    • 0

    I'm new here, what do you mean by QA?

     

    There is a virtual device for Yamaha MusicCast which I've just set up for my R-N602.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 17 minut temu, Tim__ napisał:

    I'm new here, what do you mean by QA?

     

    There is a virtual device for Yamaha MusicCast which I've just set up for my R-N602.

    Virtual Device is for HC2 and HCL, Quick App (QA) is for HC3.

    Link to comment
    Share on other sites

    • 0
    21 hours ago, michal85pl said:

    I refresh the query. Anyone?

    Adding album cover to QA is not possible - yet. There may be support in the future for this.

    I'm sorry I do't have a music cast device - more of a Sonos person. 

    Link to comment
    Share on other sites

    • 0

    @michal85pl

    Yes component album is not supported yet

    You can write slider value to variable, i saw that problem too, in some future we will store value in property

    funny is that i dint saw your topic before i and was start making my Yamaha solution too (got v779) you can check how i was do that (i got player type and i made slider work) (in my quick apps is missing status what is played :) leaved that on next weekend season)

    Got info that app in version 1.9 will support some plugins and quick apps but lets wait  what they will introduce,. When app will support your type of quickapp you will see all buttons and actions in app

    Standard actions in block scene you can saw now, other you will see in next update of HC3

     

    Link to comment
    Share on other sites

    • 0
    On 5/3/2020 at 10:28 PM, michal85pl said:

    I came to the following state.
    I hope there is someone willing to improve the code and add some functions:
    - adding album cover to QA
    - synchronization between sliders in the browser and in the Fibaro Home Center App, reading and setting the initial value of sliders (at the moment I set the QA type to multilevel switch, because I do not know how to add a slider to the FIbaro HC App)
    - adding buttons to QA in the Home Center App

     

    Please login or register to see this link.

    Please login or register to see this attachment.

    hi

    Please login or register to see this link.

    Thanks for the QA its great. I am fumbling my way through creating zones for this for my XDA-QS5400 and wondering if you can help. I want to add a function that will set the IPAddress variable based the selection of the zone button. I know how to make the buttons and set a Zone ip address variable to this but can not work out how to say button 1 release = IPaddress is IP 1.

    Does this make sence?

     

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 18 godzin temu, Tikifmb napisał:

    Do you have any plans to include Zone2?

    I'd like to, but I'm not a programmer so I can't do it myself :)

    Link to comment
    Share on other sites

    • 0

    Hi! I have 3 Musiccast units and are looking for a solution where I can use scenes and link them together. (Room-link) 

    I've found the PDF for API functions but I need help figuring out how to write the code in a LUA scene. 

     

     

    Can someone help me with the basics? 

     

     

    Edited by JoeChew
    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • W dniu 15.04.2021 o 18:25, JoeChew napisał:

    Hi! I have 3 Musiccast units and are looking for a solution where I can use scenes and link them together. (Room-link) 

    I've found the PDF for API functions but I need help figuring out how to write the code in a LUA scene. 

     

     

    Can someone help me with the basics? 

     

     

    If you manage to implement it, please share your QA, because I would also use the multiroom function.

    Link to comment
    Share on other sites

    • 0

    Hi!  This worked, probably not the best script but Fibaro understood. 

    You can download API specs here: 

    Please login or register to see this link.

     

     

    --[[
    %% properties
    %% globals
    --]]

    http:request("http://192.168.1.213/YamahaExtendedControl/v1/dist/setClientInfo",
    {
    options = {
    method = "POST",
    headers = { 
    ["Content-Type"] = "application/json",
    },
    data = '{"group_id":"9A237BF5AB80ED3C7251DFF49825CA42","zone":["main" ]}'
    },
    success = function() print("OK") end,
    error = function() print("ERR") end
    });
    local http = net.HTTPClient();
    http:request("http://192.168.1.216/YamahaExtendedControl/v1/dist/setClientInfo",
    {
    options = {
    method = "POST",
    headers = { 
    ["Content-Type"] = "application/json",
    },
    data = '{"group_id":"9A237BF5AB80ED3C7251DFF49825CA42","zone":["main" ]}'
    },
    success = function() print("OK") end,
    error = function() print("ERR") end
    });
    local http = net.HTTPClient();
    http:request("http://192.168.1.100/YamahaExtendedControl/v1/dist/setServerInfo",
    {
    options = {
    method = "POST",
    headers = { 
    ["Content-Type"] = "application/json",
    },
    data = '{"group_id":"9A237BF5AB80ED3C7251DFF49825CA42","type":"add","client_list":["192.168.1.213","192.168.1.216"]}'
    },
    success = function() print("OK") end,
    error = function() print("ERR") end
    });
    local http = net.HTTPClient();
    http:request("http://192.168.1.100/YamahaExtendedControl/v1/dist/startDistribution?num=0")

    Edited by JoeChew
    Link to comment
    Share on other sites

    • 0
    Posted (edited)

    I got my HC3 last week and I've been busy moving all my HC2 stuff over. Your QA helped a lot to create one for my WX-30. I'm not using zones only a stereo linked WX-30 set. I fixed the slider update and I changed the HQ type to 'player' because you don't want and need a light slider on top. I guess there's a better place in the script to control that but for now it works and if the device is in standby the slider is set to 0 and the labels are cleared as well. What you basically do is calculate the percentage from volume and maxvolume and update the slider value:

     

    Please login or register to see this code.

     

    I don't like it that de wx-30 is turned on at a default volume and let it start on it's previous volume.

    I also added a couple of preset bottons for internet radio. They must be set in MusicCast of course. The button labels are set via variables like the ipAddress.

    Please login or register to see this code.

    The last thing I added is hiding the Album label if internet radio is playing

     

    Please login or register to see this code.

     

    Please login or register to see this attachment.

    Edited by BartP
    code had to many blank lines in the text
    • Thanks 1
    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

     Share

    ×
    ×
    • Create New...