https://github.com/mperlet/pydect200
Fritz-AVM DECT200 Python API
https://github.com/mperlet/pydect200
api avm dect fritz fritzbox python
Last synced: 3 months ago
JSON representation
Fritz-AVM DECT200 Python API
- Host: GitHub
- URL: https://github.com/mperlet/pydect200
- Owner: mperlet
- License: mit
- Created: 2014-01-29T16:34:03.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-11-26T09:15:28.000Z (over 6 years ago)
- Last Synced: 2025-03-04T04:18:10.263Z (3 months ago)
- Topics: api, avm, dect, fritz, fritzbox, python
- Language: Python
- Homepage:
- Size: 30.3 KB
- Stars: 15
- Watchers: 6
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PyDect200
======
[](https://travis-ci.org/mperlet/PyDect200)

[](https://pypi.python.org/pypi/PY_DECT200/)
[](https://pypi.python.org/pypi/PY_DECT200/)
[](https://pypi.python.org/pypi/PY_DECT200/)
[](https://pypi.python.org/pypi/PY_DECT200/)Control the Fritz-AVM DECT200 (switch a electric socket)
and Fritz-AVM PowerLine 546E### Install
```
pip install PyDect200
```### Demo
#### Demo (Github Style)
```
curl https://raw.githubusercontent.com/mperlet/PyDect200/master/Example/PyDect200_Demo.py | python
```#### Demo (git clone)
```
git clone [email protected]:mperlet/PyDect200.git./PyDect200/Example/PyDect200_Demo.py
```### Example Code
```
from PyDect200 import PyDect200
f = PyDect200('fitzbox_password')
# or with username PyDect200('fritzbox_password', username='fritzbox_username')f.get_device_names()
# {'16': 'Beleuchtung', '17': 'Fernseher'}f.get_info()
# {u'16': u'0', u'17': u'0'}f.switch_onoff(16,1)
# {u'DeviceID': u'16',
# u'RequestResult': u'1',
# u'Value': u'0',
# u'ValueToSet': u'1'}f.get_power()
# {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