elric91 / ZiGate

Python library for ZiGate
MIT License
18 stars 9 forks source link

Python library for ZiGate (zigbee gateway, see : http://zigate.fr)

NB : the homeassistant component is currently under development here : https://github.com/elric91/hass_custom_components

How to use :

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

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

- (last line ask for join request)
- put device in join mode (i.e. long press on button)
- lots of logs

## Session Example

In [5]: zigate.send_data('0049', 'FFFCFE00')

REQUEST : 0049 FFFCFE00

In [6]: RESPONSE (@timestamp : 14:52:18 )

In [6]: zigate.list_devices() -- DEVICE REPORT -------------------------