question

Mike avatar image
Mike asked

RangeController, not all utterances working as expected (it-IT)

I have implemented a blinds controller but not all uterances are working.

I've translated the utterances from Italian assuming this might make my issue understandable by a larger audience. I can provide the original utterances upon request.

The following utterances work:

  1. Open the <device>
  2. Close the <device>
  3. Set opening <device> to <x> percent
  4. Raise opening <device>
  5. Lower opening <device>

What is not working:

  1. Open <device>
  2. Close <device>
  3. Raise <device>
  4. Raise the <device>
  5. Lower <device>
  6. Lower the <device>
  7. Set opening <device> to <preset name>,
    I've defined a preset but Alexa is not recognizing the name I specified.
  8. Also not working: the state of the range controller. I'm unable to find an utterance that will report the state of the range controller, despite it being listed as supported.

I'd love to understand how to avoid specifying the controller instance while raising and lowering the blinds (I assume "opening" is comming from the asset id Alexa.Setting.Opening). This should be possibile according to the utterances documented.

I'm also keen in being able to get the status of the blinds, and of course being able to specify a few presets.

skill ID: amzn1.ask.skill.2f2aa1a3-33f9-4f17-949a-52f1479144

Discovery.Response

{
    "endpointId": "DHA__RANGE_CONTROLLER__18",
    "manufacturerName": "Duchaine Home Automation",
    "friendlyName": "Gara",
    "description": "Test porta garage",
    "displayCategories": [
        "INTERIOR_BLIND"
    ],
    "capabilities": [
        {
            "type": "AlexaInterface",
            "interface": "Alexa",
            "version": "3"
        },
        {
            "type": "AlexaInterface",
            "interface": "Alexa.EndpointHealth",
            "version": "3",
            "properties": {
                "supported": [
                    {
                        "name": "connectivity"
                    }
                ],
                "proactivelyReported": true,
                "retrievable": true
            }
        },
        {
            "type": "AlexaInterface",
            "interface": "Alexa.RangeController",
            "instance": "Door.Opening",
            "version": "3",
            "properties": {
                "supported": [
                    {
                        "name": "rangeValue"
                    }
                ],
                "proactivelyReported": true,
                "retrievable": true
            },
            "capabilityResources": {
                "friendlyNames": [
                    {
                        "@type": "asset",
                        "value": {
                            "assetId": "Alexa.Setting.Opening"
                        }
                    }
                ]
            },
            "configuration": {
                "supportedRange": {
                    "minimumValue": 0,
                    "maximumValue": 100,
                    "precision": 1
                },
                "unitOfMeasure": "Alexa.Unit.Percent"
            },
            "presets": [
                {
                    "rangeValue": 100,
                    "presetResources": {
                        "friendlyNames": [
                            {
                                "@type": "asset",
                                "value": {
                                    "assetId": "Alexa.Value.Maximum"
                                }
                            },
                            {
                                "@type": "asset",
                                "value": {
                                    "assetId": "Alexa.Value.High"
                                }
                            },
                            {
                                "@type": "text",
                                "value": {
                                    "text": "Open",
                                    "locale": "en-US"
                                }
                            },
                            {
                                "@type": "text",
                                "value": {
                                    "text": "Aperto",
                                    "locale": "it-IT"
                                }
                            }
                        ]
                    }
                },
                {
                    "rangeValue": 35,
                    "presetResources": {
                        "friendlyNames": [
                            {
                                "@type": "asset",
                                "value": {
                                    "assetId": "Alexa.Value.Medium"
                                }
                            },
                            {
                                "@type": "text",
                                "value": {
                                    "text": "Half",
                                    "locale": "en-US"
                                }
                            },
                            {
                                "@type": "text",
                                "value": {
                                    "text": "meta",
                                    "locale": "it-IT"
                                }
                            },
                            {
                                "@type": "text",
                                "value": {
                                    "text": "cane",
                                    "locale": "it-IT"
                                }
                            }
                        ]
                    }
                },
                {
                    "rangeValue": 0,
                    "presetResources": {
                        "friendlyNames": [
                            {
                                "@type": "asset",
                                "value": {
                                    "assetId": "Alexa.Value.Minimum"
                                }
                            },
                            {
                                "@type": "asset",
                                "value": {
                                    "assetId": "Alexa.Value.Low"
                                }
                            },
                            {
                                "@type": "text",
                                "value": {
                                    "text": "Closed",
                                    "locale": "en-US"
                                }
                            },
                            {
                                "@type": "text",
                                "value": {
                                    "text": "Chiuso",
                                    "locale": "it-IT"
                                }
                            }
                        ]
                    }
                }
            ],
            "semantics": {
                "actionMappings": [
                    {
                        "@type": "ActionsToDirective",
                        "actions": [
                            "Alexa.Actions.Close"
                        ],
                        "directive": {
                            "name": "SetRangeValue",
                            "payload": {
                                "rangeValue": 0
                            }
                        }
                    },
                    {
                        "@type": "ActionsToDirective",
                        "actions": [
                            "Alexa.Actions.Open"
                        ],
                        "directive": {
                            "name": "SetRangeValue",
                            "payload": {
                                "rangeValue": 100
                            }
                        }
                    },
                    {
                        "@type": "ActionsToDirective",
                        "actions": [
                            "Alexa.Actions.Lower"
                        ],
                        "directive": {
                            "name": "AdjustRangeValue",
                            "payload": {
                                "rangeValueDelta": -30,
                                "rangeValueDeltaDefault": false
                            }
                        }
                    },
                    {
                        "@type": "ActionsToDirective",
                        "actions": [
                            "Alexa.Actions.Raise"
                        ],
                        "directive": {
                            "name": "AdjustRangeValue",
                            "payload": {
                                "rangeValueDelta": 30,
                                "rangeValueDeltaDefault": false
                            }
                        }
                    }
                ],
                "stateMappings": [
                    {
                        "@type": "StatesToValue",
                        "states": [
                            "Alexa.States.Closed"
                        ],
                        "value": 0
                    },
                    {
                        "@type": "StatesToRange",
                        "states": [
                            "Alexa.States.Open"
                        ],
                        "range": {
                            "minimumValue": 1,
                            "maximumValue": 100
                        }
                    }
                ]
            }
        }
    ]
}
alexa smart homesmart homeutterancesuser experience
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Gaetano@Amazon avatar image
Gaetano@Amazon answered

Hello and thanks for your post.

Can you share the original Italian utterances please?

Regards,
Gaetano

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.