bbindreiter / node-red-contrib-alexa-remote2-applestrudel

Node-Red Nodes for interacting with Alexa
https://flows.nodered.org/node/node-red-contrib-alexa-remote2-applestrudel
MIT License
74 stars 20 forks source link

Enable the use of RangeController for devices #169

Closed xPudda closed 5 months ago

xPudda commented 7 months ago

Hi everyone, this integration is awesome and well done and i love it, but it's missing something.

I have roller shutters integrated in alexa by the Vimar skill and the devices are shown as "Roller Shutter" in the Alexa App. So, i'm trying to set the open percentage by the RangeController of Alexa API but it seems not supported because the node print an error on action executed:

image

In the "Action" node the devices are shown as "Unknown" and the only action choosable is "Set Range Value {...}" and associated guid:

image

image

I also tried with specific msg payload action "setRangeValue" and "adjustRangeValue" which are valid directives for RangeController:

image

I'll leave also the alexa discovery response on one of the rolling shutter:

{
    "applianceId": "SKILL_eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjk2YjhlNmU4LTgy...",
    "endpointTypeId": "",
    "driverIdentity": {
        "namespace": "SKILL",
        "identifier": "eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjk2YjhlNmU4LTgyZj..."
    },
    "manufacturerName": "Vimar",
    "friendlyDescription": "",
    "modelName": "",
    "deviceType": "CLOUD_DISCOVERED_DEVICE",
    "version": "0",
    "friendlyName": "Soggiorno Porta",
    "friendlyNameModifiedAt": 1643981498225,
    "capabilitiesModifiedAt": 1700562575726,
    "ipAddress": "",
    "port": "",
    "entityId": "4e65bdc5-...",
    "applianceNetworkState": {
        "reachability": "REACHABLE",
        "lastSeenAt": 1701530011419,
        "createdAt": 1643981498225,
        "lastSeenDiscoverySessionId": {
            "value": "f104921a-..."
        }
    },
    "tags": {
        "tagNameToValueSetMap": {
            "groupIdentity": [
                "amzn1.HomeAutomation.ApplianceGroup..."
            ]
        }
    },
    "additionalApplianceDetails": {
        "additionalApplianceDetails": {}
    },
    "firmwareVersion": "0",
    "actions": [],
    "capabilities": [
        {
            "capabilityType": "AVSInterfaceCapability",
            "type": "AlexaInterface",
            "version": "3",
            "properties": {
                "supported": [
                    {
                        "name": "rangeValue"
                    }
                ],
                "proactivelyReported": false,
                "retrievable": true,
                "readOnly": false
            },
            "configuration": {
                "supportedRange": {
                    "minimumValue": 0,
                    "maximumValue": 100,
                    "precision": 5
                },
                "unitOfMeasure": "Alexa.Unit.Percent",
                "presets": [],
                "unitOfMeasureLabel": {
                    "value": {
                        "assetId": "Alexa.Unit.Percent"
                    },
                    "@type": "asset"
                }
            },
            "resources": {
                "friendlyNames": [
                    {
                        "value": {
                            "assetId": "Alexa.Setting.Opening"
                        },
                        "@type": "asset"
                    }
                ]
            },
            "instance": "height",
            "semantics": {
                "actionMappings": [
                    {
                        "@type": "ActionsToDirective",
                        "actions": [
                            "Alexa.Actions.Open",
                            "Alexa.Actions.Raise"
                        ],
                        "directive": {
                            "name": "SetRangeValue",
                            "payload": {
                                "rangeValue": 100
                            }
                        }
                    },
                    {
                        "@type": "ActionsToDirective",
                        "actions": [
                            "Alexa.Actions.Close",
                            "Alexa.Actions.Lower"
                        ],
                        "directive": {
                            "name": "SetRangeValue",
                            "payload": {
                                "rangeValue": 0
                            }
                        }
                    }
                ],
                "stateMappings": [
                    {
                        "@type": "StatesToRange",
                        "states": [
                            "Alexa.States.Open"
                        ],
                        "range": {
                            "minimumValue": 1,
                            "maximumValue": 100
                        }
                    },
                    {
                        "@type": "StatesToValue",
                        "states": [
                            "Alexa.States.Closed"
                        ],
                        "value": 0
                    }
                ]
            },
            "interfaceName": "Alexa.RangeController"
        }
    ],
    "applianceTypes": [
        "INTERIOR_BLIND"
    ],
    "isEnabled": true,
    "aliases": [
        {
            "friendlyName": "Porta Soggiorno",
            "id": {
                "uuid": "be34fd71-...",
                "type": "ALIAS"
            },
            "enabled": true
        }
    ],
    "connectedVia": "",
    "alexaDeviceIdentifierList": [],
    "applianceKey": "4e65bdc5-...",
    "identifiers": {
        "networkInterfaceIdentifiers": []
    },
    "applianceDriverIdentity": {
        "namespace": "SKILL",
        "identifier": "eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjk2YjhlNmU4LTgy..."
    },
    "ipaddress": "",
    "applianceLambdaControlled": true,
    "mergedApplianceIds": [
        "SKILL_eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjk2YjhlNmU4LTgyZjY.."
    ]
}
github-actions[bot] commented 6 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 5 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.