google-home / smart-home-nodejs

A sample of the Smart Home device control APIs in Actions on Google
Apache License 2.0
888 stars 289 forks source link

Google Smart Home Actions Toggle Trait for Horizontal & Vertical Swing #564

Open arorasam300 opened 1 year ago

arorasam300 commented 1 year ago

I am toggling horizontal swing and vertical swing in Hindi language, but assistant is not taking my command and always take me to a web page.

English Utterance: Start Horizontal Swing on Bedroom A/C. (working) Hindi Utterance: बैडरूम एसी के हॉरिजॉन्टल स्विंग को चालू कर दो.(not working)

I have given all the possible commands in Hindi related to toggle but its not working. Please help me out from this.

Result : Command is to be executed when i am toggling Horizontal swing and vertical swing.

Below is my Google SYNC response:

{ "requestId": "11311483680465073646", "payload": { "agentUserId": "123", "devices": [

    {
        "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"
                        }
                    ]
                }
            ]
        }
    }
]

} }