gitter-badger / python-wink

Python implementation of the Wink API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Wink API

This script used to be part of Home Assistant. It has been extracted to fit the goal of Home Assistant to not contain any device specific API implementations but rely on open-source implementations of the API.

Authentication

You will need a Wink API bearer token to communicate with the Wink server.

Get yours using this web app.

Example usage

import pywink
pywink.set_bearer_token('YOUR_BEARER_TOKEN')

for switch in pywink.get_switches():
    print(switch.name(), switch.state())
    switch.set_state(!switch.state())

About

Python implementation of the Wink API

License:MIT License


Languages

Language:Python 99.2%Language:Shell 0.8%