Access Google Home device (lock)

I have set up Lockly locks in my home. This company will be adding home assistant integration hopefully early next year.

In the meantime, it does work with Google Home. I’m hoping to be able to at least lock my locks via home assistant though.

I have got them set up in Google Home. No problems

I have nabu casa too.

Wondering if it’s possible to expose Google Home devices into home assistant? I can’t seem to work out how to do it specifically for this lock.

Thanks

Someone may correct me, but I don’t believe that’s possible. What you can do is setup a helper in Home Assistant, expose that to Google Home, then setup Google Home routines to manipulate the lock.

You could go a step farther and use the Google Assistant SDK to send Google Assistant commands to lock/unlock via Google Home.

1 Like

been trying this for the last hour - I can get a switch/button to show in google home devices but it’s not letting me use them as a routine starter. frustrating

ill keep trying thanks for your help!

Yep. I thought it would be simple but it looks like you can’t use an input boolean as a trigger in Google Home.

What I ended up doing.

  1. Created a toggle helper calling it ‘fakelock’
  2. Created a template helper with this template:
lock:
  - platform: template
    name: FakeLockTemp
    value_template: "{{ is_state('input_boolean.fakelock', 'on') }}"
    lock:
      - service: input_boolean.turn_on
        entity_id: input_boolean.back_door_lock_bool
    unlock:
      - service: input_boolean.turn_off
        entity_id: input_boolean.back_door_lock_bool
  1. Expose the template binary sensor to GH.
  2. Use that sensor as a trigger in GH.

I can’t fully test as it would be cyclic for me, but I think that’ll get you in the right direction.

1 Like

Thank you so much! This makes sense. Definitely set up the Google STK as well, but it’s a bit of overkill for this use case. Tho I do have announcements using Google Home devices so I like the idea of it. Not interrupting music.