Started refactoring
1 parent 0212822 commit a0e83ee67027813b91b14edb06abcc9020c1f0ac
@David Whale David Whale authored on 3 Apr 2016
Showing 7 changed files
View
8
README.md
# pyenergenie
A python interface to the Energenie line of products
 
Note
====
 
This is a work in progress, please use the 'last known good' from here:
 
https://github.com/whaleygeek/pyenergenie/tree/f342fe255e9d90920b132711aa49933a867523f6
 
 
 
This is the beginnings of an open source library to access the Energienie
range of power control and monitoring products from within Python.
View
46
src/energenie/Messages.py 0 → 100644
# Message.py 03/04/2015 D.J.Whale
#
# pydict formatted message structures for OpenThings
 
import Devices
import OpenThings
 
SWITCH = {
"header": {
"mfrid": Devices.MFRID,
"productid": Devices.PRODUCTID_R1_MONITOR_AND_CONTROL,
"encryptPIP": Devices.CRYPT_PIP,
"sensorid": 0 # FILL IN
},
"recs": [
{
"wr": True,
"paramid": OpenThings.PARAM_SWITCH_STATE,
"typeid": OpenThings.Value.UINT,
"length": 1,
"value": 0 # FILL IN
}
]
}
 
 
JOIN_ACK = {
"header": {
"mfrid": 0, # FILL IN
"productid": 0, # FILL IN
"encryptPIP": Devices.CRYPT_PIP,
"sensorid": 0 # FILL IN
},
"recs": [
{
"wr": False,
"paramid": OpenThings.PARAM_JOIN,
"typeid": OpenThings.Value.UINT,
"length": 0
}
]
}
 
 
# END
View
src/energenie/OpenHEMS.py 100644 → 0
View
src/energenie/OpenThings.py 0 → 100644
View
src/legacy.py
View
src/monitor.py
View
src/switch.py