Skip to main content

Python API for Sesame smart locks

Project description

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("abc@i-lovecandyhouse.co",
                                  "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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysesame-0.2.0.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

pysesame-0.2.0-py2.py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page