lucasvdh / com.yamaha.receiver

Yamaha receiver app for Homey
GNU General Public License v3.0
3 stars 5 forks source link

[FEAT] Refactor old MusicCast driver to new client #6

Closed lucasvdh closed 4 years ago

lucasvdh commented 5 years ago

Describe the solution you'd like

The MusicCast driver from the old Yamaha app needs to be refactored to a new client which can then be implemented by the new MusicCast device.

Additional context

It might be wise to make a separate npm package for the YamahaExtendedControl client as it would improve overall maintainability.

lucasvdh commented 4 years ago

An example status would be really useful to map all values.

Maybe someone can provide the response from: http://192.168.1.x/YamahaExtendedControl/v1/main/getStatus

lucasvdh commented 4 years ago

Decided that the initial version can be implemented in the Homey app, can always move it to a separate package later.

liessum commented 4 years ago

An example status would be really useful to map all values.

Maybe someone can provide the response from: http://192.168.1.x/YamahaExtendedControl/v1/main/getStatus

I do get the following response:

{
    "response_code": 0,
    "power": "on",
    "sleep": 0,
    "volume": 20,
    "mute": false,
    "max_volume": 60,
    "input": "net_radio",
    "input_text": "Net Radio",
    "distribution_enable": true,
    "sound_program": "bass_booster",
    "equalizer": {
        "mode": "manual",
        "low": 0,
        "mid": 0,
        "high": 0
    },
    "link_control": "standard",
    "link_audio_delay": "balanced",
    "disable_flags": 0
}

And

{
    "response_code": 0,
    "power": "standby",
    "sleep": 0,
    "volume": 16,
    "mute": false,
    "max_volume": 60,
    "input": "mc_link",
    "distribution_enable": false,
    "equalizer": {
        "mode": "manual",
        "low": 0,
        "mid": 0,
        "high": 0
    },
    "link_control": "standard",
    "link_audio_delay": "audio_sync_on",
    "link_audio_quality": "uncompressed",
    "disable_flags": 0
}
lucasvdh commented 4 years ago

@liessum thanks! Much appreciated.

axelwathne commented 4 years ago

Here's from a WX-030 (looks like the one above):

{
    "response_code": 0,
    "power": "on",
    "sleep": 0,
    "volume": 9,
    "mute": false,
    "max_volume": 60,
    "input": "net_radio",
    "distribution_enable": true,
    "equalizer": {
        "mode": "manual",
        "low": -2,
        "mid": 1,
        "high": 5
    },
    "link_control": "standard",
    "link_audio_quality": "compressed",
    "disable_flags": 0
}

YSP-5600:

{
    "response_code": 0,
    "power": "standby",
    "volume": 54,
    "mute": false,
    "max_volume": 100,
    "input": "hdmi1",
    "distribution_enable": true,
    "sound_program": "off",
    "surround_3d": true,
    "enhancer": false,
    "tone_control": {
        "mode": "manual",
        "bass": 0,
        "treble": 0
    },
    "dialogue_lift": 0,
    "clear_voice": false,
    "subwoofer_volume": -15,
    "link_control": "standard",
    "link_audio_delay": "lip_sync",
    "link_audio_quality": "uncompressed",
    "disable_flags": 3
}

RX-AS710D:

{
    "response_code": 0,
    "power": "standby",
    "sleep": 0,
    "volume": 40,
    "mute": false,
    "max_volume": 161,
    "input": "spotify",
    "distribution_enable": true,
    "sound_program": "straight",
    "surr_decoder_type": "dolby_pl2x_movie",
    "pure_direct": false,
    "enhancer": false,
    "tone_control": {
        "mode": "manual",
        "bass": 0,
        "treble": 0
    },
    "dialogue_level": 0,
    "link_control": "standard",
    "link_audio_delay": "audio_sync",
    "link_audio_quality": "compressed",
    "disable_flags": 0,
    "actual_volume": {
        "mode": "db",
        "value": -60.5,
        "unit": "dB"
    },
    "contents_display": true,
    "party_enable": false
}
lucasvdh commented 4 years ago

@axelwathne new stable release was published to test today and awaiting approval

axelwathne commented 4 years ago

@lucasvdh Excellent. I will do some testing, I hope to have some more time in the coming weeks.