question

Philipp Grabner avatar image
Philipp Grabner asked

ModeController is not working anymore in German

I have my own smart home implementation using AVS scripts.
On June 9th I updated my template for BLINDS to include addtional commands using ModeController.

I added a couple of devices using the same template.
This was working fine. I could use voice commands for all the new commands on all devices.

This week I wanted to add some more devices using the same template.
However for the new devices Alexa won't accept the voice commands anymore.
I can see the different modes in the App and I am able to select them there.
It's just not working for the voice commands.

On the previously added devices the voice commands are still working.
I tried deleting one of the old devices and recreating it, resulting in the same problem.

This is my template:

{
  "event": {
    "header": {
      "namespace": "Alexa.Discovery",
      "name": "AddOrUpdateReport",
      "messageId": "e6bd8529-efe3-70db-d370-e51ccf22aefc",
      "eventCorrelationToken": "0815",
      "payloadVersion": "3"
    },
    "payload": {
      "endpoints": [
        {
          "endpointId": "1995",
          "manufacturerName": "Edomi",
          "description": "Jalousie Küchentür Terrasse",
          "friendlyName": "Jalousie Küchentür",
          "displayCategories": [
            "EXTERIOR_BLIND"
          ],
          "cookie": {},
          "capabilities": [
            {
              "type": "AlexaInterface",
              "interface": "Alexa.ModeController",
              "instance": "Blind.Mode",
              "version": "3",
              "properties": {
                "supported": [
                  {
                    "name": "mode"
                  }
                ],
                "retrievable": true,
                "proactivelyReported": true,
                "nonControllable": false
              },
              "capabilityResources": {
                "friendlyNames": [
                  {
                    "@type": "text",
                    "value": {
                      "text": "Betriebsart",
                      "locale": "de-DE"
                    }
                  }
                ]
              },
              "configuration": {
                "ordered": false,
                "supportedModes": [
                  {
                    "value": "stop",
                    "modeResources": {
                      "friendlyNames": [
                        {
                          "@type": "text",
                          "value": {
                            "text": "Stopp",
                            "locale": "de-DE"
                          }
                        }
                      ]
                    }
                  },
                  {
                    "value": "stepUp",
                    "modeResources": {
                      "friendlyNames": [
                        {
                          "@type": "text",
                          "value": {
                            "text": "Heller",
                            "locale": "de-DE"
                          }
                        }
                      ]
                    }
                  },
                  {
                    "value": "stepDown",
                    "modeResources": {
                      "friendlyNames": [
                        {
                          "@type": "text",
                          "value": {
                            "text": "Dunkler",
                            "locale": "de-DE"
                          }
                        }
                      ]
                    }
                  },
                  {
                    "value": "auto",
                    "modeResources": {
                      "friendlyNames": [
                        {
                          "@type": "text",
                          "value": {
                            "text": "Automatik",
                            "locale": "de-DE"
                          }
                        },
                        {
                          "@type": "text",
                          "value": {
                            "text": "Auto",
                            "locale": "de-DE"
                          }
                        },
                        {
                          "@type": "text",
                          "value": {
                            "text": "Automatikbetrieb",
                            "locale": "de-DE"
                          }
                        }
                      ]
                    }
                  },
                  {
                    "value": "manual",
                    "modeResources": {
                      "friendlyNames": [
                        {
                          "@type": "text",
                          "value": {
                            "text": "Handbetrieb",
                            "locale": "de-DE"
                          }
                        },
                        {
                          "@type": "text",
                          "value": {
                            "text": "Hand",
                            "locale": "de-DE"
                          }
                        },
                        {
                          "@type": "text",
                          "value": {
                            "text": "Manuell",
                            "locale": "de-DE"
                          }
                        }
                      ]
                    }
                  },
                  {
                    "value": "disable",
                    "modeResources": {
                      "friendlyNames": [
                        {
                          "@type": "text",
                          "value": {
                            "text": "Sperren",
                            "locale": "de-DE"
                          }
                        },
                        {
                          "@type": "text",
                          "value": {
                            "text": "Sperre",
                            "locale": "de-DE"
                          }
                        }
                      ]
                    }
                  },
                  {
                    "value": "enable",
                    "modeResources": {
                      "friendlyNames": [
                        {
                          "@type": "text",
                          "value": {
                            "text": "Freigeben",
                            "locale": "de-DE"
                          }
                        },
                        {
                          "@type": "text",
                          "value": {
                            "text": "Freigabe",
                            "locale": "de-DE"
                          }
                        },
                        {
                          "@type": "text",
                          "value": {
                            "text": "Entsperren",
                            "locale": "de-DE"
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            },
            {
              "type": "AlexaInterface",
              "interface": "Alexa.RangeController",
              "instance": "Blind.Height",
              "version": "3",
              "properties": {
                "supported": [
                  {
                    "name": "opening"
                  }
                ],
                "proactivelyReported": true,
                "retrievable": true
              },
              "capabilityResources": {
                "friendlyNames": [
                  {
                    "@type": "text",
                    "value": {
                      "text": "Behanghöhe",
                      "locale": "de-DE"
                    }
                  }
                ]
              },
              "configuration": {
                "supportedRange": {
                  "minimumValue": 0,
                  "maximumValue": 100,
                  "precision": 1
                },
                "unitOfMeasure": "Alexa.Unit.Percent"
              },
              "semantics": {
                "actionMappings": [
                  {
                    "@type": "ActionsToDirective",
                    "actions": [
                      "Alexa.Actions.Close"
                    ],
                    "directive": {
                      "name": "SetRangeValue",
                      "payload": {
                        "rangeValue": 100
                      }
                    }
                  },
                  {
                    "@type": "ActionsToDirective",
                    "actions": [
                      "Alexa.Actions.Open"
                    ],
                    "directive": {
                      "name": "SetRangeValue",
                      "payload": {
                        "rangeValue": 0
                      }
                    }
                  },
                  {
                    "@type": "ActionsToDirective",
                    "actions": [
                      "Alexa.Actions.Lower"
                    ],
                    "directive": {
                      "name": "SetRangeValue",
                      "payload": {
                        "rangeValue": 100
                      }
                    }
                  },
                  {
                    "@type": "ActionsToDirective",
                    "actions": [
                      "Alexa.Actions.Raise"
                    ],
                    "directive": {
                      "name": "SetRangeValue",
                      "payload": {
                        "rangeValue": 0
                      }
                    }
                  }
                ],
                "stateMappings": [
                  {
                    "@type": "StatesToValue",
                    "states": [
                      "Alexa.States.Open"
                    ],
                    "value": 0
                  },
                  {
                    "@type": "StatesToRange",
                    "states": [
                      "Alexa.States.Closed"
                    ],
                    "range": {
                      "minimumValue": 1,
                      "maximumValue": 100
                    }
                  }
                ]
              }
            },
            {
              "type": "AlexaInterface",
              "interface": "Alexa.RangeController",
              "instance": "Blind.Angle",
              "version": "3",
              "properties": {
                "supported": [
                  {
                    "name": "rangeValue"
                  }
                ],
                "proactivelyReported": true,
                "retrievable": true,
                "nonControllable": false
              },
              "capabilityResources": {
                "friendlyNames": [
                  {
                    "@type": "text",
                    "value": {
                      "text": "Lamellenwinkel",
                      "locale": "de-DE"
                    }
                  }
                ]
              },
              "configuration": {
                "supportedRange": {
                  "minimumValue": 1000,
                  "maximumValue": 1090,
                  "precision": 1
                },
                "unitOfMeasure": "Alexa.Unit.Angle.Degrees"
              }
            }
          ]
        }
      ],
      "scope": {
        "type": "BearerToken",
        "token": "access-token-from-Amazon"
      }
    }
  }
}

"endpointId", "description", "friendlyName" are the only things I vary between the devices.

The following commands are alway working:
"Jalousie Küchentür öffnen" (kitchen door blind open)
"Jalousie Küchentür auf 50%" (kitchen door blind to 50%)

The following commands are only working for the previously added devices:
"Jalousie Küchentür stop" (kitchen door blind stop)
"Jalousie Küchentür sperren" (kitchen door blind block)
"Jalousie Küchentür Automatikbetrieb" (kitchen door blind automatic mode)

If I request all Smarthome Device configurations through the API

https://alexa.amazon.de/api/phoenix?includeRelationships=true

I can see that old and new devices only differ by some timestamps and IDs, nothing else.

I really don't understand why this stopped working.

alexa voice servicealexa smart homegerman
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

Chihiro@Amazon avatar image
Chihiro@Amazon answered

Hi Philipp,

Thank you for posting. It looks you have raised a contact us case. We will follow up with you directly on the case.

10 |5000

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