- 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)
Release files for sinricpro 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sinricpro-0.0.9.tar.gz | 9.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sinricpro-0.0.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:24.6 kB
Release files / sinricpro-0.0.9.tar.gz
| Download URL | sinricpro-0.0.9.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
324a1fcbe1c2914231fdee0d1ff9018a6547a523e8df220f7520bfbe06438d57
|
|
BLAKE2b-256 checksum How to use checksums |
31cb227015b8b23d1161a8a56f059715c3490720ee94e0f02ea6e209dd885c73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / sinricpro-0.0.9-py3-none-any.whl
| Download URL | sinricpro-0.0.9-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
46504e39c276ecb33f3a56118dbaac5b23061eefedbe370293afd33c768ad985
|
|
BLAKE2b-256 checksum How to use checksums |
f17a83ec8992c4d3d695e9fcca14d59e3d0dc5b4472d508604313c3e874f479a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|