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.8.tar.gz
(7.5 kB
view hashes)
Built Distribution
sinricpro-0.0.8-py3-none-any.whl
(13.3 kB
view hashes)
Close
Hashes for sinricpro-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 104876f43a075b293a3046b13f3bbcba0ff5090c4b311cd629cc77927b6f8cdf |
|
MD5 | 69a990d9c5f7d5658868b31a4eecfde8 |
|
BLAKE2b-256 | 73f60cbea064f98035da6d7e414561e7383335990a0694fe0f08c0f0d957f67c |