I have named my Smart AC as Air Conditioner and when i am trying to give Hindi command to start Air Conditioner(एयर कंडीशनर को चालू करो), google process the request and send me the EXECUTE intent request for all smart AC's linked to my account.
As you can see below SYNC response there are 5 devices whose Friendly Names are
- Air Conditioner(labtest)
- Bedroom A/C(stest240)
- Kitchen A/C(stest98)
- Room A/C(stest250)
- Showroom A/C(stest236)
{
"requestId": "8348398861868564002",
"payload": {
"agentUserId": "1234",
"devices": [
{
"id": "stest98",
"name": {
"name": "Kitchen AC",
"defaultNames": [
"Smart Air Conditioner"
]
},
"type": "action.devices.types.THERMOSTAT",
"traits": [
"action.devices.traits.OnOff",
"action.devices.traits.TemperatureSetting",
"action.devices.traits.Toggles"
],
"willReportState": false,
"deviceInfo": {
"manufacturer": "smart-home",
"model": "hs1234",
"hwVersion": "3.2",
"swVersion": "11.4"
},
"attributes": {
"availableThermostatModes": [
"cool",
"dry",
"fan-only"
],
"thermostatTemperatureUnit": "C",
"thermostatTemperatureRange": {
"minThresholdCelsius": 16,
"maxThresholdCelsius": 30
},
"availableToggles": [
{
"name": "horizontalswing",
"name_values": [
{
"name_synonym": [
"horizontal swing"
],
"lang": "en"
},
{
"name_synonym": [
"हॉरिजोंटल स्विंग",
"हॉरिजॉन्टल स्विंग"
],
"lang": "hi"
}
]
},
{
"name": "verticalswing",
"name_values": [
{
"name_synonym": [
"vertical swing"
],
"lang": "en"
},
{
"name_synonym": [
"वर्टिकल स्विंग",
"वर्टीकल स्विंग"
],
"lang": "hi"
}
]
}
]
}
},
{
"id": "stest250",
"name": {
"name": "Room AC",
"defaultNames": [
"Smart Air Conditioner"
]
},
"type": "action.devices.types.THERMOSTAT",
"traits": [
"action.devices.traits.OnOff",
"action.devices.traits.TemperatureSetting",
"action.devices.traits.Toggles"
],
"willReportState": false,
"deviceInfo": {
"manufacturer": "smart-home",
"model": "hs1234",
"hwVersion": "3.2",
"swVersion": "11.4"
},
"attributes": {
"availableThermostatModes": [
"cool",
"dry",
"fan-only"
],
"thermostatTemperatureUnit": "C",
"thermostatTemperatureRange": {
"minThresholdCelsius": 16,
"maxThresholdCelsius": 30
},
"availableToggles": [
{
"name": "horizontalswing",
"name_values": [
{
"name_synonym": [
"horizontal swing"
],
"lang": "en"
},
{
"name_synonym": [
"हॉरिजोंटल स्विंग",
"हॉरिजॉन्टल स्विंग"
],
"lang": "hi"
}
]
},
{
"name": "verticalswing",
"name_values": [
{
"name_synonym": [
"vertical swing"
],
"lang": "en"
},
{
"name_synonym": [
"वर्टिकल स्विंग",
"वर्टीकल स्विंग"
],
"lang": "hi"
}
]
}
]
}
},
{
"id": "stest240",
"name": {
"name": "Bedroom A/C",
"defaultNames": [
"Smart Air Conditioner"
]
},
"type": "action.devices.types.THERMOSTAT",
"traits": [
"action.devices.traits.OnOff",
"action.devices.traits.TemperatureSetting",
"action.devices.traits.Toggles"
],
"willReportState": false,
"deviceInfo": {
"manufacturer": "smart-home",
"model": "hs1234",
"hwVersion": "3.2",
"swVersion": "11.4"
},
"attributes": {
"availableThermostatModes": [
"cool",
"dry",
"fan-only"
],
"thermostatTemperatureUnit": "C",
"thermostatTemperatureRange": {
"minThresholdCelsius": 16,
"maxThresholdCelsius": 30
},
"availableToggles": [
{
"name": "horizontalswing",
"name_values": [
{
"name_synonym": [
"horizontal swing"
],
"lang": "en"
},
{
"name_synonym": [
"हॉरिजोंटल स्विंग",
"हॉरिजॉन्टल स्विंग"
],
"lang": "hi"
}
]
},
{
"name": "verticalswing",
"name_values": [
{
"name_synonym": [
"vertical swing"
],
"lang": "en"
},
{
"name_synonym": [
"वर्टिकल स्विंग",
"वर्टीकल स्विंग"
],
"lang": "hi"
}
]
}
]
}
},
{
"id": "stest236",
"name": {
"name": "Showroom Ac",
"defaultNames": [
"Smart Air Conditioner"
]
},
"type": "action.devices.types.THERMOSTAT",
"traits": [
"action.devices.traits.OnOff",
"action.devices.traits.TemperatureSetting",
"action.devices.traits.Toggles"
],
"willReportState": false,
"deviceInfo": {
"manufacturer": "smart-home",
"model": "hs1234",
"hwVersion": "3.2",
"swVersion": "11.4"
},
"attributes": {
"availableThermostatModes": [
"cool",
"dry",
"fan-only"
],
"thermostatTemperatureUnit": "C",
"thermostatTemperatureRange": {
"minThresholdCelsius": 16,
"maxThresholdCelsius": 30
},
"availableToggles": [
{
"name": "verticalswing",
"name_values": [
{
"name_synonym": [
"vertical swing"
],
"lang": "en"
},
{
"name_synonym": [
"वर्टिकल स्विंग",
"वर्टीकल स्विंग"
],
"lang": "hi"
}
]
}
]
}
},
{
"id": "labtest",
"name": {
"name": "Air Conditioner",
"defaultNames": [
"Smart Air Conditioner"
]
},
"type": "action.devices.types.THERMOSTAT",
"traits": [
"action.devices.traits.OnOff",
"action.devices.traits.TemperatureSetting",
"action.devices.traits.Toggles"
],
"willReportState": false,
"deviceInfo": {
"manufacturer": "smart-home",
"model": "hs1234",
"hwVersion": "3.2",
"swVersion": "11.4"
},
"attributes": {
"availableThermostatModes": [
"cool",
"dry",
"fan-only"
],
"thermostatTemperatureUnit": "C",
"thermostatTemperatureRange": {
"minThresholdCelsius": 16,
"maxThresholdCelsius": 30
},
"availableToggles": [
{
"name": "horizontalswing",
"name_values": [
{
"name_synonym": [
"horizontal swing"
],
"lang": "en"
},
{
"name_synonym": [
"हॉरिजोंटल स्विंग",
"हॉरिजॉन्टल स्विंग"
],
"lang": "hi"
}
]
}
]
}
}
]
}
}
Current Result:
Google EXECUTE INTENT Request for all devices when i am giving command एयर कंडीशनर को चालू करो.
{
"version": "2.0",
"routeKey": "$default",
"rawPath": "/",
"rawQueryString": "",
"body": "{"inputs":[{"context":{"locale_country":"IN","locale_language":"hi"},"intent":"action.devices.EXECUTE","payload":{"commands":[{"devices":[{"id":"stest250"},{"id":"stest240"},{"id":"stest98"},{"id":"stest236"},{"id":"labtest"}],"execution":[{"command":"action.devices.commands.OnOff","params":{"on":true}}]}]}}],"requestId":"7557367445885049606"}",
"isBase64Encoded": false
}
Expected Result:
Google EXECUTE INTENT Request for air conditioner device only when i am giving command एयर कंडीशनर को चालू करो.