项目作者: mperlet

项目描述 :
Fritz-AVM DECT200 Python API
高级语言: Python
项目地址: git://github.com/mperlet/PyDect200.git
创建时间: 2014-01-29T16:34:03Z
项目社区:https://github.com/mperlet/PyDect200

开源协议:MIT License

下载


PyDect200

Build Status
pylint Score
Download format
Downloads
License
Latest Version

Control the Fritz-AVM DECT200 (switch a electric socket)
and Fritz-AVM PowerLine 546E

Install

  1. pip install PyDect200

Demo

Demo (Github Style)

  1. curl https://raw.githubusercontent.com/mperlet/PyDect200/master/Example/PyDect200_Demo.py | python

Demo (git clone)

  1. git clone git@github.com:mperlet/PyDect200.git
  2. ./PyDect200/Example/PyDect200_Demo.py

Example Code

  1. from PyDect200 import PyDect200
  2. f = PyDect200('fitzbox_password')
  3. # or with username PyDect200('fritzbox_password', username='fritzbox_username')
  4. f.get_device_names()
  5. # {'16': 'Beleuchtung', '17': 'Fernseher'}
  6. f.get_info()
  7. # {u'16': u'0', u'17': u'0'}
  8. f.switch_onoff(16,1)
  9. # {u'DeviceID': u'16',
  10. # u'RequestResult': u'1',
  11. # u'Value': u'0',
  12. # u'ValueToSet': u'1'}
  13. f.get_power()
  14. # {u'16': 68.95, u'17': 0.0}

Tested with

  • Python2.7 / Python3.4
  • Fritzbox 7270
  • FRITZ!OS: 06.05
  • AVM Dect200

  • Python2.7
  • Fritzbox 7490
  • FRITZ!OS: 6.36 Labor
  • Dect200
  • PowerLine 546E