-
Notifications
You must be signed in to change notification settings - Fork 3
Comments
I added a fix in the upstream library (dknowles2/pyschlage#51) which should hopefully fix the problem. Try updating to the Cheers! |
Thank you for the quick update. Now I'm getting "Retrying setup: 'lockState'"
|
I suspected that might happen. :-) If |
encode Smart WiFi Note: i previously had the mcnutter1 fork loaded and it was working for about 3 weeks I have update home assistant since but don't know exactly when it stopped working. figured id try your repo since it seam to have more features. |
Are you able to run the script in this gist? https://gist.github.com/dknowles2/0aecca6963ffc408163763b074896f06 It should output a redacted version of the API output that would be very helpful for me to properly debug the problem. (I can also attempt to paper over this another way if you can't, but the lock state not being present in the response is surprising to me) |
I'm running HA on a pi4 with the HA OS, don't think python is installed. I can try to run fro my local PC? |
Yes, local PC should be fine. You'll likely need to run:
first to make sure it pulls in the necessary library. |
SOLVED! Thanks for the help! Using your debug.py (modified slightly .. see below), I verified that was the problem, that lock did not have all the attributes. #!/usr/bin/python3
from getpass import getpass
from pprint import pprint
import pyschlage
from pyschlage import Lock
username = input("Schlage username: ")
password = getpass()
auth = pyschlage.Auth(username, password)
resp = auth.request("get", Lock.request_path(), params={"archetype": "lock"})
for lock in resp.json():
with open('debug.txt', 'a') as f:
for key, value in lock.items():
f.write('%s:%s\n' % (key, value)) |
Ah, that's very useful info! So I need to defend against that a bit more in the code and make sure the integration still works. I'll keep this open to track. |
If it helps here is the JSON output from that device
|
I just pushed |
I just installed this integration and getting the above error. Below is the log.
Thank you
The text was updated successfully, but these errors were encountered: