Skip to main content

SINRIC PRO

This is a python library for alexa home automation skill

SINRIC PRO https://sinric.pro/

Python-2.7 Not Supported

Functions:

  • Automate your home using alexa with sinricpro

Installation :

Python3

python3 -m pip install sinricpro --user

Pro Switch Demo:

from sinric import SinricPro
from sinric import SinricProUdp
from credentials import appKey, deviceId, secretKey
from time import sleep

def Events():
    while True:
        # Select as per your requirements
        # REMOVE THE COMMENTS TO USE
        # client.event_handler.raiseEvent(deviceId1, 'setPowerState',data={'state': 'On'})
        sleep(2) #Sleep for 2 seconds

def onPowerState(did, state):
    # Alexa, turn ON/OFF Device
    print(did, state)
    return True, state


eventsCallbacks={
    "Events": Events
}

callbacks = {
'powerState': onPowerState
}

if __name__ == '__main__':
    client = SinricPro(appKey, deviceId, callbacks,event_callbacks=eventsCallbacks, enable_trace=False,secretKey=secretKey)
    udp_client = SinricProUdp(callbacks,deviceId,enable_trace=False)  # Set it to True to start logging request Offline Request/Response
    client.handle_all(udp_client)

Metadata

Release files for sinricpro 2.3.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sinricpro 2.3.5
File Size Uploaded
sinricpro-2.3.5.tar.gz 10.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sinricpro 2.3.5
File Interpreter ABI Platform
sinricpro-2.3.5-py3-none-any.whl Python 3 none any Details

Total release size: 28.7 kB

Release files / sinricpro-2.3.5.tar.gz

Download URL sinricpro-2.3.5.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
214da5759e9e132a65a69443f6f832a483a883337682d1c0ab8ea5792bc21c76
BLAKE2b-256 checksum
How to use checksums
7044e270a8c3bcc678e686684b8d3ef1a9832bfcc060c6a1b75978840519971d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5

Release files / sinricpro-2.3.5-py3-none-any.whl

Download URL sinricpro-2.3.5-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5458d93e0208310d85711c2b55f6d4009ebf8209383abcaedc8907ee180fa57b
BLAKE2b-256 checksum
How to use checksums
529e87308d931cb535f503d0ef84f94fabb33c842443feeac0490b6e083dcad9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5

Release history Release notifications | RSS feed

6.0.0

2 release files

5.3.2

2 release files

5.3.1

2 release files

5.2.1

2 release files

5.0.1

2 release files

5.0.0

2 release files

3.1.1

2 release files

3.1.0

2 release files

3.0.0

2 release files

2.7.7

2 release files

2.7.5

2 release files

2.7.4

2 release files

2.7.3

2 release files

2.7.2

2 release files

2.7.1

2 release files

2.6.4

2 release files

2.6.3

2 release files

2.6.2

2 release files

2.6.1

2 release files

2.5.3

2 release files

2.5.1

2 release files

2.4.1

2 release files

2.4.0

2 release files

2.3.9

2 release files

2.3.8

2 release files

2.3.7

2 release files

2.3.6

2 release files

This release

2.3.5 This release

2 release files

2.3.4

2 release files

2.2.4

2 release files

2.2.3

2 release files

2.2.2

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page