A python package for your sinric-pro alexa skill
Project description
- This is a python library for alexa home automation skill
SINRIC PRO —> https://sinric.pro/
Functions:
Automate your home using alexa with sinricpro
Installation :
Python3
python3 -m pip install pysinric --user
Pro Switch Demo:
from sinric import SinricPro
from sinric import SinricProUdp
from credentials import apiKey, deviceId
def power_state(did, state):
# Alexa, turn ON/OFF Device
print(did, state['state'])
return True, state['state']
callbacks = {
'powerState': power_state
}
if __name__ == '__main__':
client = SinricPro(apiKey, deviceId, callbacks, enable_trace=False)
udp_client = SinricProUdp(callbacks)
udp_client.enableUdpPrint(False) # Set it to True to start printing request UDP JSON
client.handle_all(udp_client)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sinricpro-0.0.9.tar.gz
(9.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
sinricpro-0.0.9-py3-none-any.whl
(15.5 kB
view details)
File details
Details for the file sinricpro-0.0.9.tar.gz.
File metadata
- Download URL: sinricpro-0.0.9.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
324a1fcbe1c2914231fdee0d1ff9018a6547a523e8df220f7520bfbe06438d57
|
|
| MD5 |
a9cb9d48debd2523acce472a4aa3744b
|
|
| BLAKE2b-256 |
31cb227015b8b23d1161a8a56f059715c3490720ee94e0f02ea6e209dd885c73
|
File details
Details for the file sinricpro-0.0.9-py3-none-any.whl.
File metadata
- Download URL: sinricpro-0.0.9-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46504e39c276ecb33f3a56118dbaac5b23061eefedbe370293afd33c768ad985
|
|
| MD5 |
e0b87ca9f8e677f4c8a52fa0b1565a52
|
|
| BLAKE2b-256 |
f17a83ec8992c4d3d695e9fcca14d59e3d0dc5b4472d508604313c3e874f479a
|