Skip to content

rmevans9/python-wink

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Wink API

Script works but no longer maintained. Looking for maintainers.

Python implementation of the Wink API supporting switches, light bulbs and sensors.

Script by John McLaughlin.

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.setState(!switch.state())

About

Python implementation of the Wink API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%