actions-on-googlehome-automation

Actions on Google Smart Home Skill: Room Hint / Home Graph


The documentation at https://developers.google.com/actions/smarthome/create-app#actiondevicessync mentions that the roomHint field of the JSON response to the sync request can be used to have Google automatically assign devices to correct rooms.

However, no matter what I return in that field, the user still has to manually assign every device to a room and I cannot get Google to automatically recognize the correct room using this roomHint field

Here's an example response:

{
  "requestId": "500166151965294748",
  "payload": {
    "devices": [
      {
        "id": "9",
        "type": "action.devices.types.LIGHT",
        "traits": [
          "action.devices.traits.OnOff"
        ],
        "name": {
          "name": "Light"
        },
        "willReportState": false,
        "roomHint": "Attic"
      }
    ]
  }
}

Solution

  • Right now supplying a value for the roomHint is not used by the HomeGraph to determine which room this device is in.