Schlage Encode Wifi

I just saw this lock on YouTube, really caught my attention!

Any luck on integrating this? Lock status, battery status, entry events, alarm events, lock control - what’s not to like!?

Anyone up for the task? I’ll buy you a Schlage Encode if you can get an integration built.

1 Like

Did you by chance ever try sniffing for exposed endpoints? I’m growing tired of my zwave version of the lock and hoping the wifi enabled version would be more reliable. Also, do you notice any response lag when doing remote lock/unlock? Wondering how they got a battery powered wifi device to run for “months”. Gotta imagine some form of deep sleep mode, which makes me presume some lag on wakeup.

Any updates on this?

I’ve e-mailed Schlage asking for an API and this is the response I got:

Hello,

Thank you for being a Schlage customer. We do not have a public API for Schlage smart locks at this time. I have shared your request for an API with our product team. Your feedback is helpful as we consider future product enhancements.

Thank you for choosing SCHLAGE

1 Like

I reverse engineered some of the app… it authenticates using AWS’s Cognito SAML API… which I couldnt get through… the rest was web sockets for communication which I didnt bother but once getting beyond the auth I appeared promising.

2 Likes

Anyone have luck with integrating the encode? I like the build of these vs the Yale locks and inner part is less bulky than previous connect models.

Would really appreciate some method of integrating the Schlage wifi locks into HA. I need the user-friendly features of the Encode line (setting up time-window PIN codes via the app, that kind of thing) that you can’t really get with the Z-Wave line of locks. But it would still be nice to have the lock status available in HA, and be able to lock the door based on HA events.

1 Like

I am also really keen on having the Schlage Encode integrated. Its a great, easy to use lock, but with home assistant it would be so much better. I emailed Schlage requesting a public API but got the standard response that they will pass on the request. Any smart people who can solve this one and get through the AWS Cognito API?

Just wondering if there is a way to do this using the Alexa smart home skill: https://www.home-assistant.io/integrations/alexa.smart_home/

As the Schlage Encode works with Alexa already, you could basically trigger the Alexa skill (lock/unlock) via home assistant: https://ledstripsandcode.blogspot.com/2019/01/how-to-trigger-alexa-routines-with-home.html

My understanding is you dont need to use voice, or even have an Alexa device?

I am unsure if this setup would provide HA the lock status back from Alexa though - is anyone aware if it would?

Really interested in this as well since my Schlage Connect with z-wave sucks. It is so unreliable through my SmartThings hub.

They had the Schlage Encode WiFi on sale so I bought one after reading about issues with the Z-Wave. Love the lock can get it to do some things with Alexa but cannot wait until HA can work with it.

So I tried this and it works great. You don’t get a lock status from Alexa but you do on your phone from the schlage app.

I created a binary.sensor

‘’’
binary_sensor:

  • platform: template
    sensors:
    people_home:
    value_template: >-
    {{ is_state(‘device_tracker.faiths_s10’, ‘home’)
    or is_state(‘device_tracker.vins_s10’, ‘home’) }}

‘’’

Then went into Customization’s and changed “people_home (binary_sensor)” Device Class to Window and Alexa see’s it as OPEN when everyone is home and CLOSED when you leave. So now when the wife and I go out it auto locks the door. Even if it is already locked it’s not a problem. There is no way for Alexa to do a state check (open or closed) you can only trigger on a state change so you can lock / unlock with a routine.

UPDATE: Alexa will not auto unlock through a routine so this is good to lock up only.

2 Likes

Great to see. So if you can trigger on a state change, you could have HA turn lights on when door is unlocked?

Alexa cannot report back to HA but can control lights exposed to it so yes… would look something like this.

Binary sensor exposed to Alexa as Window (Open = Home, Closed = Not Home)
Using Alexa Routines…
Binary sensor state changes to Open (we are home)
Alexa opens lock
Alexa turns on chosen light

OR you could just have Alexa do the lock and HA do the light upon arrival. I’m sure there are many other other possibilities.

I just wish Alexa could check the condition of the “window” state and not just be triggered when it changes.

When we get the Schlage Encode into HA of course we don’t need this work around. It does make me happy I bought the lock though so far so good and at least I have some control from HA.

UPDATE: Alexa will not auto unlock through a routine so this is good to lock up only.

Has anyone revisited this? WOuld be nice to control this directly though HASS

1 Like

Agreed. I need to make a decision to buy this or the connect soon. I’m hoping to buy this one so I don’t have to deal with z-wave at all in my setup

It sounds like Schlage wants to stay in their own little silo. I have one of these and regret it. Purchase from a different vendor.

How did you expose the alexa device integrations back into the HA devices / entities?

I didn’t…

1: My Schlage Lock is integrated and controllable by Alexa
2: Alexa has no way of knowing if I and my wife are home or not
3: I use person.vinny and person.faith and assigned my trackers to them, I use bluetooth and nmap to increase accuracy
4: I made a binary sensor called people_home using the person.vinny & faith

binary_sensor:
  - platform: template
    sensors:
      people_home:
        value_template: >-
          {{ is_state('person.faith', 'home')
             or is_state('person.vinny', 'home') }}

5: I went into Customization and changed the entity people_home binary sensor device class to window
6: I then exposed that entity to Alexa. It see’s it as people_home “window” is “open” when we both are home or “closed” when we both are gone.
7: I wrote an Alexa routine to lock my schlage lock when it see’s the “window” goes from open to closed

Unfortunately Alexa will not automatically open the lock so you cannot run a routine to unlock when you return but at least I know I’m not forgetting to lock up.

It’s a bit of work, probably took an hour but it has been working perfectly. Whenever we go out my schlage app notifies me the door has locked within a minute or 2 of us leaving if I forget it.