Skip to content

Control the Fritz-AVM DECT200 (switch a electric socket)

License

Notifications You must be signed in to change notification settings

bluenazgul/PyDect200

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyDect200

Download format Downloads License Latest Version

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

Install

pip install PyDect200

Demo

git clone [email protected]:mperlet/PyDect200.git

./PyDect200/Example/PyDect200_Demo.py

Example Code

In [1]: from PyDect200 import PyDect200
In [2]: f = PyDect200('fitzbox_password')
In [3]: f.get_device_names()
Out[3]: {'16': 'Beleuchtung', '17': 'Fernseher'}
In [4]: f.get_info()
Out[4]: {u'16': u'0', u'17': u'0'}
In [5]: f.switch_onoff(16,1)
Out[5]: 
		{u'DeviceID': u'16',
		 u'RequestResult': u'1',
		 u'Value': u'0',
		 u'ValueToSet': u'1'}
In [6]: f.get_power()
Out[6]: {u'16': 68.95, u'17': 0.0}

Tested with

  • Python2.7
  • Fritzbox 7270
  • FRITZ!OS: 06.05

About

Control the Fritz-AVM DECT200 (switch a electric socket)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%