ניתוק

אם המשתמש מבטל את הקישור של הפעולה ב-smart home ל-Google Assistant, המילוי מקבל את ה-intent‏ action.devices.DISCONNECT. ה-intent הזה מציין ש-Assistant לא ישלח יותר intents למשתמש הזה, וששירות הענן שלכם צריך להפסיק לקרוא לממשקי ה-API של Google Home Graph (בקשת סנכרון ו-Report State) בשביל המכשירים שלו.

בקשה
{
    "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf",
    "inputs": [{
      "intent": "action.devices.DISCONNECT",
    }]
}
JSON
{}
Node.js
const {smarthome} = require('actions-on-google');
const app = smarthome();
// ...
app.onDisconnect((body, headers) => {
  // TODO Disconnect user account from Google Assistant
  // You can return an empty body
  return {};
});
Java
@Override
public void onDisconnect(
    @NotNull DisconnectRequest disconnectRequest, @Nullable Map<?, ?> map) {
  // TODO Disconnect user account from Google Assistant
  // This function does not return anything
}

למידע נוסף, קראו את מאמרי העזרה בנושא Intent של DISCONNECT.