UNPKG

node-red-contrib-musiccast

Version:

A Node-RED collection for monitoring and controlling a Yamaha Musiccast network.

474 lines 14.8 kB
[ { "id": "126a61b9d7257d70", "type": "tab", "label": "Link Group Creation", "disabled": false, "info": "The following steps will change a Musiccast device \"Living Room Audio\" to the server input and start playing. A distribution group will be configured with a second device \"Bedroom\" as the client and music should play on both.\n\n\n1. Create a new, unique group_id, like \"9A237BF5AB80ED3C7251DFF49825CA42\". One online tool for this is https://numbergenerator.org/random-32-digit-hex-codes-generator.\n2. Update the \"Configure master\" inject node with the new group_id by adding it to the payload JSON.\n3. Click Deploy.\n4. Now click all the injects nodes in order from top to bottom (except for \"Cancel distribution\").\n5. Music should now be playing in both locations.\n\n\nIf you want to cancel the distribution, click the inject node named \"Cancel distribution\". Audio will continue to play on the master but will stop on the client.\n\n\n", "env": [] }, { "id": "9104b78a35fbe98b", "type": "debug", "z": "126a61b9d7257d70", "name": "Debug", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 890, "y": 100, "wires": [] }, { "id": "ce97b7fd4ed2e867", "type": "musiccast-link", "z": "126a61b9d7257d70", "mc": "84646cc8.5bcdc", "name": "", "device": "cc796d12-2dd6-49db-9c09-1e971208ea9e", "type_device": "device", "command": "setServerInfo", "type_command": "command", "payload": "", "type_payload": "msg", "f_show_status": false, "x": 550, "y": 180, "wires": [ [ "9104b78a35fbe98b" ] ] }, { "id": "287085e0217e0993", "type": "musiccast-link", "z": "126a61b9d7257d70", "mc": "84646cc8.5bcdc", "name": "", "device": "cc796d12-2dd6-49db-9c09-1e971208ea9e", "type_device": "device", "command": "startDistribution", "type_command": "command", "payload": "{\"num\":\"0\"}", "type_payload": "json", "f_show_status": false, "x": 560, "y": 220, "wires": [ [ "9104b78a35fbe98b" ] ] }, { "id": "38ee591034e67ef2", "type": "inject", "z": "126a61b9d7257d70", "name": "Start distribution", "props": [], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "x": 340, "y": 220, "wires": [ [ "287085e0217e0993" ] ] }, { "id": "913e165d3d614f57", "type": "inject", "z": "126a61b9d7257d70", "name": "Start master playback", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"playback\":\"play\"}", "payloadType": "json", "x": 320, "y": 140, "wires": [ [ "7e2be338e65f221a" ] ] }, { "id": "7e2be338e65f221a", "type": "musiccast-input", "z": "126a61b9d7257d70", "mc": "84646cc8.5bcdc", "name": "", "device": "cc796d12-2dd6-49db-9c09-1e971208ea9e", "type_device": "device", "inp": "server", "type_inp": "input", "command": "setPlayback", "type_command": "command", "payload": "", "type_payload": "msg", "f_show_status": false, "x": 550, "y": 140, "wires": [ [ "9104b78a35fbe98b" ] ] }, { "id": "9ad50a5ffe8cc638", "type": "musiccast-link", "z": "126a61b9d7257d70", "mc": "84646cc8.5bcdc", "name": "", "device": "cc796d12-2dd6-49db-9c09-1e971208ea9e", "type_device": "device", "command": "stopDistribution", "type_command": "command", "payload": "{}", "type_payload": "json", "f_show_status": false, "x": 560, "y": 460, "wires": [ [ "4f7a21295b78e50d" ] ] }, { "id": "9f46c9fcdbeb8804", "type": "inject", "z": "126a61b9d7257d70", "name": "Cancel distribution", "props": [], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "x": 330, "y": 460, "wires": [ [ "9ad50a5ffe8cc638" ] ] }, { "id": "da70f06ffe95ad1a", "type": "inject", "z": "126a61b9d7257d70", "name": "Set master input", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"input\":\"server\"}", "payloadType": "json", "x": 340, "y": 100, "wires": [ [ "119da55f58690b6b" ] ] }, { "id": "b14aa6971ce3a902", "type": "musiccast-link", "z": "126a61b9d7257d70", "mc": "84646cc8.5bcdc", "name": "", "device": "cc796d12-2dd6-49db-9c09-1e971208ea9e", "type_device": "device", "command": "setGroupName", "type_command": "command", "payload": "", "type_payload": "msg", "f_show_status": false, "x": 560, "y": 260, "wires": [ [ "9104b78a35fbe98b" ] ] }, { "id": "875a5c7f09de790c", "type": "inject", "z": "126a61b9d7257d70", "name": "Update link group name", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"name\":\"[Link] My test group\"}", "payloadType": "json", "x": 320, "y": 260, "wires": [ [ "b14aa6971ce3a902" ] ] }, { "id": "b66cd21b6e4009c2", "type": "inject", "z": "126a61b9d7257d70", "name": "Configure master", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"group_id\":\"128d93ec4e4c737bbeae10c35db6becb\",\"type\":\"add\",\"zone\":\"main\",\"client_list\":[\"192.168.10.91\"]}", "payloadType": "json", "x": 340, "y": 180, "wires": [ [ "ce97b7fd4ed2e867" ] ] }, { "id": "119da55f58690b6b", "type": "musiccast-zone", "z": "126a61b9d7257d70", "mc": "84646cc8.5bcdc", "name": "", "device": "cc796d12-2dd6-49db-9c09-1e971208ea9e", "type_device": "device", "zone": "main", "type_zone": "zone", "command": "setInput", "type_command": "command", "payload": "{\"input\":\"juke|tidal|qobuz|deezer|server|bluetooth|airplay|mc_link|usb|net_radio\",\"mode\":\"autoplay_disabled\"}", "type_payload": "msg", "f_show_status": false, "x": 540, "y": 100, "wires": [ [ "9104b78a35fbe98b" ] ] }, { "id": "4f7a21295b78e50d", "type": "debug", "z": "126a61b9d7257d70", "name": "Debug", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 890, "y": 420, "wires": [] }, { "id": "ca8088fcc14de3e7", "type": "musiccast-link", "z": "126a61b9d7257d70", "mc": "84646cc8.5bcdc", "name": "", "device": "cc796d12-2dd6-49db-9c09-1e971208ea9e", "type_device": "device", "command": "getDistributionInfo", "type_command": "command", "payload": "{}", "type_payload": "json", "f_show_status": true, "x": 570, "y": 420, "wires": [ [ "4f7a21295b78e50d" ] ] }, { "id": "0f24110cd309a2f6", "type": "inject", "z": "126a61b9d7257d70", "name": "Show distribution info", "props": [], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "x": 320, "y": 420, "wires": [ [ "ca8088fcc14de3e7" ] ] }, { "id": "76cc8b23cdedb97e", "type": "musiccast-link", "z": "126a61b9d7257d70", "mc": "84646cc8.5bcdc", "name": "", "device": "cc796d12-2dd6-49db-9c09-1e971208ea9e", "type_device": "device", "command": "setServerInfo", "type_command": "command", "payload": "{\"group_id\":\"\"}", "type_payload": "json", "f_show_status": false, "x": 550, "y": 500, "wires": [ [ "4f7a21295b78e50d" ] ] }, { "id": "539f6479d43f583d", "type": "inject", "z": "126a61b9d7257d70", "name": "Remove group", "props": [], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "x": 340, "y": 500, "wires": [ [ "76cc8b23cdedb97e" ] ] }, { "id": "57a5b1ac62a229fd", "type": "comment", "z": "126a61b9d7257d70", "name": "Stop distribution", "info": "", "x": 100, "y": 360, "wires": [] }, { "id": "012dd5bb4505fad2", "type": "comment", "z": "126a61b9d7257d70", "name": "Create and start distribution", "info": "", "x": 140, "y": 20, "wires": [] }, { "id": "84646cc8.5bcdc", "type": "musiccast-config", "name": "Example Configuration", "device_list": { "cc796d12-2dd6-49db-9c09-1e971208ea9e": { "name": "Living Room Audio", "address": "192.168.10.90", "model": "RX-A2070", "input_list": "{\"napster\":{\"id\":\"napster\"},\"siriusxm\":{\"id\":\"siriusxm\"},\"pandora\":{\"id\":\"pandora\"},\"spotify\":{\"id\":\"spotify\"},\"tidal\":{\"id\":\"tidal\"},\"deezer\":{\"id\":\"deezer\"},\"airplay\":{\"id\":\"airplay\"},\"mc_link\":{\"id\":\"mc_link\"},\"server\":{\"id\":\"server\"},\"net_radio\":{\"id\":\"net_radio\"},\"bluetooth\":{\"id\":\"bluetooth\"},\"usb\":{\"id\":\"usb\"},\"tuner\":{\"id\":\"tuner\"},\"av1\":{\"id\":\"av1\"},\"av2\":{\"id\":\"av2\"},\"av3\":{\"id\":\"av3\"},\"av4\":{\"id\":\"av4\"},\"av5\":{\"id\":\"av5\"},\"av6\":{\"id\":\"av6\"},\"av7\":{\"id\":\"av7\"},\"audio1\":{\"id\":\"audio1\"},\"audio2\":{\"id\":\"audio2\"},\"audio3\":{\"id\":\"audio3\"},\"phono\":{\"id\":\"phono\"},\"v_aux\":{\"id\":\"v_aux\"},\"main_sync\":{\"id\":\"main_sync\"}}", "zone_list": "{\"main\":{\"id\":\"main\",\"input_list\":[\"napster\",\"siriusxm\",\"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\"],\"link_control_list\":[\"speed\",\"standard\",\"stability\"],\"link_audio_delay_list\":[\"audio_sync\",\"lip_sync\"],\"distribution\":{\"version\":2,\"compatible_client\":[2],\"client_max\":9,\"server_zone_list\":[\"main\",\"zone2\"]},\"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\"]},\"zone2\":{\"id\":\"zone2\",\"input_list\":[\"napster\",\"siriusxm\",\"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\"],\"link_control_list\":[\"speed\",\"standard\",\"stability\"],\"link_audio_delay_list\":[],\"distribution\":{\"version\":2,\"compatible_client\":[2],\"client_max\":9,\"server_zone_list\":[\"main\",\"zone2\"]},\"sound_program_list\":[]},\"zone3\":{\"id\":\"zone3\",\"input_list\":[\"napster\",\"siriusxm\",\"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\"],\"link_control_list\":[],\"link_audio_delay_list\":[],\"distribution\":{\"version\":2,\"compatible_client\":[2],\"client_max\":9,\"server_zone_list\":[\"main\",\"zone2\"]},\"sound_program_list\":[]},\"zone4\":{\"id\":\"zone4\",\"input_list\":[\"av1\",\"av2\",\"av3\",\"av4\",\"av5\",\"av6\",\"av7\",\"v_aux\"],\"link_control_list\":[],\"link_audio_delay_list\":[],\"distribution\":{\"version\":2,\"compatible_client\":[2],\"client_max\":9,\"server_zone_list\":[\"main\",\"zone2\"]},\"sound_program_list\":[]}}", "serial": "AAAAAAAA", "udn": "uuid:9ab0c000-f668-11de-9976-00a0defc5533", "uuid": "cc796d12-2dd6-49db-9c09-1e971208ea9e", "status": "seen", "updated": "2024-11-08T02:41:36.341Z" }, "d83f28e7-1d78-4a3f-9cfa-af2c4aa8ac24": { "name": "Bedroom", "address": "192.168.10.91", "model": "WXC-50", "input_list": "{\"napster\":{\"id\":\"napster\"},\"siriusxm\":{\"id\":\"siriusxm\"},\"pandora\":{\"id\":\"pandora\"},\"spotify\":{\"id\":\"spotify\"},\"tidal\":{\"id\":\"tidal\"},\"deezer\":{\"id\":\"deezer\"},\"airplay\":{\"id\":\"airplay\"},\"mc_link\":{\"id\":\"mc_link\"},\"server\":{\"id\":\"server\"},\"net_radio\":{\"id\":\"net_radio\"},\"bluetooth\":{\"id\":\"bluetooth\"},\"usb\":{\"id\":\"usb\"},\"optical\":{\"id\":\"optical\"},\"aux\":{\"id\":\"aux\"}}", "zone_list": "{\"main\":{\"id\":\"main\",\"input_list\":[\"napster\",\"siriusxm\",\"pandora\",\"spotify\",\"tidal\",\"deezer\",\"airplay\",\"mc_link\",\"server\",\"net_radio\",\"bluetooth\",\"usb\",\"optical\",\"aux\"],\"link_control_list\":[\"speed\",\"standard\",\"stability\"],\"link_audio_delay_list\":[\"audio_sync_on\",\"audio_sync_off\"],\"distribution\":{\"version\":2,\"compatible_client\":[2],\"client_max\":9,\"server_zone_list\":[\"main\"]},\"sound_program_list\":[]}}", "serial": "0C997603", "udn": "uuid:9ab0c000-f668-11de-9976-00a0dedc94a4", "uuid": "d83f28e7-1d78-4a3f-9cfa-af2c4aa8ac24", "status": "seen", "updated": "2024-11-08T02:41:36.343Z" } }, "f_use_debug": false, "f_blank_stale_status": false, "list_language": "en", "command_timeout": "2000", "zone_list": { "main": { "id": "main", "alt_id": "Main_Zone", "label": "Main" }, "zone2": { "id": "zone2", "alt_id": "Zone_2", "label": "Zone 2" }, "zone3": { "id": "zone3", "alt_id": "Zone_3", "label": "Zone 3" }, "zone4": { "id": "zone4", "alt_id": "Zone_4", "label": "Zone 4" } }, "main": "Main", "zone_2": "Zone 2", "zone_3": "Zone 3", "zone_4": "Zone 4", "services_timeout": "5000" } ]