Lock won’t appear in Google Assistant

I previously configured Google Assistant to use a developer project to expose my garage door opener from home assistant. I added an August lock, which appears in HA, so I added that:

project_id: !secret GAproject_id
client_id: !secret GAclient_id
access_token: !secret GAaccess_token
agent_user_id: !secret GAagent_user_id
api_password: !secret GAapi_password
api_key: !secret GAHomeGraph_key

expose_by_default: false

entity_config:
    cover.garage_door_opener: 
        name: 'Garage Door'
        expose: true
    lock.front_door:
        name: 'Front Door'
        expose: true

I synced my project, but the front door lock didn’t appear in GA. So I unlinked and linked it again and it still doesn’t appear. I even changed expose by default to true, and that still doesn’t work. What can I do to get the lock to appear on GA?

Thats because locks are not available for google assistant. Pulled this info from the docs:

AVAILABLE DOMAINS
Currently, the following domains are available to be used with Google Assistant, listed with their default types:

group (on/off)
input boolean (on/off)
scene (on)
script (on)
switch (on/off)
fan (on/off)
light (on/off/brightness/rgb color/color temp)
cover (on/off/set position (via set brightness))
media_player (on/off/set volume (via set brightness))
climate (temperature setting)

Bah. Guess I’ll have to expose some scripts as a workaround.

Yeah, I think lock is a new domain. Might take some time before it makes its way through all the components. Also, google needs to understand locks on it’s end too. I assume it would.

This script isn’t working. What am I doing wrong?

unlock_front_door:
  sequence:
    service: lock.unlock
      data:
        entity_id: lock.lock_front_door
unlock_front_door:
  sequence:
    service: lock.unlock
    data:
      entity_id: lock.lock_front_door

Weird. In addition to setting temperature, I can also access mode for my broadlink climate component through GA. So works for telling google to “set thermostat to cool/heat/off.” How is that possible?

There are 2 versions of google assistant. The cloud version and the non-cloud version. Both have different functionalities.

EDIT: It’s also possible that one or both of these systems has been updated since this thread was made.

EDIT2: It looks like the 2 components were married together and now there is only 1? Not sure, I don’t use cloud. Either way, I can no longer find the documentation for the cloud version of google assistant. It now points to the normal google assistant documentation.

hey, sorry for this old thread, seems locks is a supported domain, i expposed to GA , i can see it, i can control it with the google home app

But how to use the keywords when speaking to a google device ? i tried open/close , on/off ?? it doesnt recognize it?

You can now control your locks using Google Home.

Things you can ask:

  • Ok Google, lock
  • Ok Google, unlock
  • Ok Google, is locked?

Benoit

And if you cannot remember any of these, you can always create routines In Google Home with custom starter sentences to do add your favorite commands.

Don’t prefer to use routines… But I tried those xxx lock/unlock commands, they just guide me to Google web results… Allthough I see the device visible in my Google home hub devices, and also on home app om android, I can lock / unlock from there … Don’t understand

Maybe I need to set a pin? I don’t have any, since it’s a lock for my cats :+), coming from the sureflap integration…

I can control the device from the Google home app, so it must work with voice too without a pin?

Ok found it … Needs to be…
Lock/unlock xxx
Instead of
Xxx lock/unlock…

Very strange, cause I was used to say light/switch on/off

For lock I need to reverse it seems …