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 hashes)
Built Distribution
sinricpro-0.0.9-py3-none-any.whl
(15.5 kB
view hashes)
Close
Hashes for sinricpro-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46504e39c276ecb33f3a56118dbaac5b23061eefedbe370293afd33c768ad985 |
|
MD5 | e0b87ca9f8e677f4c8a52fa0b1565a52 |
|
BLAKE2b-256 | f17a83ec8992c4d3d695e9fcca14d59e3d0dc5b4472d508604313c3e874f479a |