cakebake / node-red-contrib-alexa-remote-cakebaked

Forked for me and the community to keep dependencies up to date :)
MIT License
42 stars 6 forks source link

Playing music to a group #38

Open moshed opened 2 years ago

moshed commented 2 years ago

I am trying to play music to a specific group in with node red and cant seem accomplish it. I dont get any errors thrown but it just doesnt play to either echo in my group.

image

exported node is below.

[
    {
        "id": "e9fdd7beedc36efd",
        "type": "tab",
        "label": "Flow 1",
        "disabled": false,
        "info": ""
    },
    {
        "id": "17bee26a6145022a",
        "type": "inject",
        "z": "e9fdd7beedc36efd",
        "name": "",
        "props": [],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "x": 370,
        "y": 300,
        "wires": [
            [
                "e0be75e8d593945e"
            ]
        ]
    },
    {
        "id": "e0be75e8d593945e",
        "type": "alexa-remote-routine",
        "z": "e9fdd7beedc36efd",
        "name": "",
        "account": "3c25aa70a9ed3b13",
        "routineNode": {
            "type": "music",
            "payload": {
                "device": {
                    "type": "str",
                    "value": "98a7b61afcbe4daaa0780612c825cc8f"
                },
                "provider": {
                    "type": "str",
                    "value": "SPOTIFY"
                },
                "search": {
                    "type": "str",
                    "value": "golden slumbers"
                },
                "duration": {
                    "type": "num",
                    "value": "1"
                }
            }
        },
        "x": 580,
        "y": 300,
        "wires": [
            []
        ]
    },
    {
        "id": "3c25aa70a9ed3b13",
        "type": "alexa-remote-account",
        "name": "redacted",
        "authMethod": "proxy",
        "proxyOwnIp": "192.168.1.182",
        "proxyPort": "3456",
        "cookieFile": "",
        "refreshInterval": "3",
        "alexaServiceHost": "pitangui.amazon.com",
        "amazonPage": "amazon.com",
        "acceptLanguage": "en-US",
        "userAgent": "",
        "useWsMqtt": "on",
        "autoInit": "on"
    }
]
mash727 commented 2 years ago

yes have the same problem flow activates every time but music does not play on via tunein

moshed commented 2 years ago

I saw elsewhere https://github.com/586837r/node-red-contrib-alexa-remote2/issues/48#issuecomment-535550026 that making the command play on [group_name] works but it did work for me maybe it will for you.