OpenWonderLabs / SwitchBotAPI

SwitchBot Open API Documents
870 stars 71 forks source link

Change auto lock settings from API #313

Open alBronko opened 4 months ago

alBronko commented 4 months ago

Current Situation

it is not possible to change auto lock setting for the SB lock.

Proposed Change

Allow turning auto lock off and on from API

Additional Context

I would find it very useful to be able to have the auto lock on a schedule of some sort. like when the kids are home alone, auto lock is on. During the evening, turn it off. or have it go on at sunset.

I can implement it in python if you open the option.

ThatProgrammerr commented 2 months ago

+1 I think this could be really useful for me too. Not really for scheduling, but being able to disable Auto Lock when the door is open, as otherwise my door locks itself while the door is open and it gets annoying, but I also don't want my door to remain unlocked once closed, if for any reason my request to lock it fails. I am aware there are two different options, one for if the door detects it's closed and one that is just on a timer, but my magnet doesn't work for some reason so the lock always thinks it's open.