pyhausbus 1.0.5__py2.py3-none-any.whl → 1.0.6__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 (38) hide show
  1. pyhausbus/de/hausbus/homeassistant/proxy/AnalogEingang.py +18 -19
  2. pyhausbus/de/hausbus/homeassistant/proxy/Controller.py +104 -105
  3. pyhausbus/de/hausbus/homeassistant/proxy/Counter.py +16 -17
  4. pyhausbus/de/hausbus/homeassistant/proxy/CurrentReader.py +36 -37
  5. pyhausbus/de/hausbus/homeassistant/proxy/DaliLine.py +16 -17
  6. pyhausbus/de/hausbus/homeassistant/proxy/DigitalPort.py +8 -9
  7. pyhausbus/de/hausbus/homeassistant/proxy/Dimmer.py +24 -25
  8. pyhausbus/de/hausbus/homeassistant/proxy/Drucksensor.py +18 -19
  9. pyhausbus/de/hausbus/homeassistant/proxy/Ethernet.py +14 -15
  10. pyhausbus/de/hausbus/homeassistant/proxy/Feuchtesensor.py +20 -21
  11. pyhausbus/de/hausbus/homeassistant/proxy/Gateway.py +22 -23
  12. pyhausbus/de/hausbus/homeassistant/proxy/Helligkeitssensor.py +20 -21
  13. pyhausbus/de/hausbus/homeassistant/proxy/IRSensor.py +14 -15
  14. pyhausbus/de/hausbus/homeassistant/proxy/Led.py +32 -33
  15. pyhausbus/de/hausbus/homeassistant/proxy/LogicalButton.py +32 -33
  16. pyhausbus/de/hausbus/homeassistant/proxy/ModBusMaster.py +6 -7
  17. pyhausbus/de/hausbus/homeassistant/proxy/ModbusSlave.py +0 -1
  18. pyhausbus/de/hausbus/homeassistant/proxy/PCA9555.py +2 -3
  19. pyhausbus/de/hausbus/homeassistant/proxy/PCServer.py +18 -19
  20. pyhausbus/de/hausbus/homeassistant/proxy/PIDController.py +16 -17
  21. pyhausbus/de/hausbus/homeassistant/proxy/PT1000.py +20 -21
  22. pyhausbus/de/hausbus/homeassistant/proxy/PowerMeter.py +20 -21
  23. pyhausbus/de/hausbus/homeassistant/proxy/RFIDReader.py +20 -21
  24. pyhausbus/de/hausbus/homeassistant/proxy/RGBDimmer.py +16 -17
  25. pyhausbus/de/hausbus/homeassistant/proxy/Rollladen.py +30 -31
  26. pyhausbus/de/hausbus/homeassistant/proxy/Schalter.py +30 -31
  27. pyhausbus/de/hausbus/homeassistant/proxy/SnmpAgent.py +0 -1
  28. pyhausbus/de/hausbus/homeassistant/proxy/SystemTime.py +8 -9
  29. pyhausbus/de/hausbus/homeassistant/proxy/Taster.py +34 -35
  30. pyhausbus/de/hausbus/homeassistant/proxy/Taupunkt.py +20 -21
  31. pyhausbus/de/hausbus/homeassistant/proxy/TcpClient.py +8 -9
  32. pyhausbus/de/hausbus/homeassistant/proxy/Temperatursensor.py +20 -21
  33. pyhausbus/de/hausbus/homeassistant/proxy/Wetter.py +4 -5
  34. pyhausbus/de/hausbus/homeassistant/proxy/WiFi.py +14 -15
  35. {pyhausbus-1.0.5.dist-info → pyhausbus-1.0.6.dist-info}/METADATA +1 -1
  36. {pyhausbus-1.0.5.dist-info → pyhausbus-1.0.6.dist-info}/RECORD +38 -38
  37. {pyhausbus-1.0.5.dist-info → pyhausbus-1.0.6.dist-info}/LICENSE +0 -0
  38. {pyhausbus-1.0.5.dist-info → pyhausbus-1.0.6.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
@@ -26,54 +25,54 @@ class Taster(ABusFeature):
26
25
  @param state .
27
26
  """
28
27
  def evClicked(self, state:EState):
29
- logging.info("evClicked"+" state = "+str(state))
28
+ LOGGER.debug("evClicked"+" state = "+str(state))
30
29
  hbCommand = HausBusCommand(self.objectId, 201, "evClicked")
31
30
  hbCommand.addByte(state.value)
32
31
  ResultWorker()._setResultInfo(None,self.getObjectId())
33
32
  hbCommand.send()
34
- logging.info("returns")
33
+ LOGGER.debug("returns")
35
34
 
36
35
  """
37
36
  @param state .
38
37
  """
39
38
  def evDoubleClick(self, state:EState):
40
- logging.info("evDoubleClick"+" state = "+str(state))
39
+ LOGGER.debug("evDoubleClick"+" state = "+str(state))
41
40
  hbCommand = HausBusCommand(self.objectId, 202, "evDoubleClick")
42
41
  hbCommand.addByte(state.value)
43
42
  ResultWorker()._setResultInfo(None,self.getObjectId())
44
43
  hbCommand.send()
45
- logging.info("returns")
44
+ LOGGER.debug("returns")
46
45
 
47
46
  """
48
47
  @param state .
49
48
  """
50
49
  def evHoldStart(self, state:EState):
51
- logging.info("evHoldStart"+" state = "+str(state))
50
+ LOGGER.debug("evHoldStart"+" state = "+str(state))
52
51
  hbCommand = HausBusCommand(self.objectId, 203, "evHoldStart")
53
52
  hbCommand.addByte(state.value)
54
53
  ResultWorker()._setResultInfo(None,self.getObjectId())
55
54
  hbCommand.send()
56
- logging.info("returns")
55
+ LOGGER.debug("returns")
57
56
 
58
57
  """
59
58
  @param state .
60
59
  """
61
60
  def evHoldEnd(self, state:EState):
62
- logging.info("evHoldEnd"+" state = "+str(state))
61
+ LOGGER.debug("evHoldEnd"+" state = "+str(state))
63
62
  hbCommand = HausBusCommand(self.objectId, 204, "evHoldEnd")
64
63
  hbCommand.addByte(state.value)
65
64
  ResultWorker()._setResultInfo(None,self.getObjectId())
66
65
  hbCommand.send()
67
- logging.info("returns")
66
+ LOGGER.debug("returns")
68
67
 
69
68
  """
70
69
  """
71
70
  def getConfiguration(self):
72
- logging.info("getConfiguration")
71
+ LOGGER.debug("getConfiguration")
73
72
  hbCommand = HausBusCommand(self.objectId, 0, "getConfiguration")
74
73
  ResultWorker()._setResultInfo(Configuration,self.getObjectId())
75
74
  hbCommand.send()
76
- logging.info("returns")
75
+ LOGGER.debug("returns")
77
76
 
78
77
  """
79
78
  @param holdTimeout Zeit a 10ms.
@@ -83,7 +82,7 @@ class Taster(ABusFeature):
83
82
  @param debounceTime EntprellZeit in ms 1-254\r\nStandard ist 40ms.
84
83
  """
85
84
  def setConfiguration(self, holdTimeout:int, waitForDoubleClickTimeout:int, eventMask:MEventMask, optionMask:MOptionMask, debounceTime:int):
86
- logging.info("setConfiguration"+" holdTimeout = "+str(holdTimeout)+" waitForDoubleClickTimeout = "+str(waitForDoubleClickTimeout)+" eventMask = "+str(eventMask)+" optionMask = "+str(optionMask)+" debounceTime = "+str(debounceTime))
85
+ LOGGER.debug("setConfiguration"+" holdTimeout = "+str(holdTimeout)+" waitForDoubleClickTimeout = "+str(waitForDoubleClickTimeout)+" eventMask = "+str(eventMask)+" optionMask = "+str(optionMask)+" debounceTime = "+str(debounceTime))
87
86
  hbCommand = HausBusCommand(self.objectId, 1, "setConfiguration")
88
87
  hbCommand.addByte(holdTimeout)
89
88
  hbCommand.addByte(waitForDoubleClickTimeout)
@@ -92,7 +91,7 @@ class Taster(ABusFeature):
92
91
  hbCommand.addByte(debounceTime)
93
92
  ResultWorker()._setResultInfo(None,self.getObjectId())
94
93
  hbCommand.send()
95
- logging.info("returns")
94
+ LOGGER.debug("returns")
96
95
 
97
96
  """
98
97
  @param holdTimeout Zeit a 10ms.
@@ -102,7 +101,7 @@ class Taster(ABusFeature):
102
101
  @param debounceTime EntprellZeit in ms 1-254\r\nStandard ist 40ms.
103
102
  """
104
103
  def Configuration(self, holdTimeout:int, waitForDoubleClickTimeout:int, eventMask:MEventMask, optionMask:MOptionMask, debounceTime:int):
105
- logging.info("Configuration"+" holdTimeout = "+str(holdTimeout)+" waitForDoubleClickTimeout = "+str(waitForDoubleClickTimeout)+" eventMask = "+str(eventMask)+" optionMask = "+str(optionMask)+" debounceTime = "+str(debounceTime))
104
+ LOGGER.debug("Configuration"+" holdTimeout = "+str(holdTimeout)+" waitForDoubleClickTimeout = "+str(waitForDoubleClickTimeout)+" eventMask = "+str(eventMask)+" optionMask = "+str(optionMask)+" debounceTime = "+str(debounceTime))
106
105
  hbCommand = HausBusCommand(self.objectId, 128, "Configuration")
107
106
  hbCommand.addByte(holdTimeout)
108
107
  hbCommand.addByte(waitForDoubleClickTimeout)
@@ -111,112 +110,112 @@ class Taster(ABusFeature):
111
110
  hbCommand.addByte(debounceTime)
112
111
  ResultWorker()._setResultInfo(None,self.getObjectId())
113
112
  hbCommand.send()
114
- logging.info("returns")
113
+ LOGGER.debug("returns")
115
114
 
116
115
  """
117
116
  @param state .
118
117
  """
119
118
  def evCovered(self, state:EState):
120
- logging.info("evCovered"+" state = "+str(state))
119
+ LOGGER.debug("evCovered"+" state = "+str(state))
121
120
  hbCommand = HausBusCommand(self.objectId, 200, "evCovered")
122
121
  hbCommand.addByte(state.value)
123
122
  ResultWorker()._setResultInfo(None,self.getObjectId())
124
123
  hbCommand.send()
125
- logging.info("returns")
124
+ LOGGER.debug("returns")
126
125
 
127
126
  """
128
127
  @param state .
129
128
  """
130
129
  def evFree(self, state:EState):
131
- logging.info("evFree"+" state = "+str(state))
130
+ LOGGER.debug("evFree"+" state = "+str(state))
132
131
  hbCommand = HausBusCommand(self.objectId, 205, "evFree")
133
132
  hbCommand.addByte(state.value)
134
133
  ResultWorker()._setResultInfo(None,self.getObjectId())
135
134
  hbCommand.send()
136
- logging.info("returns")
135
+ LOGGER.debug("returns")
137
136
 
138
137
  """
139
138
  @param errorCode .
140
139
  """
141
140
  def evError(self, errorCode:EErrorCode):
142
- logging.info("evError"+" errorCode = "+str(errorCode))
141
+ LOGGER.debug("evError"+" errorCode = "+str(errorCode))
143
142
  hbCommand = HausBusCommand(self.objectId, 255, "evError")
144
143
  hbCommand.addByte(errorCode.value)
145
144
  ResultWorker()._setResultInfo(None,self.getObjectId())
146
145
  hbCommand.send()
147
- logging.info("returns")
146
+ LOGGER.debug("returns")
148
147
 
149
148
  """
150
149
  @param enable FALSE: Deaktiviert das Versenden von Events\r\nTRUE: Aktiviert das Versenden von Events\r\nINVERT: Invertiert das aktuelle Verhalten.
151
150
  @param disabledDuration Zeit1s-255s f? ? ? ?r die die Events deaktiviert werden sollen 0 = unendlich \r\nDieser Parameter wirkt nur.
152
151
  """
153
152
  def enableEvents(self, enable:EEnable, disabledDuration:int):
154
- logging.info("enableEvents"+" enable = "+str(enable)+" disabledDuration = "+str(disabledDuration))
153
+ LOGGER.debug("enableEvents"+" enable = "+str(enable)+" disabledDuration = "+str(disabledDuration))
155
154
  hbCommand = HausBusCommand(self.objectId, 2, "enableEvents")
156
155
  hbCommand.addByte(enable.value)
157
156
  hbCommand.addByte(disabledDuration)
158
157
  ResultWorker()._setResultInfo(None,self.getObjectId())
159
158
  hbCommand.send()
160
- logging.info("returns")
159
+ LOGGER.debug("returns")
161
160
 
162
161
  """
163
162
  """
164
163
  def getStatus(self):
165
- logging.info("getStatus")
164
+ LOGGER.debug("getStatus")
166
165
  hbCommand = HausBusCommand(self.objectId, 3, "getStatus")
167
166
  ResultWorker()._setResultInfo(Status,self.getObjectId())
168
167
  hbCommand.send()
169
- logging.info("returns")
168
+ LOGGER.debug("returns")
170
169
 
171
170
  """
172
171
  @param state .
173
172
  """
174
173
  def Status(self, state:EState):
175
- logging.info("Status"+" state = "+str(state))
174
+ LOGGER.debug("Status"+" state = "+str(state))
176
175
  hbCommand = HausBusCommand(self.objectId, 129, "Status")
177
176
  hbCommand.addByte(state.value)
178
177
  ResultWorker()._setResultInfo(None,self.getObjectId())
179
178
  hbCommand.send()
180
- logging.info("returns")
179
+ LOGGER.debug("returns")
181
180
 
182
181
  """
183
182
  @param enabled 0: Events wurden gerade deaktiviert\r\n1: Events wurden gerade aktiviert.
184
183
  """
185
184
  def evEnabled(self, enabled:int):
186
- logging.info("evEnabled"+" enabled = "+str(enabled))
185
+ LOGGER.debug("evEnabled"+" enabled = "+str(enabled))
187
186
  hbCommand = HausBusCommand(self.objectId, 206, "evEnabled")
188
187
  hbCommand.addByte(enabled)
189
188
  ResultWorker()._setResultInfo(None,self.getObjectId())
190
189
  hbCommand.send()
191
- logging.info("returns")
190
+ LOGGER.debug("returns")
192
191
 
193
192
  """
194
193
  @param enabled 0: Events sind deaktviert\r\n1: Events sind aktiviert.
195
194
  """
196
195
  def Enabled(self, enabled:int):
197
- logging.info("Enabled"+" enabled = "+str(enabled))
196
+ LOGGER.debug("Enabled"+" enabled = "+str(enabled))
198
197
  hbCommand = HausBusCommand(self.objectId, 130, "Enabled")
199
198
  hbCommand.addByte(enabled)
200
199
  ResultWorker()._setResultInfo(None,self.getObjectId())
201
200
  hbCommand.send()
202
- logging.info("returns")
201
+ LOGGER.debug("returns")
203
202
 
204
203
  """
205
204
  """
206
205
  def getEnabled(self):
207
- logging.info("getEnabled")
206
+ LOGGER.debug("getEnabled")
208
207
  hbCommand = HausBusCommand(self.objectId, 4, "getEnabled")
209
208
  ResultWorker()._setResultInfo(Enabled,self.getObjectId())
210
209
  hbCommand.send()
211
- logging.info("returns")
210
+ LOGGER.debug("returns")
212
211
 
213
212
  """
214
213
  """
215
214
  def triggerStatusEvent(self):
216
- logging.info("triggerStatusEvent")
215
+ LOGGER.debug("triggerStatusEvent")
217
216
  hbCommand = HausBusCommand(self.objectId, 5, "triggerStatusEvent")
218
217
  ResultWorker()._setResultInfo(None,self.getObjectId())
219
218
  hbCommand.send()
220
- logging.info("returns")
219
+ LOGGER.debug("returns")
221
220
 
222
221
 
@@ -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
@@ -21,49 +20,49 @@ class Taupunkt(ABusFeature):
21
20
  """
22
21
  """
23
22
  def evLow(self):
24
- logging.info("evLow")
23
+ LOGGER.debug("evLow")
25
24
  hbCommand = HausBusCommand(self.objectId, 200, "evLow")
26
25
  ResultWorker()._setResultInfo(None,self.getObjectId())
27
26
  hbCommand.send()
28
- logging.info("returns")
27
+ LOGGER.debug("returns")
29
28
 
30
29
  """
31
30
  """
32
31
  def evInRange(self):
33
- logging.info("evInRange")
32
+ LOGGER.debug("evInRange")
34
33
  hbCommand = HausBusCommand(self.objectId, 201, "evInRange")
35
34
  ResultWorker()._setResultInfo(None,self.getObjectId())
36
35
  hbCommand.send()
37
- logging.info("returns")
36
+ LOGGER.debug("returns")
38
37
 
39
38
  """
40
39
  """
41
40
  def evAbove(self):
42
- logging.info("evAbove")
41
+ LOGGER.debug("evAbove")
43
42
  hbCommand = HausBusCommand(self.objectId, 202, "evAbove")
44
43
  ResultWorker()._setResultInfo(None,self.getObjectId())
45
44
  hbCommand.send()
46
- logging.info("returns")
45
+ LOGGER.debug("returns")
47
46
 
48
47
  """
49
48
  @param errorCode .
50
49
  """
51
50
  def evError(self, errorCode:EErrorCode):
52
- logging.info("evError"+" errorCode = "+str(errorCode))
51
+ LOGGER.debug("evError"+" errorCode = "+str(errorCode))
53
52
  hbCommand = HausBusCommand(self.objectId, 255, "evError")
54
53
  hbCommand.addByte(errorCode.value)
55
54
  ResultWorker()._setResultInfo(None,self.getObjectId())
56
55
  hbCommand.send()
57
- logging.info("returns")
56
+ LOGGER.debug("returns")
58
57
 
59
58
  """
60
59
  """
61
60
  def getConfiguration(self):
62
- logging.info("getConfiguration")
61
+ LOGGER.debug("getConfiguration")
63
62
  hbCommand = HausBusCommand(self.objectId, 0, "getConfiguration")
64
63
  ResultWorker()._setResultInfo(Configuration,self.getObjectId())
65
64
  hbCommand.send()
66
- logging.info("returns")
65
+ LOGGER.debug("returns")
67
66
 
68
67
  """
69
68
  @param lowerThreshold untere Taupunktschwelle.
@@ -78,7 +77,7 @@ class Taupunkt(ABusFeature):
78
77
  @param deltaSensorID Die InstanceID des Sensors auf diesem Controller.
79
78
  """
80
79
  def setConfiguration(self, lowerThreshold:int, lowerThresholdFraction:int, upperThreshold:int, upperThresholdFraction:int, reportTimeBase:int, minReportTime:int, maxReportTime:int, hysteresis:int, calibration:int, deltaSensorID:int):
81
- logging.info("setConfiguration"+" lowerThreshold = "+str(lowerThreshold)+" lowerThresholdFraction = "+str(lowerThresholdFraction)+" upperThreshold = "+str(upperThreshold)+" upperThresholdFraction = "+str(upperThresholdFraction)+" reportTimeBase = "+str(reportTimeBase)+" minReportTime = "+str(minReportTime)+" maxReportTime = "+str(maxReportTime)+" hysteresis = "+str(hysteresis)+" calibration = "+str(calibration)+" deltaSensorID = "+str(deltaSensorID))
80
+ LOGGER.debug("setConfiguration"+" lowerThreshold = "+str(lowerThreshold)+" lowerThresholdFraction = "+str(lowerThresholdFraction)+" upperThreshold = "+str(upperThreshold)+" upperThresholdFraction = "+str(upperThresholdFraction)+" reportTimeBase = "+str(reportTimeBase)+" minReportTime = "+str(minReportTime)+" maxReportTime = "+str(maxReportTime)+" hysteresis = "+str(hysteresis)+" calibration = "+str(calibration)+" deltaSensorID = "+str(deltaSensorID))
82
81
  hbCommand = HausBusCommand(self.objectId, 1, "setConfiguration")
83
82
  hbCommand.addSByte(lowerThreshold)
84
83
  hbCommand.addSByte(lowerThresholdFraction)
@@ -92,16 +91,16 @@ class Taupunkt(ABusFeature):
92
91
  hbCommand.addByte(deltaSensorID)
93
92
  ResultWorker()._setResultInfo(None,self.getObjectId())
94
93
  hbCommand.send()
95
- logging.info("returns")
94
+ LOGGER.debug("returns")
96
95
 
97
96
  """
98
97
  """
99
98
  def getStatus(self):
100
- logging.info("getStatus")
99
+ LOGGER.debug("getStatus")
101
100
  hbCommand = HausBusCommand(self.objectId, 2, "getStatus")
102
101
  ResultWorker()._setResultInfo(Status,self.getObjectId())
103
102
  hbCommand.send()
104
- logging.info("returns")
103
+ LOGGER.debug("returns")
105
104
 
106
105
  """
107
106
  @param lowerThreshold untere Taupunktschwelle.
@@ -116,7 +115,7 @@ class Taupunkt(ABusFeature):
116
115
  @param deltaSensorID Die InstanceID des Sensors auf diesem Controller.
117
116
  """
118
117
  def Configuration(self, lowerThreshold:int, lowerThresholdFraction:int, upperThreshold:int, upperThresholdFraction:int, reportTimeBase:int, minReportTime:int, maxReportTime:int, hysteresis:int, calibration:int, deltaSensorID:int):
119
- logging.info("Configuration"+" lowerThreshold = "+str(lowerThreshold)+" lowerThresholdFraction = "+str(lowerThresholdFraction)+" upperThreshold = "+str(upperThreshold)+" upperThresholdFraction = "+str(upperThresholdFraction)+" reportTimeBase = "+str(reportTimeBase)+" minReportTime = "+str(minReportTime)+" maxReportTime = "+str(maxReportTime)+" hysteresis = "+str(hysteresis)+" calibration = "+str(calibration)+" deltaSensorID = "+str(deltaSensorID))
118
+ LOGGER.debug("Configuration"+" lowerThreshold = "+str(lowerThreshold)+" lowerThresholdFraction = "+str(lowerThresholdFraction)+" upperThreshold = "+str(upperThreshold)+" upperThresholdFraction = "+str(upperThresholdFraction)+" reportTimeBase = "+str(reportTimeBase)+" minReportTime = "+str(minReportTime)+" maxReportTime = "+str(maxReportTime)+" hysteresis = "+str(hysteresis)+" calibration = "+str(calibration)+" deltaSensorID = "+str(deltaSensorID))
120
119
  hbCommand = HausBusCommand(self.objectId, 128, "Configuration")
121
120
  hbCommand.addSByte(lowerThreshold)
122
121
  hbCommand.addSByte(lowerThresholdFraction)
@@ -130,7 +129,7 @@ class Taupunkt(ABusFeature):
130
129
  hbCommand.addByte(deltaSensorID)
131
130
  ResultWorker()._setResultInfo(None,self.getObjectId())
132
131
  hbCommand.send()
133
- logging.info("returns")
132
+ LOGGER.debug("returns")
134
133
 
135
134
  """
136
135
  @param celsius Grad Celsius.
@@ -138,14 +137,14 @@ class Taupunkt(ABusFeature):
138
137
  @param lastEvent .
139
138
  """
140
139
  def evStatus(self, celsius:int, centiCelsius:int, lastEvent:ELastEvent):
141
- logging.info("evStatus"+" celsius = "+str(celsius)+" centiCelsius = "+str(centiCelsius)+" lastEvent = "+str(lastEvent))
140
+ LOGGER.debug("evStatus"+" celsius = "+str(celsius)+" centiCelsius = "+str(centiCelsius)+" lastEvent = "+str(lastEvent))
142
141
  hbCommand = HausBusCommand(self.objectId, 203, "evStatus")
143
142
  hbCommand.addSByte(celsius)
144
143
  hbCommand.addSByte(centiCelsius)
145
144
  hbCommand.addByte(lastEvent.value)
146
145
  ResultWorker()._setResultInfo(None,self.getObjectId())
147
146
  hbCommand.send()
148
- logging.info("returns")
147
+ LOGGER.debug("returns")
149
148
 
150
149
  """
151
150
  @param celsius Grad Celsius.
@@ -153,13 +152,13 @@ class Taupunkt(ABusFeature):
153
152
  @param lastEvent .
154
153
  """
155
154
  def Status(self, celsius:int, centiCelsius:int, lastEvent:ELastEvent):
156
- logging.info("Status"+" celsius = "+str(celsius)+" centiCelsius = "+str(centiCelsius)+" lastEvent = "+str(lastEvent))
155
+ LOGGER.debug("Status"+" celsius = "+str(celsius)+" centiCelsius = "+str(centiCelsius)+" lastEvent = "+str(lastEvent))
157
156
  hbCommand = HausBusCommand(self.objectId, 129, "Status")
158
157
  hbCommand.addSByte(celsius)
159
158
  hbCommand.addSByte(centiCelsius)
160
159
  hbCommand.addByte(lastEvent.value)
161
160
  ResultWorker()._setResultInfo(None,self.getObjectId())
162
161
  hbCommand.send()
163
- logging.info("returns")
162
+ LOGGER.debug("returns")
164
163
 
165
164
 
@@ -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
@@ -23,7 +22,7 @@ class TcpClient(ABusFeature):
23
22
  @param port .
24
23
  """
25
24
  def announceServer(self, IP0:int, IP1:int, IP2:int, IP3:int, port:int):
26
- logging.info("announceServer"+" IP0 = "+str(IP0)+" IP1 = "+str(IP1)+" IP2 = "+str(IP2)+" IP3 = "+str(IP3)+" port = "+str(port))
25
+ LOGGER.debug("announceServer"+" IP0 = "+str(IP0)+" IP1 = "+str(IP1)+" IP2 = "+str(IP2)+" IP3 = "+str(IP3)+" port = "+str(port))
27
26
  hbCommand = HausBusCommand(self.objectId, 1, "announceServer")
28
27
  hbCommand.addByte(IP0)
29
28
  hbCommand.addByte(IP1)
@@ -32,16 +31,16 @@ class TcpClient(ABusFeature):
32
31
  hbCommand.addWord(port)
33
32
  ResultWorker()._setResultInfo(None,self.getObjectId())
34
33
  hbCommand.send()
35
- logging.info("returns")
34
+ LOGGER.debug("returns")
36
35
 
37
36
  """
38
37
  """
39
38
  def getCurrentIp(self):
40
- logging.info("getCurrentIp")
39
+ LOGGER.debug("getCurrentIp")
41
40
  hbCommand = HausBusCommand(self.objectId, 2, "getCurrentIp")
42
41
  ResultWorker()._setResultInfo(CurrentIp,self.getObjectId())
43
42
  hbCommand.send()
44
- logging.info("returns")
43
+ LOGGER.debug("returns")
45
44
 
46
45
  """
47
46
  @param IP0 .
@@ -50,7 +49,7 @@ class TcpClient(ABusFeature):
50
49
  @param IP3 .
51
50
  """
52
51
  def CurrentIp(self, IP0:int, IP1:int, IP2:int, IP3:int):
53
- logging.info("CurrentIp"+" IP0 = "+str(IP0)+" IP1 = "+str(IP1)+" IP2 = "+str(IP2)+" IP3 = "+str(IP3))
52
+ LOGGER.debug("CurrentIp"+" IP0 = "+str(IP0)+" IP1 = "+str(IP1)+" IP2 = "+str(IP2)+" IP3 = "+str(IP3))
54
53
  hbCommand = HausBusCommand(self.objectId, 128, "CurrentIp")
55
54
  hbCommand.addByte(IP0)
56
55
  hbCommand.addByte(IP1)
@@ -58,15 +57,15 @@ class TcpClient(ABusFeature):
58
57
  hbCommand.addByte(IP3)
59
58
  ResultWorker()._setResultInfo(None,self.getObjectId())
60
59
  hbCommand.send()
61
- logging.info("returns")
60
+ LOGGER.debug("returns")
62
61
 
63
62
  """
64
63
  """
65
64
  def evWhoIsServer(self):
66
- logging.info("evWhoIsServer")
65
+ LOGGER.debug("evWhoIsServer")
67
66
  hbCommand = HausBusCommand(self.objectId, 200, "evWhoIsServer")
68
67
  ResultWorker()._setResultInfo(None,self.getObjectId())
69
68
  hbCommand.send()
70
- logging.info("returns")
69
+ LOGGER.debug("returns")
71
70
 
72
71
 
@@ -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
@@ -21,38 +20,38 @@ class Temperatursensor(ABusFeature):
21
20
  """
22
21
  """
23
22
  def evCold(self):
24
- logging.info("evCold")
23
+ LOGGER.debug("evCold")
25
24
  hbCommand = HausBusCommand(self.objectId, 200, "evCold")
26
25
  ResultWorker()._setResultInfo(None,self.getObjectId())
27
26
  hbCommand.send()
28
- logging.info("returns")
27
+ LOGGER.debug("returns")
29
28
 
30
29
  """
31
30
  """
32
31
  def evWarm(self):
33
- logging.info("evWarm")
32
+ LOGGER.debug("evWarm")
34
33
  hbCommand = HausBusCommand(self.objectId, 201, "evWarm")
35
34
  ResultWorker()._setResultInfo(None,self.getObjectId())
36
35
  hbCommand.send()
37
- logging.info("returns")
36
+ LOGGER.debug("returns")
38
37
 
39
38
  """
40
39
  """
41
40
  def evHot(self):
42
- logging.info("evHot")
41
+ LOGGER.debug("evHot")
43
42
  hbCommand = HausBusCommand(self.objectId, 202, "evHot")
44
43
  ResultWorker()._setResultInfo(None,self.getObjectId())
45
44
  hbCommand.send()
46
- logging.info("returns")
45
+ LOGGER.debug("returns")
47
46
 
48
47
  """
49
48
  """
50
49
  def getConfiguration(self):
51
- logging.info("getConfiguration")
50
+ LOGGER.debug("getConfiguration")
52
51
  hbCommand = HausBusCommand(self.objectId, 0, "getConfiguration")
53
52
  ResultWorker()._setResultInfo(Configuration,self.getObjectId())
54
53
  hbCommand.send()
55
- logging.info("returns")
54
+ LOGGER.debug("returns")
56
55
 
57
56
  """
58
57
  @param lowerThreshold untere Temperaturschwelle.
@@ -67,7 +66,7 @@ class Temperatursensor(ABusFeature):
67
66
  @param deltaSensorID Die InstanceID des Sensors auf diesem Controller.
68
67
  """
69
68
  def Configuration(self, lowerThreshold:int, lowerThresholdFraction:int, upperThreshold:int, upperThresholdFraction:int, reportTimeBase:int, minReportTime:int, maxReportTime:int, hysteresis:int, calibration:int, deltaSensorID:int):
70
- logging.info("Configuration"+" lowerThreshold = "+str(lowerThreshold)+" lowerThresholdFraction = "+str(lowerThresholdFraction)+" upperThreshold = "+str(upperThreshold)+" upperThresholdFraction = "+str(upperThresholdFraction)+" reportTimeBase = "+str(reportTimeBase)+" minReportTime = "+str(minReportTime)+" maxReportTime = "+str(maxReportTime)+" hysteresis = "+str(hysteresis)+" calibration = "+str(calibration)+" deltaSensorID = "+str(deltaSensorID))
69
+ LOGGER.debug("Configuration"+" lowerThreshold = "+str(lowerThreshold)+" lowerThresholdFraction = "+str(lowerThresholdFraction)+" upperThreshold = "+str(upperThreshold)+" upperThresholdFraction = "+str(upperThresholdFraction)+" reportTimeBase = "+str(reportTimeBase)+" minReportTime = "+str(minReportTime)+" maxReportTime = "+str(maxReportTime)+" hysteresis = "+str(hysteresis)+" calibration = "+str(calibration)+" deltaSensorID = "+str(deltaSensorID))
71
70
  hbCommand = HausBusCommand(self.objectId, 128, "Configuration")
72
71
  hbCommand.addSByte(lowerThreshold)
73
72
  hbCommand.addSByte(lowerThresholdFraction)
@@ -81,7 +80,7 @@ class Temperatursensor(ABusFeature):
81
80
  hbCommand.addByte(deltaSensorID)
82
81
  ResultWorker()._setResultInfo(None,self.getObjectId())
83
82
  hbCommand.send()
84
- logging.info("returns")
83
+ LOGGER.debug("returns")
85
84
 
86
85
  """
87
86
  @param lowerThreshold untere Temperaturschwelle.
@@ -96,7 +95,7 @@ class Temperatursensor(ABusFeature):
96
95
  @param deltaSensorID Die InstanceID des Sensors auf diesem Controller.
97
96
  """
98
97
  def setConfiguration(self, lowerThreshold:int, lowerThresholdFraction:int, upperThreshold:int, upperThresholdFraction:int, reportTimeBase:int, minReportTime:int, maxReportTime:int, hysteresis:int, calibration:int, deltaSensorID:int):
99
- logging.info("setConfiguration"+" lowerThreshold = "+str(lowerThreshold)+" lowerThresholdFraction = "+str(lowerThresholdFraction)+" upperThreshold = "+str(upperThreshold)+" upperThresholdFraction = "+str(upperThresholdFraction)+" reportTimeBase = "+str(reportTimeBase)+" minReportTime = "+str(minReportTime)+" maxReportTime = "+str(maxReportTime)+" hysteresis = "+str(hysteresis)+" calibration = "+str(calibration)+" deltaSensorID = "+str(deltaSensorID))
98
+ LOGGER.debug("setConfiguration"+" lowerThreshold = "+str(lowerThreshold)+" lowerThresholdFraction = "+str(lowerThresholdFraction)+" upperThreshold = "+str(upperThreshold)+" upperThresholdFraction = "+str(upperThresholdFraction)+" reportTimeBase = "+str(reportTimeBase)+" minReportTime = "+str(minReportTime)+" maxReportTime = "+str(maxReportTime)+" hysteresis = "+str(hysteresis)+" calibration = "+str(calibration)+" deltaSensorID = "+str(deltaSensorID))
100
99
  hbCommand = HausBusCommand(self.objectId, 1, "setConfiguration")
101
100
  hbCommand.addSByte(lowerThreshold)
102
101
  hbCommand.addSByte(lowerThresholdFraction)
@@ -110,16 +109,16 @@ class Temperatursensor(ABusFeature):
110
109
  hbCommand.addByte(deltaSensorID)
111
110
  ResultWorker()._setResultInfo(None,self.getObjectId())
112
111
  hbCommand.send()
113
- logging.info("returns")
112
+ LOGGER.debug("returns")
114
113
 
115
114
  """
116
115
  """
117
116
  def getStatus(self):
118
- logging.info("getStatus")
117
+ LOGGER.debug("getStatus")
119
118
  hbCommand = HausBusCommand(self.objectId, 2, "getStatus")
120
119
  ResultWorker()._setResultInfo(Status,self.getObjectId())
121
120
  hbCommand.send()
122
- logging.info("returns")
121
+ LOGGER.debug("returns")
123
122
 
124
123
  """
125
124
  @param celsius Grad Celsius.
@@ -127,25 +126,25 @@ class Temperatursensor(ABusFeature):
127
126
  @param lastEvent .
128
127
  """
129
128
  def evStatus(self, celsius:int, centiCelsius:int, lastEvent:ELastEvent):
130
- logging.info("evStatus"+" celsius = "+str(celsius)+" centiCelsius = "+str(centiCelsius)+" lastEvent = "+str(lastEvent))
129
+ LOGGER.debug("evStatus"+" celsius = "+str(celsius)+" centiCelsius = "+str(centiCelsius)+" lastEvent = "+str(lastEvent))
131
130
  hbCommand = HausBusCommand(self.objectId, 203, "evStatus")
132
131
  hbCommand.addSByte(celsius)
133
132
  hbCommand.addSByte(centiCelsius)
134
133
  hbCommand.addByte(lastEvent.value)
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
  @param errorCode .
141
140
  """
142
141
  def evError(self, errorCode:EErrorCode):
143
- logging.info("evError"+" errorCode = "+str(errorCode))
142
+ LOGGER.debug("evError"+" errorCode = "+str(errorCode))
144
143
  hbCommand = HausBusCommand(self.objectId, 255, "evError")
145
144
  hbCommand.addByte(errorCode.value)
146
145
  ResultWorker()._setResultInfo(None,self.getObjectId())
147
146
  hbCommand.send()
148
- logging.info("returns")
147
+ LOGGER.debug("returns")
149
148
 
150
149
  """
151
150
  @param celsius Grad Celsius.
@@ -153,13 +152,13 @@ class Temperatursensor(ABusFeature):
153
152
  @param lastEvent .
154
153
  """
155
154
  def Status(self, celsius:int, centiCelsius:int, lastEvent:ELastEvent):
156
- logging.info("Status"+" celsius = "+str(celsius)+" centiCelsius = "+str(centiCelsius)+" lastEvent = "+str(lastEvent))
155
+ LOGGER.debug("Status"+" celsius = "+str(celsius)+" centiCelsius = "+str(centiCelsius)+" lastEvent = "+str(lastEvent))
157
156
  hbCommand = HausBusCommand(self.objectId, 129, "Status")
158
157
  hbCommand.addSByte(celsius)
159
158
  hbCommand.addSByte(centiCelsius)
160
159
  hbCommand.addByte(lastEvent.value)
161
160
  ResultWorker()._setResultInfo(None,self.getObjectId())
162
161
  hbCommand.send()
163
- logging.info("returns")
162
+ LOGGER.debug("returns")
164
163
 
165
164
 
@@ -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
@@ -18,11 +17,11 @@ class Wetter(ABusFeature):
18
17
  """
19
18
  """
20
19
  def getWeather(self):
21
- logging.info("getWeather")
20
+ LOGGER.debug("getWeather")
22
21
  hbCommand = HausBusCommand(self.objectId, 5, "getWeather")
23
22
  ResultWorker()._setResultInfo(None,self.getObjectId())
24
23
  hbCommand.send()
25
- logging.info("returns")
24
+ LOGGER.debug("returns")
26
25
 
27
26
  """
28
27
  @param humidity Luftfeuchtigkeit.
@@ -35,7 +34,7 @@ class Wetter(ABusFeature):
35
34
  def weather(self, humidity:int, pressure:int, temp:int, sunrise:WeekTime=None
36
35
  , sunset:WeekTime=None
37
36
  , text:str):
38
- logging.info("weather"+" humidity = "+str(humidity)+" pressure = "+str(pressure)+" temp = "+str(temp)+" sunrise = "+str(sunrise)+" sunset = "+str(sunset)+" text = "+str(text))
37
+ LOGGER.debug("weather"+" humidity = "+str(humidity)+" pressure = "+str(pressure)+" temp = "+str(temp)+" sunrise = "+str(sunrise)+" sunset = "+str(sunset)+" text = "+str(text))
39
38
  hbCommand = HausBusCommand(self.objectId, 128, "weather")
40
39
  hbCommand.addByte(humidity)
41
40
  hbCommand.addWord(pressure)
@@ -45,6 +44,6 @@ class Wetter(ABusFeature):
45
44
  hbCommand.addString(text)
46
45
  ResultWorker()._setResultInfo(None,self.getObjectId())
47
46
  hbCommand.send()
48
- logging.info("returns")
47
+ LOGGER.debug("returns")
49
48
 
50
49