pyhausbus 1.0.4__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 (39) hide show
  1. pyhausbus/HomeServer.py +0 -1
  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.4.dist-info → pyhausbus-1.0.6.dist-info}/METADATA +1 -1
  37. {pyhausbus-1.0.4.dist-info → pyhausbus-1.0.6.dist-info}/RECORD +39 -39
  38. {pyhausbus-1.0.4.dist-info → pyhausbus-1.0.6.dist-info}/LICENSE +0 -0
  39. {pyhausbus-1.0.4.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
@@ -23,42 +22,42 @@ class Rollladen(ABusFeature):
23
22
  """
24
23
  """
25
24
  def getConfiguration(self):
26
- logging.info("getConfiguration")
25
+ LOGGER.debug("getConfiguration")
27
26
  hbCommand = HausBusCommand(self.objectId, 0, "getConfiguration")
28
27
  ResultWorker()._setResultInfo(Configuration,self.getObjectId())
29
28
  hbCommand.send()
30
- logging.info("returns")
29
+ LOGGER.debug("returns")
31
30
 
32
31
  """
33
32
  @param position in Prozent.
34
33
  """
35
34
  def moveToPosition(self, position:int):
36
- logging.info("moveToPosition"+" position = "+str(position))
35
+ LOGGER.debug("moveToPosition"+" position = "+str(position))
37
36
  hbCommand = HausBusCommand(self.objectId, 2, "moveToPosition")
38
37
  hbCommand.addByte(position)
39
38
  ResultWorker()._setResultInfo(None,self.getObjectId())
40
39
  hbCommand.send()
41
- logging.info("returns")
40
+ LOGGER.debug("returns")
42
41
 
43
42
  """
44
43
  @param direction .
45
44
  """
46
45
  def start(self, direction:EDirection):
47
- logging.info("start"+" direction = "+str(direction))
46
+ LOGGER.debug("start"+" direction = "+str(direction))
48
47
  hbCommand = HausBusCommand(self.objectId, 3, "start")
49
48
  hbCommand.addByte(direction.value)
50
49
  ResultWorker()._setResultInfo(None,self.getObjectId())
51
50
  hbCommand.send()
52
- logging.info("returns")
51
+ LOGGER.debug("returns")
53
52
 
54
53
  """
55
54
  """
56
55
  def stop(self):
57
- logging.info("stop")
56
+ LOGGER.debug("stop")
58
57
  hbCommand = HausBusCommand(self.objectId, 4, "stop")
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
  @param closeTime Zeit.
@@ -66,56 +65,56 @@ class Rollladen(ABusFeature):
66
65
  @param options invertDirection: invertiert die Richtung der Ansteuerung des Rollladen.\r\nindependent: behandelt die Relais unabhaengig voneinander d.h. pro Richtung wird nur das jeweilige Relais geschaltet\r\ninvertOutputs: steuert die angeschlossenen Relais mit activLow Logik\r\nenableTracing: Objekt sendet zus?tzliche Events f?r eine Fehlersuche.
67
66
  """
68
67
  def Configuration(self, closeTime:int, openTime:int, options:MOptions):
69
- logging.info("Configuration"+" closeTime = "+str(closeTime)+" openTime = "+str(openTime)+" options = "+str(options))
68
+ LOGGER.debug("Configuration"+" closeTime = "+str(closeTime)+" openTime = "+str(openTime)+" options = "+str(options))
70
69
  hbCommand = HausBusCommand(self.objectId, 128, "Configuration")
71
70
  hbCommand.addByte(closeTime)
72
71
  hbCommand.addByte(openTime)
73
72
  hbCommand.addByte(options.getValue())
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 position in Prozent.
80
79
  """
81
80
  def evClosed(self, position:int):
82
- logging.info("evClosed"+" position = "+str(position))
81
+ LOGGER.debug("evClosed"+" position = "+str(position))
83
82
  hbCommand = HausBusCommand(self.objectId, 200, "evClosed")
84
83
  hbCommand.addByte(position)
85
84
  ResultWorker()._setResultInfo(None,self.getObjectId())
86
85
  hbCommand.send()
87
- logging.info("returns")
86
+ LOGGER.debug("returns")
88
87
 
89
88
  """
90
89
  @param direction .
91
90
  """
92
91
  def evStart(self, direction:EDirection):
93
- logging.info("evStart"+" direction = "+str(direction))
92
+ LOGGER.debug("evStart"+" direction = "+str(direction))
94
93
  hbCommand = HausBusCommand(self.objectId, 201, "evStart")
95
94
  hbCommand.addByte(direction.value)
96
95
  ResultWorker()._setResultInfo(None,self.getObjectId())
97
96
  hbCommand.send()
98
- logging.info("returns")
97
+ LOGGER.debug("returns")
99
98
 
100
99
  """
101
100
  """
102
101
  def getStatus(self):
103
- logging.info("getStatus")
102
+ LOGGER.debug("getStatus")
104
103
  hbCommand = HausBusCommand(self.objectId, 5, "getStatus")
105
104
  ResultWorker()._setResultInfo(Status,self.getObjectId())
106
105
  hbCommand.send()
107
- logging.info("returns")
106
+ LOGGER.debug("returns")
108
107
 
109
108
  """
110
109
  @param position .
111
110
  """
112
111
  def Status(self, position:int):
113
- logging.info("Status"+" position = "+str(position))
112
+ LOGGER.debug("Status"+" position = "+str(position))
114
113
  hbCommand = HausBusCommand(self.objectId, 129, "Status")
115
114
  hbCommand.addByte(position)
116
115
  ResultWorker()._setResultInfo(None,self.getObjectId())
117
116
  hbCommand.send()
118
- logging.info("returns")
117
+ LOGGER.debug("returns")
119
118
 
120
119
  """
121
120
  @param closeTime Zeit.
@@ -123,70 +122,70 @@ class Rollladen(ABusFeature):
123
122
  @param options invertDirection: invertiert die Richtung der Ansteuerung des Rollladen.\r\nindependent: behandelt die Relais unabhaengig voneinander d.h. pro Richtung wird nur das jeweilige Relais geschaltet\r\ninvertOutputs: steuert die angeschlossenen Relais mit activLow Logik\r\nenableTracing: Objekt sendet zus?tzliche Events f?r eine Fehlersuche.
124
123
  """
125
124
  def setConfiguration(self, closeTime:int, openTime:int, options:MOptions):
126
- logging.info("setConfiguration"+" closeTime = "+str(closeTime)+" openTime = "+str(openTime)+" options = "+str(options))
125
+ LOGGER.debug("setConfiguration"+" closeTime = "+str(closeTime)+" openTime = "+str(openTime)+" options = "+str(options))
127
126
  hbCommand = HausBusCommand(self.objectId, 1, "setConfiguration")
128
127
  hbCommand.addByte(closeTime)
129
128
  hbCommand.addByte(openTime)
130
129
  hbCommand.addByte(options.getValue())
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 errorCode .
137
136
  """
138
137
  def evError(self, errorCode:EErrorCode):
139
- logging.info("evError"+" errorCode = "+str(errorCode))
138
+ LOGGER.debug("evError"+" errorCode = "+str(errorCode))
140
139
  hbCommand = HausBusCommand(self.objectId, 255, "evError")
141
140
  hbCommand.addByte(errorCode.value)
142
141
  ResultWorker()._setResultInfo(None,self.getObjectId())
143
142
  hbCommand.send()
144
- logging.info("returns")
143
+ LOGGER.debug("returns")
145
144
 
146
145
  """
147
146
  @param position Aktuelle Position setzen 0-100% geschlossen.
148
147
  """
149
148
  def setPosition(self, position:int):
150
- logging.info("setPosition"+" position = "+str(position))
149
+ LOGGER.debug("setPosition"+" position = "+str(position))
151
150
  hbCommand = HausBusCommand(self.objectId, 6, "setPosition")
152
151
  hbCommand.addByte(position)
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 evOpen(self):
160
- logging.info("evOpen")
159
+ LOGGER.debug("evOpen")
161
160
  hbCommand = HausBusCommand(self.objectId, 202, "evOpen")
162
161
  ResultWorker()._setResultInfo(None,self.getObjectId())
163
162
  hbCommand.send()
164
- logging.info("returns")
163
+ LOGGER.debug("returns")
165
164
 
166
165
  """
167
166
  @param newState State.
168
167
  @param preState State.
169
168
  """
170
169
  def evNewMainState(self, newState:ENewState, preState:ENewState):
171
- logging.info("evNewMainState"+" newState = "+str(newState)+" preState = "+str(preState))
170
+ LOGGER.debug("evNewMainState"+" newState = "+str(newState)+" preState = "+str(preState))
172
171
  hbCommand = HausBusCommand(self.objectId, 251, "evNewMainState")
173
172
  hbCommand.addByte(newState.value)
174
173
  hbCommand.addByte(preState.value)
175
174
  ResultWorker()._setResultInfo(None,self.getObjectId())
176
175
  hbCommand.send()
177
- logging.info("returns")
176
+ LOGGER.debug("returns")
178
177
 
179
178
  """
180
179
  @param newState State.
181
180
  @param preState State.
182
181
  """
183
182
  def evNewSubState(self, newState:ENewState, preState:ENewState):
184
- logging.info("evNewSubState"+" newState = "+str(newState)+" preState = "+str(preState))
183
+ LOGGER.debug("evNewSubState"+" newState = "+str(newState)+" preState = "+str(preState))
185
184
  hbCommand = HausBusCommand(self.objectId, 252, "evNewSubState")
186
185
  hbCommand.addByte(newState.value)
187
186
  hbCommand.addByte(preState.value)
188
187
  ResultWorker()._setResultInfo(None,self.getObjectId())
189
188
  hbCommand.send()
190
- logging.info("returns")
189
+ LOGGER.debug("returns")
191
190
 
192
191
 
@@ -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
@@ -25,67 +24,67 @@ class Schalter(ABusFeature):
25
24
  @param quantity Anzahl der Zustandswechsel.
26
25
  """
27
26
  def toggle(self, offTime:int, onTime:int, quantity:int):
28
- logging.info("toggle"+" offTime = "+str(offTime)+" onTime = "+str(onTime)+" quantity = "+str(quantity))
27
+ LOGGER.debug("toggle"+" offTime = "+str(offTime)+" onTime = "+str(onTime)+" quantity = "+str(quantity))
29
28
  hbCommand = HausBusCommand(self.objectId, 4, "toggle")
30
29
  hbCommand.addByte(offTime)
31
30
  hbCommand.addByte(onTime)
32
31
  hbCommand.addByte(quantity)
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
  @param duration Einschaltdauer: \r\nWert * Zeitbasis [ms]\r\n0=nicht mehr ausschalten.
39
38
  @param onDelay Einschaltverzoegerung: Wert * Zeitbasis [ms]\r\n0=Keine.
40
39
  """
41
40
  def on(self, duration:int, onDelay:int):
42
- logging.info("on"+" duration = "+str(duration)+" onDelay = "+str(onDelay))
41
+ LOGGER.debug("on"+" duration = "+str(duration)+" onDelay = "+str(onDelay))
43
42
  hbCommand = HausBusCommand(self.objectId, 3, "on")
44
43
  hbCommand.addWord(duration)
45
44
  hbCommand.addWord(onDelay)
46
45
  ResultWorker()._setResultInfo(None,self.getObjectId())
47
46
  hbCommand.send()
48
- logging.info("returns")
47
+ LOGGER.debug("returns")
49
48
 
50
49
  """
51
50
  @param offDelay Ausschaltverzoegerung: Wert * Zeitbasis [ms]\r\n0=Keine.
52
51
  """
53
52
  def off(self, offDelay:int):
54
- logging.info("off"+" offDelay = "+str(offDelay))
53
+ LOGGER.debug("off"+" offDelay = "+str(offDelay))
55
54
  hbCommand = HausBusCommand(self.objectId, 2, "off")
56
55
  hbCommand.addWord(offDelay)
57
56
  ResultWorker()._setResultInfo(None,self.getObjectId())
58
57
  hbCommand.send()
59
- logging.info("returns")
58
+ LOGGER.debug("returns")
60
59
 
61
60
  """
62
61
  @param duration Dauer.
63
62
  """
64
63
  def evOn(self, duration:int):
65
- logging.info("evOn"+" duration = "+str(duration))
64
+ LOGGER.debug("evOn"+" duration = "+str(duration))
66
65
  hbCommand = HausBusCommand(self.objectId, 201, "evOn")
67
66
  hbCommand.addWord(duration)
68
67
  ResultWorker()._setResultInfo(None,self.getObjectId())
69
68
  hbCommand.send()
70
- logging.info("returns")
69
+ LOGGER.debug("returns")
71
70
 
72
71
  """
73
72
  """
74
73
  def evOff(self):
75
- logging.info("evOff")
74
+ LOGGER.debug("evOff")
76
75
  hbCommand = HausBusCommand(self.objectId, 200, "evOff")
77
76
  ResultWorker()._setResultInfo(None,self.getObjectId())
78
77
  hbCommand.send()
79
- logging.info("returns")
78
+ LOGGER.debug("returns")
80
79
 
81
80
  """
82
81
  """
83
82
  def getStatus(self):
84
- logging.info("getStatus")
83
+ LOGGER.debug("getStatus")
85
84
  hbCommand = HausBusCommand(self.objectId, 5, "getStatus")
86
85
  ResultWorker()._setResultInfo(Status,self.getObjectId())
87
86
  hbCommand.send()
88
- logging.info("returns")
87
+ LOGGER.debug("returns")
89
88
 
90
89
  """
91
90
  @param state .
@@ -94,7 +93,7 @@ class Schalter(ABusFeature):
94
93
  @param onTime Dauer der An-Phase beim Togglen: \r\nWert * Zeitbasis [ms].
95
94
  """
96
95
  def Status(self, state:EState, duration:int, offTime:int, onTime:int):
97
- logging.info("Status"+" state = "+str(state)+" duration = "+str(duration)+" offTime = "+str(offTime)+" onTime = "+str(onTime))
96
+ LOGGER.debug("Status"+" state = "+str(state)+" duration = "+str(duration)+" offTime = "+str(offTime)+" onTime = "+str(onTime))
98
97
  hbCommand = HausBusCommand(self.objectId, 129, "Status")
99
98
  hbCommand.addByte(state.value)
100
99
  hbCommand.addWord(duration)
@@ -102,18 +101,18 @@ class Schalter(ABusFeature):
102
101
  hbCommand.addByte(onTime)
103
102
  ResultWorker()._setResultInfo(None,self.getObjectId())
104
103
  hbCommand.send()
105
- logging.info("returns")
104
+ LOGGER.debug("returns")
106
105
 
107
106
  """
108
107
  @param errorCode .
109
108
  """
110
109
  def evError(self, errorCode:EErrorCode):
111
- logging.info("evError"+" errorCode = "+str(errorCode))
110
+ LOGGER.debug("evError"+" errorCode = "+str(errorCode))
112
111
  hbCommand = HausBusCommand(self.objectId, 255, "evError")
113
112
  hbCommand.addByte(errorCode.value)
114
113
  ResultWorker()._setResultInfo(None,self.getObjectId())
115
114
  hbCommand.send()
116
- logging.info("returns")
115
+ LOGGER.debug("returns")
117
116
 
118
117
  """
119
118
  @param offTime Dauer der Aus-Phase beim Togglen: \r\nWert * Zeitbasis [ms].
@@ -121,14 +120,14 @@ class Schalter(ABusFeature):
121
120
  @param quantity Anzahl der Schaltvorgaenge.
122
121
  """
123
122
  def evToggle(self, offTime:int, onTime:int, quantity:int):
124
- logging.info("evToggle"+" offTime = "+str(offTime)+" onTime = "+str(onTime)+" quantity = "+str(quantity))
123
+ LOGGER.debug("evToggle"+" offTime = "+str(offTime)+" onTime = "+str(onTime)+" quantity = "+str(quantity))
125
124
  hbCommand = HausBusCommand(self.objectId, 202, "evToggle")
126
125
  hbCommand.addByte(offTime)
127
126
  hbCommand.addByte(onTime)
128
127
  hbCommand.addByte(quantity)
129
128
  ResultWorker()._setResultInfo(None,self.getObjectId())
130
129
  hbCommand.send()
131
- logging.info("returns")
130
+ LOGGER.debug("returns")
132
131
 
133
132
  """
134
133
  @param maxOnTime Maximale Zeit.
@@ -138,7 +137,7 @@ class Schalter(ABusFeature):
138
137
  @param disableBitIndex Bit Index0-31 Systemvariable.
139
138
  """
140
139
  def Configuration(self, maxOnTime:int, offDelayTime:int, timeBase:int, options:MOptions, disableBitIndex:int):
141
- logging.info("Configuration"+" maxOnTime = "+str(maxOnTime)+" offDelayTime = "+str(offDelayTime)+" timeBase = "+str(timeBase)+" options = "+str(options)+" disableBitIndex = "+str(disableBitIndex))
140
+ LOGGER.debug("Configuration"+" maxOnTime = "+str(maxOnTime)+" offDelayTime = "+str(offDelayTime)+" timeBase = "+str(timeBase)+" options = "+str(options)+" disableBitIndex = "+str(disableBitIndex))
142
141
  hbCommand = HausBusCommand(self.objectId, 128, "Configuration")
143
142
  hbCommand.addByte(maxOnTime)
144
143
  hbCommand.addByte(offDelayTime)
@@ -147,16 +146,16 @@ class Schalter(ABusFeature):
147
146
  hbCommand.addByte(disableBitIndex)
148
147
  ResultWorker()._setResultInfo(None,self.getObjectId())
149
148
  hbCommand.send()
150
- logging.info("returns")
149
+ LOGGER.debug("returns")
151
150
 
152
151
  """
153
152
  """
154
153
  def getConfiguration(self):
155
- logging.info("getConfiguration")
154
+ LOGGER.debug("getConfiguration")
156
155
  hbCommand = HausBusCommand(self.objectId, 0, "getConfiguration")
157
156
  ResultWorker()._setResultInfo(Configuration,self.getObjectId())
158
157
  hbCommand.send()
159
- logging.info("returns")
158
+ LOGGER.debug("returns")
160
159
 
161
160
  """
162
161
  @param maxOnTime Maximale Zeit.
@@ -166,7 +165,7 @@ class Schalter(ABusFeature):
166
165
  @param disableBitIndex Bit Index0-31 Systemvariable.
167
166
  """
168
167
  def setConfiguration(self, maxOnTime:int, offDelayTime:int, timeBase:int, options:MOptions, disableBitIndex:int):
169
- logging.info("setConfiguration"+" maxOnTime = "+str(maxOnTime)+" offDelayTime = "+str(offDelayTime)+" timeBase = "+str(timeBase)+" options = "+str(options)+" disableBitIndex = "+str(disableBitIndex))
168
+ LOGGER.debug("setConfiguration"+" maxOnTime = "+str(maxOnTime)+" offDelayTime = "+str(offDelayTime)+" timeBase = "+str(timeBase)+" options = "+str(options)+" disableBitIndex = "+str(disableBitIndex))
170
169
  hbCommand = HausBusCommand(self.objectId, 1, "setConfiguration")
171
170
  hbCommand.addByte(maxOnTime)
172
171
  hbCommand.addByte(offDelayTime)
@@ -175,39 +174,39 @@ class Schalter(ABusFeature):
175
174
  hbCommand.addByte(disableBitIndex)
176
175
  ResultWorker()._setResultInfo(None,self.getObjectId())
177
176
  hbCommand.send()
178
- logging.info("returns")
177
+ LOGGER.debug("returns")
179
178
 
180
179
  """
181
180
  @param cmdDelay Dauer Wert * Zeitbasis [ms].
182
181
  """
183
182
  def evCmdDelay(self, cmdDelay:int):
184
- logging.info("evCmdDelay"+" cmdDelay = "+str(cmdDelay))
183
+ LOGGER.debug("evCmdDelay"+" cmdDelay = "+str(cmdDelay))
185
184
  hbCommand = HausBusCommand(self.objectId, 203, "evCmdDelay")
186
185
  hbCommand.addWord(cmdDelay)
187
186
  ResultWorker()._setResultInfo(None,self.getObjectId())
188
187
  hbCommand.send()
189
- logging.info("returns")
188
+ LOGGER.debug("returns")
190
189
 
191
190
  """
192
191
  """
193
192
  def evDisabled(self):
194
- logging.info("evDisabled")
193
+ LOGGER.debug("evDisabled")
195
194
  hbCommand = HausBusCommand(self.objectId, 204, "evDisabled")
196
195
  ResultWorker()._setResultInfo(None,self.getObjectId())
197
196
  hbCommand.send()
198
- logging.info("returns")
197
+ LOGGER.debug("returns")
199
198
 
200
199
  """
201
200
  @param duty 0-100% Pulsverh?ltnis.
202
201
  @param quantity Anzahl der Zustandswechsel.
203
202
  """
204
203
  def toggleByDuty(self, duty:int, quantity:int):
205
- logging.info("toggleByDuty"+" duty = "+str(duty)+" quantity = "+str(quantity))
204
+ LOGGER.debug("toggleByDuty"+" duty = "+str(duty)+" quantity = "+str(quantity))
206
205
  hbCommand = HausBusCommand(self.objectId, 6, "toggleByDuty")
207
206
  hbCommand.addByte(duty)
208
207
  hbCommand.addByte(quantity)
209
208
  ResultWorker()._setResultInfo(None,self.getObjectId())
210
209
  hbCommand.send()
211
- logging.info("returns")
210
+ LOGGER.debug("returns")
212
211
 
213
212
 
@@ -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
@@ -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
@@ -22,11 +21,11 @@ class SystemTime(ABusFeature):
22
21
  """
23
22
  """
24
23
  def getTime(self):
25
- logging.info("getTime")
24
+ LOGGER.debug("getTime")
26
25
  hbCommand = HausBusCommand(self.objectId, 0, "getTime")
27
26
  ResultWorker()._setResultInfo(Time,self.getObjectId())
28
27
  hbCommand.send()
29
- logging.info("returns")
28
+ LOGGER.debug("returns")
30
29
 
31
30
  """
32
31
  @param weekDay .
@@ -38,7 +37,7 @@ class SystemTime(ABusFeature):
38
37
  @param seconds .
39
38
  """
40
39
  def setTime(self, weekDay:EWeekDay, date:EDate, month:EMonth, year:int, hours:int, minutes:int, seconds:int):
41
- logging.info("setTime"+" weekDay = "+str(weekDay)+" date = "+str(date)+" month = "+str(month)+" year = "+str(year)+" hours = "+str(hours)+" minutes = "+str(minutes)+" seconds = "+str(seconds))
40
+ LOGGER.debug("setTime"+" weekDay = "+str(weekDay)+" date = "+str(date)+" month = "+str(month)+" year = "+str(year)+" hours = "+str(hours)+" minutes = "+str(minutes)+" seconds = "+str(seconds))
42
41
  hbCommand = HausBusCommand(self.objectId, 1, "setTime")
43
42
  hbCommand.addByte(weekDay.value)
44
43
  hbCommand.addByte(date.value)
@@ -49,7 +48,7 @@ class SystemTime(ABusFeature):
49
48
  hbCommand.addByte(seconds)
50
49
  ResultWorker()._setResultInfo(None,self.getObjectId())
51
50
  hbCommand.send()
52
- logging.info("returns")
51
+ LOGGER.debug("returns")
53
52
 
54
53
  """
55
54
  @param weekday .
@@ -61,7 +60,7 @@ class SystemTime(ABusFeature):
61
60
  @param seconds .
62
61
  """
63
62
  def Time(self, weekday:int, date:int, month:int, year:int, hours:int, minutes:int, seconds:int):
64
- logging.info("Time"+" weekday = "+str(weekday)+" date = "+str(date)+" month = "+str(month)+" year = "+str(year)+" hours = "+str(hours)+" minutes = "+str(minutes)+" seconds = "+str(seconds))
63
+ LOGGER.debug("Time"+" weekday = "+str(weekday)+" date = "+str(date)+" month = "+str(month)+" year = "+str(year)+" hours = "+str(hours)+" minutes = "+str(minutes)+" seconds = "+str(seconds))
65
64
  hbCommand = HausBusCommand(self.objectId, 128, "Time")
66
65
  hbCommand.addByte(weekday)
67
66
  hbCommand.addByte(date)
@@ -72,17 +71,17 @@ class SystemTime(ABusFeature):
72
71
  hbCommand.addByte(seconds)
73
72
  ResultWorker()._setResultInfo(None,self.getObjectId())
74
73
  hbCommand.send()
75
- logging.info("returns")
74
+ LOGGER.debug("returns")
76
75
 
77
76
  """
78
77
  @param errorCode .
79
78
  """
80
79
  def evError(self, errorCode:EErrorCode):
81
- logging.info("evError"+" errorCode = "+str(errorCode))
80
+ LOGGER.debug("evError"+" errorCode = "+str(errorCode))
82
81
  hbCommand = HausBusCommand(self.objectId, 255, "evError")
83
82
  hbCommand.addByte(errorCode.value)
84
83
  ResultWorker()._setResultInfo(None,self.getObjectId())
85
84
  hbCommand.send()
86
- logging.info("returns")
85
+ LOGGER.debug("returns")
87
86
 
88
87