pyhausbus 1.0.5__py2.py3-none-any.whl → 1.0.7__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. pyhausbus/Templates.py +8 -5
  2. pyhausbus/de/hausbus/homeassistant/proxy/AnalogEingang.py +18 -19
  3. pyhausbus/de/hausbus/homeassistant/proxy/Controller.py +104 -105
  4. pyhausbus/de/hausbus/homeassistant/proxy/Counter.py +16 -17
  5. pyhausbus/de/hausbus/homeassistant/proxy/CurrentReader.py +36 -37
  6. pyhausbus/de/hausbus/homeassistant/proxy/DaliLine.py +16 -17
  7. pyhausbus/de/hausbus/homeassistant/proxy/DigitalPort.py +8 -9
  8. pyhausbus/de/hausbus/homeassistant/proxy/Dimmer.py +24 -25
  9. pyhausbus/de/hausbus/homeassistant/proxy/Drucksensor.py +18 -19
  10. pyhausbus/de/hausbus/homeassistant/proxy/Ethernet.py +14 -15
  11. pyhausbus/de/hausbus/homeassistant/proxy/Feuchtesensor.py +20 -21
  12. pyhausbus/de/hausbus/homeassistant/proxy/Gateway.py +22 -23
  13. pyhausbus/de/hausbus/homeassistant/proxy/Helligkeitssensor.py +20 -21
  14. pyhausbus/de/hausbus/homeassistant/proxy/IRSensor.py +14 -15
  15. pyhausbus/de/hausbus/homeassistant/proxy/Led.py +32 -33
  16. pyhausbus/de/hausbus/homeassistant/proxy/LogicalButton.py +32 -33
  17. pyhausbus/de/hausbus/homeassistant/proxy/ModBusMaster.py +6 -7
  18. pyhausbus/de/hausbus/homeassistant/proxy/ModbusSlave.py +0 -1
  19. pyhausbus/de/hausbus/homeassistant/proxy/PCA9555.py +2 -3
  20. pyhausbus/de/hausbus/homeassistant/proxy/PCServer.py +18 -19
  21. pyhausbus/de/hausbus/homeassistant/proxy/PIDController.py +16 -17
  22. pyhausbus/de/hausbus/homeassistant/proxy/PT1000.py +20 -21
  23. pyhausbus/de/hausbus/homeassistant/proxy/PowerMeter.py +20 -21
  24. pyhausbus/de/hausbus/homeassistant/proxy/RFIDReader.py +20 -21
  25. pyhausbus/de/hausbus/homeassistant/proxy/RGBDimmer.py +16 -17
  26. pyhausbus/de/hausbus/homeassistant/proxy/Rollladen.py +30 -31
  27. pyhausbus/de/hausbus/homeassistant/proxy/Schalter.py +30 -31
  28. pyhausbus/de/hausbus/homeassistant/proxy/SnmpAgent.py +0 -1
  29. pyhausbus/de/hausbus/homeassistant/proxy/SystemTime.py +8 -9
  30. pyhausbus/de/hausbus/homeassistant/proxy/Taster.py +34 -35
  31. pyhausbus/de/hausbus/homeassistant/proxy/Taupunkt.py +20 -21
  32. pyhausbus/de/hausbus/homeassistant/proxy/TcpClient.py +8 -9
  33. pyhausbus/de/hausbus/homeassistant/proxy/Temperatursensor.py +20 -21
  34. pyhausbus/de/hausbus/homeassistant/proxy/Wetter.py +4 -5
  35. pyhausbus/de/hausbus/homeassistant/proxy/WiFi.py +14 -15
  36. {pyhausbus-1.0.5.dist-info → pyhausbus-1.0.7.dist-info}/METADATA +1 -1
  37. {pyhausbus-1.0.5.dist-info → pyhausbus-1.0.7.dist-info}/RECORD +39 -39
  38. {pyhausbus-1.0.5.dist-info → pyhausbus-1.0.7.dist-info}/LICENSE +0 -0
  39. {pyhausbus-1.0.5.dist-info → pyhausbus-1.0.7.dist-info}/WHEEL +0 -0
@@ -1,4 +1,3 @@
1
- import logging
2
1
  from pyhausbus.HausBusCommand import HausBusCommand
3
2
  from pyhausbus.ABusFeature import *
4
3
  from pyhausbus.ResultWorker import ResultWorker
@@ -40,21 +39,21 @@ class Controller(ABusFeature):
40
39
  @param index .
41
40
  """
42
41
  def getModuleId(self, index:EIndex):
43
- logging.info("getModuleId"+" index = "+str(index))
42
+ LOGGER.debug("getModuleId"+" index = "+str(index))
44
43
  hbCommand = HausBusCommand(self.objectId, 2, "getModuleId")
45
44
  hbCommand.addByte(index.value)
46
45
  ResultWorker()._setResultInfo(ModuleId,self.getObjectId())
47
46
  hbCommand.send()
48
- logging.info("returns")
47
+ LOGGER.debug("returns")
49
48
 
50
49
  """
51
50
  """
52
51
  def getConfiguration(self):
53
- logging.info("getConfiguration")
52
+ LOGGER.debug("getConfiguration")
54
53
  hbCommand = HausBusCommand(self.objectId, 5, "getConfiguration")
55
54
  ResultWorker()._setResultInfo(Configuration,self.getObjectId())
56
55
  hbCommand.send()
57
- logging.info("returns")
56
+ LOGGER.debug("returns")
58
57
 
59
58
  """
60
59
  @param name Modulname.
@@ -64,7 +63,7 @@ class Controller(ABusFeature):
64
63
  @param firmwareId Firmware-Kennung.
65
64
  """
66
65
  def ModuleId(self, name:str, size:int, majorRelease:int, minorRelease:int, firmwareId:EFirmwareId):
67
- logging.info("ModuleId"+" name = "+str(name)+" size = "+str(size)+" majorRelease = "+str(majorRelease)+" minorRelease = "+str(minorRelease)+" firmwareId = "+str(firmwareId))
66
+ LOGGER.debug("ModuleId"+" name = "+str(name)+" size = "+str(size)+" majorRelease = "+str(majorRelease)+" minorRelease = "+str(minorRelease)+" firmwareId = "+str(firmwareId))
68
67
  hbCommand = HausBusCommand(self.objectId, 128, "ModuleId")
69
68
  hbCommand.addString(name)
70
69
  hbCommand.addDWord(size)
@@ -73,7 +72,7 @@ class Controller(ABusFeature):
73
72
  hbCommand.addByte(firmwareId.value)
74
73
  ResultWorker()._setResultInfo(None,self.getObjectId())
75
74
  hbCommand.send()
76
- logging.info("returns")
75
+ LOGGER.debug("returns")
77
76
 
78
77
  """
79
78
  @param startupDelay a 250ms.
@@ -94,7 +93,7 @@ class Controller(ABusFeature):
94
93
  @param FCKE ControllerBoard Version Bsp. 30 = v3.0.
95
94
  """
96
95
  def Configuration(self, startupDelay:int, logicalButtonMask:MLogicalButtonMask, deviceId:int, reportMemoryStatusTime:int, slotType0:ESlotType, slotType1:ESlotType, slotType2:ESlotType, slotType3:ESlotType, slotType4:ESlotType, slotType5:ESlotType, slotType6:ESlotType, slotType7:ESlotType, timeCorrection:int, reserve:int, dataBlockSize:int, FCKE:int):
97
- logging.info("Configuration"+" startupDelay = "+str(startupDelay)+" logicalButtonMask = "+str(logicalButtonMask)+" deviceId = "+str(deviceId)+" reportMemoryStatusTime = "+str(reportMemoryStatusTime)+" slotType0 = "+str(slotType0)+" slotType1 = "+str(slotType1)+" slotType2 = "+str(slotType2)+" slotType3 = "+str(slotType3)+" slotType4 = "+str(slotType4)+" slotType5 = "+str(slotType5)+" slotType6 = "+str(slotType6)+" slotType7 = "+str(slotType7)+" timeCorrection = "+str(timeCorrection)+" reserve = "+str(reserve)+" dataBlockSize = "+str(dataBlockSize)+" FCKE = "+str(FCKE))
96
+ LOGGER.debug("Configuration"+" startupDelay = "+str(startupDelay)+" logicalButtonMask = "+str(logicalButtonMask)+" deviceId = "+str(deviceId)+" reportMemoryStatusTime = "+str(reportMemoryStatusTime)+" slotType0 = "+str(slotType0)+" slotType1 = "+str(slotType1)+" slotType2 = "+str(slotType2)+" slotType3 = "+str(slotType3)+" slotType4 = "+str(slotType4)+" slotType5 = "+str(slotType5)+" slotType6 = "+str(slotType6)+" slotType7 = "+str(slotType7)+" timeCorrection = "+str(timeCorrection)+" reserve = "+str(reserve)+" dataBlockSize = "+str(dataBlockSize)+" FCKE = "+str(FCKE))
98
97
  hbCommand = HausBusCommand(self.objectId, 131, "Configuration")
99
98
  hbCommand.addByte(startupDelay)
100
99
  hbCommand.addByte(logicalButtonMask.getValue())
@@ -114,54 +113,54 @@ class Controller(ABusFeature):
114
113
  hbCommand.addByte(FCKE)
115
114
  ResultWorker()._setResultInfo(None,self.getObjectId())
116
115
  hbCommand.send()
117
- logging.info("returns")
116
+ LOGGER.debug("returns")
118
117
 
119
118
  """
120
119
  """
121
120
  def getRemoteObjects(self):
122
- logging.info("getRemoteObjects")
121
+ LOGGER.debug("getRemoteObjects")
123
122
  hbCommand = HausBusCommand(self.objectId, 3, "getRemoteObjects")
124
123
  ResultWorker()._setResultInfo(RemoteObjects,self.getObjectId())
125
124
  hbCommand.send()
126
- logging.info("returns")
125
+ LOGGER.debug("returns")
127
126
 
128
127
  """
129
128
  @param objectList Eine Liste der Verfuegbaren Objekte im Geraete.
130
129
  """
131
130
  def RemoteObjects(self, objectList):
132
- logging.info("RemoteObjects"+" objectList = "+str(objectList))
131
+ LOGGER.debug("RemoteObjects"+" objectList = "+str(objectList))
133
132
  hbCommand = HausBusCommand(self.objectId, 129, "RemoteObjects")
134
133
  hbCommand.addMap(objectList)
135
134
  ResultWorker()._setResultInfo(None,self.getObjectId())
136
135
  hbCommand.send()
137
- logging.info("returns")
136
+ LOGGER.debug("returns")
138
137
 
139
138
  """
140
139
  """
141
140
  def generateRandomDeviceId(self):
142
- logging.info("generateRandomDeviceId")
141
+ LOGGER.debug("generateRandomDeviceId")
143
142
  hbCommand = HausBusCommand(self.objectId, 0, "generateRandomDeviceId")
144
143
  ResultWorker()._setResultInfo(None,self.getObjectId())
145
144
  hbCommand.send()
146
- logging.info("returns")
145
+ LOGGER.debug("returns")
147
146
 
148
147
  """
149
148
  """
150
149
  def reset(self):
151
- logging.info("reset")
150
+ LOGGER.debug("reset")
152
151
  hbCommand = HausBusCommand(self.objectId, 1, "reset")
153
152
  ResultWorker()._setResultInfo(None,self.getObjectId())
154
153
  hbCommand.send()
155
- logging.info("returns")
154
+ LOGGER.debug("returns")
156
155
 
157
156
  """
158
157
  """
159
158
  def getUnusedMemory(self):
160
- logging.info("getUnusedMemory")
159
+ LOGGER.debug("getUnusedMemory")
161
160
  hbCommand = HausBusCommand(self.objectId, 4, "getUnusedMemory")
162
161
  ResultWorker()._setResultInfo(UnusedMemory,self.getObjectId())
163
162
  hbCommand.send()
164
- logging.info("returns")
163
+ LOGGER.debug("returns")
165
164
 
166
165
  """
167
166
  @param startupDelay a 10ms.
@@ -178,7 +177,7 @@ class Controller(ABusFeature):
178
177
  @param slotType7 .
179
178
  """
180
179
  def setConfiguration(self, startupDelay:int, logicalButtonMask:MLogicalButtonMask, deviceId:int, reportMemoryStatusTime:int, slotType0:ESlotType, slotType1:ESlotType, slotType2:ESlotType, slotType3:ESlotType, slotType4:ESlotType, slotType5:ESlotType, slotType6:ESlotType, slotType7:ESlotType):
181
- logging.info("setConfiguration"+" startupDelay = "+str(startupDelay)+" logicalButtonMask = "+str(logicalButtonMask)+" deviceId = "+str(deviceId)+" reportMemoryStatusTime = "+str(reportMemoryStatusTime)+" slotType0 = "+str(slotType0)+" slotType1 = "+str(slotType1)+" slotType2 = "+str(slotType2)+" slotType3 = "+str(slotType3)+" slotType4 = "+str(slotType4)+" slotType5 = "+str(slotType5)+" slotType6 = "+str(slotType6)+" slotType7 = "+str(slotType7))
180
+ LOGGER.debug("setConfiguration"+" startupDelay = "+str(startupDelay)+" logicalButtonMask = "+str(logicalButtonMask)+" deviceId = "+str(deviceId)+" reportMemoryStatusTime = "+str(reportMemoryStatusTime)+" slotType0 = "+str(slotType0)+" slotType1 = "+str(slotType1)+" slotType2 = "+str(slotType2)+" slotType3 = "+str(slotType3)+" slotType4 = "+str(slotType4)+" slotType5 = "+str(slotType5)+" slotType6 = "+str(slotType6)+" slotType7 = "+str(slotType7))
182
181
  hbCommand = HausBusCommand(self.objectId, 6, "setConfiguration")
183
182
  hbCommand.addByte(startupDelay)
184
183
  hbCommand.addByte(logicalButtonMask.getValue())
@@ -194,257 +193,257 @@ class Controller(ABusFeature):
194
193
  hbCommand.addByte(slotType7.value)
195
194
  ResultWorker()._setResultInfo(None,self.getObjectId())
196
195
  hbCommand.send()
197
- logging.info("returns")
196
+ LOGGER.debug("returns")
198
197
 
199
198
  """
200
199
  @param freeStack Anzahl des nicht genutzten Stacks in Bytes..
201
200
  @param freeHeap Aktuell freier Heap in Bytes..
202
201
  """
203
202
  def UnusedMemory(self, freeStack:int, freeHeap:int):
204
- logging.info("UnusedMemory"+" freeStack = "+str(freeStack)+" freeHeap = "+str(freeHeap))
203
+ LOGGER.debug("UnusedMemory"+" freeStack = "+str(freeStack)+" freeHeap = "+str(freeHeap))
205
204
  hbCommand = HausBusCommand(self.objectId, 130, "UnusedMemory")
206
205
  hbCommand.addWord(freeStack)
207
206
  hbCommand.addWord(freeHeap)
208
207
  ResultWorker()._setResultInfo(None,self.getObjectId())
209
208
  hbCommand.send()
210
- logging.info("returns")
209
+ LOGGER.debug("returns")
211
210
 
212
211
  """
213
212
  @param address .
214
213
  @param length .
215
214
  """
216
215
  def readMemory(self, address:int, length:int):
217
- logging.info("readMemory"+" address = "+str(address)+" length = "+str(length))
216
+ LOGGER.debug("readMemory"+" address = "+str(address)+" length = "+str(length))
218
217
  hbCommand = HausBusCommand(self.objectId, 7, "readMemory")
219
218
  hbCommand.addDWord(address)
220
219
  hbCommand.addWord(length)
221
220
  ResultWorker()._setResultInfo(MemoryData,self.getObjectId())
222
221
  hbCommand.send()
223
- logging.info("returns")
222
+ LOGGER.debug("returns")
224
223
 
225
224
  """
226
225
  @param address .
227
226
  @param data .
228
227
  """
229
228
  def writeMemory(self, address:int, data:bytearray):
230
- logging.info("writeMemory"+" address = "+str(address)+" data = "+str(data))
229
+ LOGGER.debug("writeMemory"+" address = "+str(address)+" data = "+str(data))
231
230
  hbCommand = HausBusCommand(self.objectId, 8, "writeMemory")
232
231
  hbCommand.addDWord(address)
233
232
  hbCommand.addBlob(data)
234
233
  ResultWorker()._setResultInfo(MemoryStatus,self.getObjectId())
235
234
  hbCommand.send()
236
- logging.info("returns")
235
+ LOGGER.debug("returns")
237
236
 
238
237
  """
239
238
  """
240
239
  def ping(self):
241
- logging.info("ping")
240
+ LOGGER.debug("ping")
242
241
  hbCommand = HausBusCommand(self.objectId, 127, "ping")
243
242
  ResultWorker()._setResultInfo(Pong,self.getObjectId())
244
243
  hbCommand.send()
245
- logging.info("returns")
244
+ LOGGER.debug("returns")
246
245
 
247
246
  """
248
247
  """
249
248
  def pong(self):
250
- logging.info("pong")
249
+ LOGGER.debug("pong")
251
250
  hbCommand = HausBusCommand(self.objectId, 199, "pong")
252
251
  ResultWorker()._setResultInfo(None,self.getObjectId())
253
252
  hbCommand.send()
254
- logging.info("returns")
253
+ LOGGER.debug("returns")
255
254
 
256
255
  """
257
256
  @param address Adresse des gemeldeten Speicherinhaltes.
258
257
  @param data Daten....
259
258
  """
260
259
  def MemoryData(self, address:int, data:bytearray):
261
- logging.info("MemoryData"+" address = "+str(address)+" data = "+str(data))
260
+ LOGGER.debug("MemoryData"+" address = "+str(address)+" data = "+str(data))
262
261
  hbCommand = HausBusCommand(self.objectId, 132, "MemoryData")
263
262
  hbCommand.addDWord(address)
264
263
  hbCommand.addBlob(data)
265
264
  ResultWorker()._setResultInfo(None,self.getObjectId())
266
265
  hbCommand.send()
267
- logging.info("returns")
266
+ LOGGER.debug("returns")
268
267
 
269
268
  """
270
269
  @param status Status des letzten Speicherzugriffs.
271
270
  @param address Speicheradresse zu dem dieser Status gesendet wird..
272
271
  """
273
272
  def MemoryStatus(self, status:EStatus, address:int):
274
- logging.info("MemoryStatus"+" status = "+str(status)+" address = "+str(address))
273
+ LOGGER.debug("MemoryStatus"+" status = "+str(status)+" address = "+str(address))
275
274
  hbCommand = HausBusCommand(self.objectId, 133, "MemoryStatus")
276
275
  hbCommand.addByte(status.value)
277
276
  hbCommand.addDWord(address)
278
277
  ResultWorker()._setResultInfo(None,self.getObjectId())
279
278
  hbCommand.send()
280
- logging.info("returns")
279
+ LOGGER.debug("returns")
281
280
 
282
281
  """
283
282
  @param offset aktueller Offset im Gesamtregelblock.
284
283
  @param data .
285
284
  """
286
285
  def writeRules(self, offset:int, data:bytearray):
287
- logging.info("writeRules"+" offset = "+str(offset)+" data = "+str(data))
286
+ LOGGER.debug("writeRules"+" offset = "+str(offset)+" data = "+str(data))
288
287
  hbCommand = HausBusCommand(self.objectId, 9, "writeRules")
289
288
  hbCommand.addWord(offset)
290
289
  hbCommand.addBlob(data)
291
290
  ResultWorker()._setResultInfo(None,self.getObjectId())
292
291
  hbCommand.send()
293
- logging.info("returns")
292
+ LOGGER.debug("returns")
294
293
 
295
294
  """
296
295
  @param offset Offset im Gesamtregelblock.
297
296
  @param length Datenlaenge.
298
297
  """
299
298
  def readRules(self, offset:int, length:int):
300
- logging.info("readRules"+" offset = "+str(offset)+" length = "+str(length))
299
+ LOGGER.debug("readRules"+" offset = "+str(offset)+" length = "+str(length))
301
300
  hbCommand = HausBusCommand(self.objectId, 10, "readRules")
302
301
  hbCommand.addWord(offset)
303
302
  hbCommand.addWord(length)
304
303
  ResultWorker()._setResultInfo(None,self.getObjectId())
305
304
  hbCommand.send()
306
- logging.info("returns")
305
+ LOGGER.debug("returns")
307
306
 
308
307
  """
309
308
  @param offset offset im Gesamtregelblock.
310
309
  @param data .
311
310
  """
312
311
  def RulesData(self, offset:int, data:bytearray):
313
- logging.info("RulesData"+" offset = "+str(offset)+" data = "+str(data))
312
+ LOGGER.debug("RulesData"+" offset = "+str(offset)+" data = "+str(data))
314
313
  hbCommand = HausBusCommand(self.objectId, 134, "RulesData")
315
314
  hbCommand.addWord(offset)
316
315
  hbCommand.addBlob(data)
317
316
  ResultWorker()._setResultInfo(None,self.getObjectId())
318
317
  hbCommand.send()
319
- logging.info("returns")
318
+ LOGGER.debug("returns")
320
319
 
321
320
  """
322
321
  @param weektime .
323
322
  """
324
323
  def evTime(self, weektime:WeekTime=None
325
324
  ):
326
- logging.info("evTime"+" weektime = "+str(weektime))
325
+ LOGGER.debug("evTime"+" weektime = "+str(weektime))
327
326
  hbCommand = HausBusCommand(self.objectId, 200, "evTime")
328
327
  hbCommand.addWord(weektime.getValue())
329
328
  ResultWorker()._setResultInfo(None,self.getObjectId())
330
329
  hbCommand.send()
331
- logging.info("returns")
330
+ LOGGER.debug("returns")
332
331
 
333
332
  """
334
333
  @param deviceId neue ID.
335
334
  """
336
335
  def evNewDeviceId(self, deviceId:int):
337
- logging.info("evNewDeviceId"+" deviceId = "+str(deviceId))
336
+ LOGGER.debug("evNewDeviceId"+" deviceId = "+str(deviceId))
338
337
  hbCommand = HausBusCommand(self.objectId, 201, "evNewDeviceId")
339
338
  hbCommand.addWord(deviceId)
340
339
  ResultWorker()._setResultInfo(None,self.getObjectId())
341
340
  hbCommand.send()
342
- logging.info("returns")
341
+ LOGGER.debug("returns")
343
342
 
344
343
  """
345
344
  @param reason Grund fuer dieses Event.
346
345
  """
347
346
  def evStarted(self, reason:EReason):
348
- logging.info("evStarted"+" reason = "+str(reason))
347
+ LOGGER.debug("evStarted"+" reason = "+str(reason))
349
348
  hbCommand = HausBusCommand(self.objectId, 202, "evStarted")
350
349
  hbCommand.addByte(reason.value)
351
350
  ResultWorker()._setResultInfo(None,self.getObjectId())
352
351
  hbCommand.send()
353
- logging.info("returns")
352
+ LOGGER.debug("returns")
354
353
 
355
354
  """
356
355
  @param errorCode .
357
356
  """
358
357
  def evError(self, errorCode:EErrorCode):
359
- logging.info("evError"+" errorCode = "+str(errorCode))
358
+ LOGGER.debug("evError"+" errorCode = "+str(errorCode))
360
359
  hbCommand = HausBusCommand(self.objectId, 255, "evError")
361
360
  hbCommand.addByte(errorCode.value)
362
361
  ResultWorker()._setResultInfo(None,self.getObjectId())
363
362
  hbCommand.send()
364
- logging.info("returns")
363
+ LOGGER.debug("returns")
365
364
 
366
365
  """
367
366
  """
368
367
  def getTime(self):
369
- logging.info("getTime")
368
+ LOGGER.debug("getTime")
370
369
  hbCommand = HausBusCommand(self.objectId, 126, "getTime")
371
370
  ResultWorker()._setResultInfo(Time,self.getObjectId())
372
371
  hbCommand.send()
373
- logging.info("returns")
372
+ LOGGER.debug("returns")
374
373
 
375
374
  """
376
375
  @param weekTime .
377
376
  """
378
377
  def setTime(self, weekTime:WeekTime=None
379
378
  ):
380
- logging.info("setTime"+" weekTime = "+str(weekTime))
379
+ LOGGER.debug("setTime"+" weekTime = "+str(weekTime))
381
380
  hbCommand = HausBusCommand(self.objectId, 125, "setTime")
382
381
  hbCommand.addWord(weekTime.getValue())
383
382
  ResultWorker()._setResultInfo(None,self.getObjectId())
384
383
  hbCommand.send()
385
- logging.info("returns")
384
+ LOGGER.debug("returns")
386
385
 
387
386
  """
388
387
  @param weekTime .
389
388
  """
390
389
  def Time(self, weekTime:WeekTime=None
391
390
  ):
392
- logging.info("Time"+" weekTime = "+str(weekTime))
391
+ LOGGER.debug("Time"+" weekTime = "+str(weekTime))
393
392
  hbCommand = HausBusCommand(self.objectId, 198, "Time")
394
393
  hbCommand.addWord(weekTime.getValue())
395
394
  ResultWorker()._setResultInfo(None,self.getObjectId())
396
395
  hbCommand.send()
397
- logging.info("returns")
396
+ LOGGER.debug("returns")
398
397
 
399
398
  """
400
399
  @param index Index des abzufragenden Regelzustandes auf dem Controller.
401
400
  """
402
401
  def getRuleState(self, index:int):
403
- logging.info("getRuleState"+" index = "+str(index))
402
+ LOGGER.debug("getRuleState"+" index = "+str(index))
404
403
  hbCommand = HausBusCommand(self.objectId, 12, "getRuleState")
405
404
  hbCommand.addByte(index)
406
405
  ResultWorker()._setResultInfo(RuleState,self.getObjectId())
407
406
  hbCommand.send()
408
- logging.info("returns")
407
+ LOGGER.debug("returns")
409
408
 
410
409
  """
411
410
  @param index Index des zu setzenden Regelzustandes auf dem Controller..
412
411
  @param state Der Zustand wird gesetzt ohne die Aktionen auszufuehren..
413
412
  """
414
413
  def setRuleState(self, index:int, state:int):
415
- logging.info("setRuleState"+" index = "+str(index)+" state = "+str(state))
414
+ LOGGER.debug("setRuleState"+" index = "+str(index)+" state = "+str(state))
416
415
  hbCommand = HausBusCommand(self.objectId, 11, "setRuleState")
417
416
  hbCommand.addByte(index)
418
417
  hbCommand.addByte(state)
419
418
  ResultWorker()._setResultInfo(None,self.getObjectId())
420
419
  hbCommand.send()
421
- logging.info("returns")
420
+ LOGGER.debug("returns")
422
421
 
423
422
  """
424
423
  @param indexRule Index der Regel im Controller..
425
424
  @param indexElement Index des auszufuehrenden Regelelementes. Alle Aktionen werden ausgefuehrt und der neue Zustand eingenommen..
426
425
  """
427
426
  def triggerRuleElement(self, indexRule:int, indexElement:int):
428
- logging.info("triggerRuleElement"+" indexRule = "+str(indexRule)+" indexElement = "+str(indexElement))
427
+ LOGGER.debug("triggerRuleElement"+" indexRule = "+str(indexRule)+" indexElement = "+str(indexElement))
429
428
  hbCommand = HausBusCommand(self.objectId, 13, "triggerRuleElement")
430
429
  hbCommand.addByte(indexRule)
431
430
  hbCommand.addByte(indexElement)
432
431
  ResultWorker()._setResultInfo(None,self.getObjectId())
433
432
  hbCommand.send()
434
- logging.info("returns")
433
+ LOGGER.debug("returns")
435
434
 
436
435
  """
437
436
  @param index Index der abgefragten Regel.
438
437
  @param state Regelzustand.
439
438
  """
440
439
  def RuleState(self, index:int, state:int):
441
- logging.info("RuleState"+" index = "+str(index)+" state = "+str(state))
440
+ LOGGER.debug("RuleState"+" index = "+str(index)+" state = "+str(state))
442
441
  hbCommand = HausBusCommand(self.objectId, 135, "RuleState")
443
442
  hbCommand.addByte(index)
444
443
  hbCommand.addByte(state)
445
444
  ResultWorker()._setResultInfo(None,self.getObjectId())
446
445
  hbCommand.send()
447
- logging.info("returns")
446
+ LOGGER.debug("returns")
448
447
 
449
448
  """
450
449
  @param index Gruppenindex.
@@ -453,7 +452,7 @@ class Controller(ABusFeature):
453
452
  @param triggerBits Anzahl der Teilnehmer die gesetzt sein muessen damit evGroupOn erzeugt wird.
454
453
  """
455
454
  def setUnitGroupState(self, index:int, member:int, state:int, triggerBits:int):
456
- logging.info("setUnitGroupState"+" index = "+str(index)+" member = "+str(member)+" state = "+str(state)+" triggerBits = "+str(triggerBits))
455
+ LOGGER.debug("setUnitGroupState"+" index = "+str(index)+" member = "+str(member)+" state = "+str(state)+" triggerBits = "+str(triggerBits))
457
456
  hbCommand = HausBusCommand(self.objectId, 14, "setUnitGroupState")
458
457
  hbCommand.addByte(index)
459
458
  hbCommand.addByte(member)
@@ -461,99 +460,99 @@ class Controller(ABusFeature):
461
460
  hbCommand.addByte(triggerBits)
462
461
  ResultWorker()._setResultInfo(None,self.getObjectId())
463
462
  hbCommand.send()
464
- logging.info("returns")
463
+ LOGGER.debug("returns")
465
464
 
466
465
  """
467
466
  @param index Gruppenindex.
468
467
  @param status Status der Bits in der logischen Gruppe..
469
468
  """
470
469
  def evGroupOn(self, index:int, status:int):
471
- logging.info("evGroupOn"+" index = "+str(index)+" status = "+str(status))
470
+ LOGGER.debug("evGroupOn"+" index = "+str(index)+" status = "+str(status))
472
471
  hbCommand = HausBusCommand(self.objectId, 203, "evGroupOn")
473
472
  hbCommand.addByte(index)
474
473
  hbCommand.addWord(status)
475
474
  ResultWorker()._setResultInfo(None,self.getObjectId())
476
475
  hbCommand.send()
477
- logging.info("returns")
476
+ LOGGER.debug("returns")
478
477
 
479
478
  """
480
479
  @param index Gruppenindex.
481
480
  @param status Status der Bits in der logischen Gruppe..
482
481
  """
483
482
  def evGroupOff(self, index:int, status:int):
484
- logging.info("evGroupOff"+" index = "+str(index)+" status = "+str(status))
483
+ LOGGER.debug("evGroupOff"+" index = "+str(index)+" status = "+str(status))
485
484
  hbCommand = HausBusCommand(self.objectId, 205, "evGroupOff")
486
485
  hbCommand.addByte(index)
487
486
  hbCommand.addWord(status)
488
487
  ResultWorker()._setResultInfo(None,self.getObjectId())
489
488
  hbCommand.send()
490
- logging.info("returns")
489
+ LOGGER.debug("returns")
491
490
 
492
491
  """
493
492
  @param index Gruppenindex.
494
493
  @param status Status der Bits in der logischen Gruppe..
495
494
  """
496
495
  def evGroupUndefined(self, index:int, status:int):
497
- logging.info("evGroupUndefined"+" index = "+str(index)+" status = "+str(status))
496
+ LOGGER.debug("evGroupUndefined"+" index = "+str(index)+" status = "+str(status))
498
497
  hbCommand = HausBusCommand(self.objectId, 204, "evGroupUndefined")
499
498
  hbCommand.addByte(index)
500
499
  hbCommand.addWord(status)
501
500
  ResultWorker()._setResultInfo(None,self.getObjectId())
502
501
  hbCommand.send()
503
- logging.info("returns")
502
+ LOGGER.debug("returns")
504
503
 
505
504
  """
506
505
  @param ruleIndex .
507
506
  @param elementIndex .
508
507
  """
509
508
  def TriggeredRule(self, ruleIndex:int, elementIndex:int):
510
- logging.info("TriggeredRule"+" ruleIndex = "+str(ruleIndex)+" elementIndex = "+str(elementIndex))
509
+ LOGGER.debug("TriggeredRule"+" ruleIndex = "+str(ruleIndex)+" elementIndex = "+str(elementIndex))
511
510
  hbCommand = HausBusCommand(self.objectId, 136, "TriggeredRule")
512
511
  hbCommand.addByte(ruleIndex)
513
512
  hbCommand.addByte(elementIndex)
514
513
  ResultWorker()._setResultInfo(None,self.getObjectId())
515
514
  hbCommand.send()
516
- logging.info("returns")
515
+ LOGGER.debug("returns")
517
516
 
518
517
  """
519
518
  @param option SEND_TRIGGERED_RULE_EVENT: generiert ein Event zu einer aktivierten Regel\r\nREAD_ONLY_GATEWAYS: schaltet das Versenden saemtlicher Nachrichten ab. Eingehende Nachrichten werden verarbeitet\r\nREPORT_INTERNAL_TEMPERATURE: aktiviert den internen TemperaturSensor des Prozessors ungenau\r\nSEND_ZERO_CROSS_DATA: sendet im Sekundentakt aufgezeichnete Daten zur Nulldurchganserkennung bei Dimmer-Modulen.
520
519
  """
521
520
  def setDebugOptions(self, option:MOption):
522
- logging.info("setDebugOptions"+" option = "+str(option))
521
+ LOGGER.debug("setDebugOptions"+" option = "+str(option))
523
522
  hbCommand = HausBusCommand(self.objectId, 124, "setDebugOptions")
524
523
  hbCommand.addByte(option.getValue())
525
524
  ResultWorker()._setResultInfo(None,self.getObjectId())
526
525
  hbCommand.send()
527
- logging.info("returns")
526
+ LOGGER.debug("returns")
528
527
 
529
528
  """
530
529
  @param timeDifference Abweichung der internen Wochenzeit in Minuten Achtung: Vorzeichenbehaftetes Byte. 255 entspricht -1.
531
530
  """
532
531
  def TimeDifference(self, timeDifference:int):
533
- logging.info("TimeDifference"+" timeDifference = "+str(timeDifference))
532
+ LOGGER.debug("TimeDifference"+" timeDifference = "+str(timeDifference))
534
533
  hbCommand = HausBusCommand(self.objectId, 197, "TimeDifference")
535
534
  hbCommand.addByte(timeDifference)
536
535
  ResultWorker()._setResultInfo(None,self.getObjectId())
537
536
  hbCommand.send()
538
- logging.info("returns")
537
+ LOGGER.debug("returns")
539
538
 
540
539
  """
541
540
  """
542
541
  def evDay(self):
543
- logging.info("evDay")
542
+ LOGGER.debug("evDay")
544
543
  hbCommand = HausBusCommand(self.objectId, 206, "evDay")
545
544
  ResultWorker()._setResultInfo(None,self.getObjectId())
546
545
  hbCommand.send()
547
- logging.info("returns")
546
+ LOGGER.debug("returns")
548
547
 
549
548
  """
550
549
  """
551
550
  def evNight(self):
552
- logging.info("evNight")
551
+ LOGGER.debug("evNight")
553
552
  hbCommand = HausBusCommand(self.objectId, 207, "evNight")
554
553
  ResultWorker()._setResultInfo(None,self.getObjectId())
555
554
  hbCommand.send()
556
- logging.info("returns")
555
+ LOGGER.debug("returns")
557
556
 
558
557
  """
559
558
  @param sunriseTime Zeit fuer den Sonnenaufgang..
@@ -562,13 +561,13 @@ class Controller(ABusFeature):
562
561
  def setSunTimes(self, sunriseTime:WeekTime=None
563
562
  , sunsetTime:WeekTime=None
564
563
  ):
565
- logging.info("setSunTimes"+" sunriseTime = "+str(sunriseTime)+" sunsetTime = "+str(sunsetTime))
564
+ LOGGER.debug("setSunTimes"+" sunriseTime = "+str(sunriseTime)+" sunsetTime = "+str(sunsetTime))
566
565
  hbCommand = HausBusCommand(self.objectId, 15, "setSunTimes")
567
566
  hbCommand.addWord(sunriseTime.getValue())
568
567
  hbCommand.addWord(sunsetTime.getValue())
569
568
  ResultWorker()._setResultInfo(None,self.getObjectId())
570
569
  hbCommand.send()
571
- logging.info("returns")
570
+ LOGGER.debug("returns")
572
571
 
573
572
  """
574
573
  @param type Hier wird der Typ der Variable.
@@ -576,27 +575,27 @@ class Controller(ABusFeature):
576
575
  @param value Die Systemvariable wird mit diesem Wert belegt..
577
576
  """
578
577
  def setSystemVariable(self, type:EType, index:int, value:int):
579
- logging.info("setSystemVariable"+" type = "+str(type)+" index = "+str(index)+" value = "+str(value))
578
+ LOGGER.debug("setSystemVariable"+" type = "+str(type)+" index = "+str(index)+" value = "+str(value))
580
579
  hbCommand = HausBusCommand(self.objectId, 16, "setSystemVariable")
581
580
  hbCommand.addByte(type.value)
582
581
  hbCommand.addByte(index)
583
582
  hbCommand.addWord(value)
584
583
  ResultWorker()._setResultInfo(None,self.getObjectId())
585
584
  hbCommand.send()
586
- logging.info("returns")
585
+ LOGGER.debug("returns")
587
586
 
588
587
  """
589
588
  @param type Hier wird der Typ der Variable.
590
589
  @param index Die Variablen liegen mehrfach vor 32xBIT.
591
590
  """
592
591
  def getSystemVariable(self, type:EType, index:int):
593
- logging.info("getSystemVariable"+" type = "+str(type)+" index = "+str(index))
592
+ LOGGER.debug("getSystemVariable"+" type = "+str(type)+" index = "+str(index))
594
593
  hbCommand = HausBusCommand(self.objectId, 17, "getSystemVariable")
595
594
  hbCommand.addByte(type.value)
596
595
  hbCommand.addByte(index)
597
596
  ResultWorker()._setResultInfo(SystemVariable,self.getObjectId())
598
597
  hbCommand.send()
599
- logging.info("returns")
598
+ LOGGER.debug("returns")
600
599
 
601
600
  """
602
601
  @param type Gibt den Typ der Variable an.
@@ -604,58 +603,58 @@ class Controller(ABusFeature):
604
603
  @param value Der Wert der Systemvariable..
605
604
  """
606
605
  def SystemVariable(self, type:EType, index:int, value:int):
607
- logging.info("SystemVariable"+" type = "+str(type)+" index = "+str(index)+" value = "+str(value))
606
+ LOGGER.debug("SystemVariable"+" type = "+str(type)+" index = "+str(index)+" value = "+str(value))
608
607
  hbCommand = HausBusCommand(self.objectId, 137, "SystemVariable")
609
608
  hbCommand.addByte(type.value)
610
609
  hbCommand.addByte(index)
611
610
  hbCommand.addWord(value)
612
611
  ResultWorker()._setResultInfo(None,self.getObjectId())
613
612
  hbCommand.send()
614
- logging.info("returns")
613
+ LOGGER.debug("returns")
615
614
 
616
615
  """
617
616
  @param index Index der logischen Gruppe in diesem Controller.
618
617
  """
619
618
  def getUnitGroupStatus(self, index:int):
620
- logging.info("getUnitGroupStatus"+" index = "+str(index))
619
+ LOGGER.debug("getUnitGroupStatus"+" index = "+str(index))
621
620
  hbCommand = HausBusCommand(self.objectId, 18, "getUnitGroupStatus")
622
621
  hbCommand.addByte(index)
623
622
  ResultWorker()._setResultInfo(UnitGroupStatus,self.getObjectId())
624
623
  hbCommand.send()
625
- logging.info("returns")
624
+ LOGGER.debug("returns")
626
625
 
627
626
  """
628
627
  @param index Index der logischen Gruppe in diesem Controller.
629
628
  @param status Status der Bits in der logischen Gruppe..
630
629
  """
631
630
  def UnitGroupStatus(self, index:int, status:int):
632
- logging.info("UnitGroupStatus"+" index = "+str(index)+" status = "+str(status))
631
+ LOGGER.debug("UnitGroupStatus"+" index = "+str(index)+" status = "+str(status))
633
632
  hbCommand = HausBusCommand(self.objectId, 138, "UnitGroupStatus")
634
633
  hbCommand.addByte(index)
635
634
  hbCommand.addWord(status)
636
635
  ResultWorker()._setResultInfo(None,self.getObjectId())
637
636
  hbCommand.send()
638
- logging.info("returns")
637
+ LOGGER.debug("returns")
639
638
 
640
639
  """
641
640
  @param consoleString Debug Ausgaben bei spezieller Firmware zur Fehlersuche.
642
641
  """
643
642
  def evConsole(self, consoleString:str):
644
- logging.info("evConsole"+" consoleString = "+str(consoleString))
643
+ LOGGER.debug("evConsole"+" consoleString = "+str(consoleString))
645
644
  hbCommand = HausBusCommand(self.objectId, 250, "evConsole")
646
645
  hbCommand.addString(consoleString)
647
646
  ResultWorker()._setResultInfo(None,self.getObjectId())
648
647
  hbCommand.send()
649
- logging.info("returns")
648
+ LOGGER.debug("returns")
650
649
 
651
650
  """
652
651
  """
653
652
  def evResetWifi(self):
654
- logging.info("evResetWifi")
653
+ LOGGER.debug("evResetWifi")
655
654
  hbCommand = HausBusCommand(self.objectId, 208, "evResetWifi")
656
655
  ResultWorker()._setResultInfo(None,self.getObjectId())
657
656
  hbCommand.send()
658
- logging.info("returns")
657
+ LOGGER.debug("returns")
659
658
 
660
659
  """
661
660
  @param channel PWM-Kanal.
@@ -695,7 +694,7 @@ class Controller(ABusFeature):
695
694
  @param pulsWidth15 .
696
695
  """
697
696
  def evZeroCrossData(self, channel:int, pulseCount:int, deltaTime:int, lowTime0:int, lowTime1:int, lowTime2:int, lowTime3:int, lowTime4:int, lowTime5:int, lowTime6:int, lowTime7:int, lowTime8:int, lowTime9:int, lowTime10:int, lowTime11:int, lowTime12:int, lowTime13:int, lowTime14:int, lowTime15:int, pulsWidth0:int, pulsWidth1:int, pulsWidth2:int, pulsWidth3:int, pulsWidth4:int, pulsWidth5:int, pulsWidth6:int, pulsWidth7:int, pulsWidth8:int, pulsWidth9:int, pulsWidth10:int, pulsWidth11:int, pulsWidth12:int, pulsWidth13:int, pulsWidth14:int, pulsWidth15:int):
698
- logging.info("evZeroCrossData"+" channel = "+str(channel)+" pulseCount = "+str(pulseCount)+" deltaTime = "+str(deltaTime)+" lowTime0 = "+str(lowTime0)+" lowTime1 = "+str(lowTime1)+" lowTime2 = "+str(lowTime2)+" lowTime3 = "+str(lowTime3)+" lowTime4 = "+str(lowTime4)+" lowTime5 = "+str(lowTime5)+" lowTime6 = "+str(lowTime6)+" lowTime7 = "+str(lowTime7)+" lowTime8 = "+str(lowTime8)+" lowTime9 = "+str(lowTime9)+" lowTime10 = "+str(lowTime10)+" lowTime11 = "+str(lowTime11)+" lowTime12 = "+str(lowTime12)+" lowTime13 = "+str(lowTime13)+" lowTime14 = "+str(lowTime14)+" lowTime15 = "+str(lowTime15)+" pulsWidth0 = "+str(pulsWidth0)+" pulsWidth1 = "+str(pulsWidth1)+" pulsWidth2 = "+str(pulsWidth2)+" pulsWidth3 = "+str(pulsWidth3)+" pulsWidth4 = "+str(pulsWidth4)+" pulsWidth5 = "+str(pulsWidth5)+" pulsWidth6 = "+str(pulsWidth6)+" pulsWidth7 = "+str(pulsWidth7)+" pulsWidth8 = "+str(pulsWidth8)+" pulsWidth9 = "+str(pulsWidth9)+" pulsWidth10 = "+str(pulsWidth10)+" pulsWidth11 = "+str(pulsWidth11)+" pulsWidth12 = "+str(pulsWidth12)+" pulsWidth13 = "+str(pulsWidth13)+" pulsWidth14 = "+str(pulsWidth14)+" pulsWidth15 = "+str(pulsWidth15))
697
+ LOGGER.debug("evZeroCrossData"+" channel = "+str(channel)+" pulseCount = "+str(pulseCount)+" deltaTime = "+str(deltaTime)+" lowTime0 = "+str(lowTime0)+" lowTime1 = "+str(lowTime1)+" lowTime2 = "+str(lowTime2)+" lowTime3 = "+str(lowTime3)+" lowTime4 = "+str(lowTime4)+" lowTime5 = "+str(lowTime5)+" lowTime6 = "+str(lowTime6)+" lowTime7 = "+str(lowTime7)+" lowTime8 = "+str(lowTime8)+" lowTime9 = "+str(lowTime9)+" lowTime10 = "+str(lowTime10)+" lowTime11 = "+str(lowTime11)+" lowTime12 = "+str(lowTime12)+" lowTime13 = "+str(lowTime13)+" lowTime14 = "+str(lowTime14)+" lowTime15 = "+str(lowTime15)+" pulsWidth0 = "+str(pulsWidth0)+" pulsWidth1 = "+str(pulsWidth1)+" pulsWidth2 = "+str(pulsWidth2)+" pulsWidth3 = "+str(pulsWidth3)+" pulsWidth4 = "+str(pulsWidth4)+" pulsWidth5 = "+str(pulsWidth5)+" pulsWidth6 = "+str(pulsWidth6)+" pulsWidth7 = "+str(pulsWidth7)+" pulsWidth8 = "+str(pulsWidth8)+" pulsWidth9 = "+str(pulsWidth9)+" pulsWidth10 = "+str(pulsWidth10)+" pulsWidth11 = "+str(pulsWidth11)+" pulsWidth12 = "+str(pulsWidth12)+" pulsWidth13 = "+str(pulsWidth13)+" pulsWidth14 = "+str(pulsWidth14)+" pulsWidth15 = "+str(pulsWidth15))
699
698
  hbCommand = HausBusCommand(self.objectId, 209, "evZeroCrossData")
700
699
  hbCommand.addByte(channel)
701
700
  hbCommand.addByte(pulseCount)
@@ -734,20 +733,20 @@ class Controller(ABusFeature):
734
733
  hbCommand.addWord(pulsWidth15)
735
734
  ResultWorker()._setResultInfo(None,self.getObjectId())
736
735
  hbCommand.send()
737
- logging.info("returns")
736
+ LOGGER.debug("returns")
738
737
 
739
738
  """
740
739
  @param featureId Zusatzfunktion.
741
740
  @param key Der Schluessel mit dem die Zusatzfunktion aktiviert werden soll..
742
741
  """
743
742
  def enableFeature(self, featureId:EFeatureId, key:str):
744
- logging.info("enableFeature"+" featureId = "+str(featureId)+" key = "+str(key))
743
+ LOGGER.debug("enableFeature"+" featureId = "+str(featureId)+" key = "+str(key))
745
744
  hbCommand = HausBusCommand(self.objectId, 19, "enableFeature")
746
745
  hbCommand.addByte(featureId.value)
747
746
  hbCommand.addString(key)
748
747
  ResultWorker()._setResultInfo(None,self.getObjectId())
749
748
  hbCommand.send()
750
- logging.info("returns")
749
+ LOGGER.debug("returns")
751
750
 
752
751
  """
753
752
  @param type Hier wird der Typ der Variable.
@@ -755,24 +754,24 @@ class Controller(ABusFeature):
755
754
  @param value Die Systemvariable hat nun diesen Wert erhalten..
756
755
  """
757
756
  def evSystemVariableChanged(self, type:EType, index:int, value:int):
758
- logging.info("evSystemVariableChanged"+" type = "+str(type)+" index = "+str(index)+" value = "+str(value))
757
+ LOGGER.debug("evSystemVariableChanged"+" type = "+str(type)+" index = "+str(index)+" value = "+str(value))
759
758
  hbCommand = HausBusCommand(self.objectId, 210, "evSystemVariableChanged")
760
759
  hbCommand.addByte(type.value)
761
760
  hbCommand.addByte(index)
762
761
  hbCommand.addWord(value)
763
762
  ResultWorker()._setResultInfo(None,self.getObjectId())
764
763
  hbCommand.send()
765
- logging.info("returns")
764
+ LOGGER.debug("returns")
766
765
 
767
766
  """
768
767
  @param index 0: loescht alle OneWire Sensor Positionen\r\n1-32: loescht nur den Sensor auf der Position.
769
768
  """
770
769
  def resetOneWireManager(self, index:int):
771
- logging.info("resetOneWireManager"+" index = "+str(index))
770
+ LOGGER.debug("resetOneWireManager"+" index = "+str(index))
772
771
  hbCommand = HausBusCommand(self.objectId, 20, "resetOneWireManager")
773
772
  hbCommand.addByte(index)
774
773
  ResultWorker()._setResultInfo(None,self.getObjectId())
775
774
  hbCommand.send()
776
- logging.info("returns")
775
+ LOGGER.debug("returns")
777
776
 
778
777