Skip to content

Commit

Permalink
correction on use example
Browse files Browse the repository at this point in the history
elric91 authored Feb 4, 2018
1 parent 590dc76 commit 29570f7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -2,10 +2,18 @@
NB : the homeassistant component is currently under development here : https://github.com/elric91/hass_custom_components

How to use :
- Go in folder
- install pyzigate through pypi (easiest way) : pip3 install pyzigate
- Grab the threaded\_serial example in example folder
- Launch ipython3 console
```python
from pyzigate.interface import *
import logging
from threaded_serial import ThreadedConnection
from pyzigate.interface import ZiGate

l = logging.getLogger('zigate')
l.setLevel(logging.DEBUG)
l.addHandler(logging.StreamHandler())

z = ZiGate()
conn = ThreadedConnection(z)
z.send_data('0049', 'FFFCFE00')

0 comments on commit 29570f7

Please sign in to comment.