Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 1.08 KB

README.md

File metadata and controls

19 lines (14 loc) · 1.08 KB

Python Wink API

Join the chat at https://gitter.im/python-wink/python-wink Build Status Coverage Status

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.

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