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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2Python 3

File details

Details for the file pysesame-0.2.0.tar.gz.

File metadata

  • Download URL: pysesame-0.2.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pysesame-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b8152b36ee3b7e7dd52a4ece166925f0dd5034809d446135d7fa2c4fb3f3ba0b
MD5 53bfa1096302e4ef39ecdb3667fed8a3
BLAKE2b-256 8ef1e4537142607301aba8451f6bb6c6d7c965e1bc2ee2b10d88e15de0801d26

See more details on using hashes here.

File details

Details for the file pysesame-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pysesame-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ee33172e7d4ecb6e8c0cfcd31f6e3bbd99490cdfa77368d37140f60b082d0ad4
MD5 b98e0bd5f9f082697bab0c881be7cfc5
BLAKE2b-256 0ccf437f32c3bd34de1eee10ef3c3ea8b6b02fffed16fd8e2de91d34602d3a4d

See more details on using hashes here.

Supported by

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