Skip to content

trisk/pysesame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pysesame

Python API for controlling Sesame smart locks made by CANDY HOUSE, Inc.

This is based on the cloud API for Sesame.

Requirements

Your Sesame needs to be paired with the mobile app in virtual station mode, or a standalone Wi-Fi Access Point.

Dependencies

pysesame depends on the Python package, requests. You can install dependencies using pip install -r requirements.txt

Usage

>> import pysesame

>> sesames = pysesame.get_sesames("[email protected]",
                                  "super-strong-password")
>> [s.nickname for s in sesames]
['Front Door', 'Back Door']

>> front_door = next(s for s in sesames if s.nickname == "Front Door")
>> front_door.device_id
'FEEDFACE1234'
>> front_door.api_enabled
True
>> front_door.is_unlocked
False
>> front.door.unlock()
True
>> front_door.is_unlocked
True
>> front.door.is_unlocked = False
>> front_door.is_unlocked
False

License

pysesame is released under the MIT license.

About

Python API for Sesame smart locks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages