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
@@ -24,94 +23,94 @@ class Gateway(ABusFeature):
24
23
  @param errorCode .
25
24
  """
26
25
  def evError(self, errorCode:EErrorCode):
27
- logging.info("evError"+" errorCode = "+str(errorCode))
26
+ LOGGER.debug("evError"+" errorCode = "+str(errorCode))
28
27
  hbCommand = HausBusCommand(self.objectId, 255, "evError")
29
28
  hbCommand.addByte(errorCode.value)
30
29
  ResultWorker()._setResultInfo(None,self.getObjectId())
31
30
  hbCommand.send()
32
- logging.info("returns")
31
+ LOGGER.debug("returns")
33
32
 
34
33
  """
35
34
  """
36
35
  def getConfiguration(self):
37
- logging.info("getConfiguration")
36
+ LOGGER.debug("getConfiguration")
38
37
  hbCommand = HausBusCommand(self.objectId, 0, "getConfiguration")
39
38
  ResultWorker()._setResultInfo(Configuration,self.getObjectId())
40
39
  hbCommand.send()
41
- logging.info("returns")
40
+ LOGGER.debug("returns")
42
41
 
43
42
  """
44
43
  @param options enabled: Dies Gateway ist aktiv und leitet Nachrichten weiter\r\npreferLoxone: Gateway kommuniziert bevorzugt im Loxone-Protokoll\r\nenableConsole: aktiviert das senden von Debugausgaben\r\nmaster: dieses Gateway soll das Bus-Timing verwalten\r\n\r\nReservierte Bits muessen immer deaktiviert sein. Das Aktivieren eines reservierten Bits fuehrt nach dem Neustart des Controllers zu den Standart-Einstellungen..
45
44
  """
46
45
  def setConfiguration(self, options:MOptions):
47
- logging.info("setConfiguration"+" options = "+str(options))
46
+ LOGGER.debug("setConfiguration"+" options = "+str(options))
48
47
  hbCommand = HausBusCommand(self.objectId, 1, "setConfiguration")
49
48
  hbCommand.addByte(options.getValue())
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 getMinIdleTime(self):
57
- logging.info("getMinIdleTime")
56
+ LOGGER.debug("getMinIdleTime")
58
57
  hbCommand = HausBusCommand(self.objectId, 3, "getMinIdleTime")
59
58
  ResultWorker()._setResultInfo(MinIdleTime,self.getObjectId())
60
59
  hbCommand.send()
61
- logging.info("returns")
60
+ LOGGER.debug("returns")
62
61
 
63
62
  """
64
63
  @param time_ms Mindestwartezeit [ms].
65
64
  """
66
65
  def MinIdleTime(self, time_ms:int):
67
- logging.info("MinIdleTime"+" time_ms = "+str(time_ms))
66
+ LOGGER.debug("MinIdleTime"+" time_ms = "+str(time_ms))
68
67
  hbCommand = HausBusCommand(self.objectId, 129, "MinIdleTime")
69
68
  hbCommand.addByte(time_ms)
70
69
  ResultWorker()._setResultInfo(None,self.getObjectId())
71
70
  hbCommand.send()
72
- logging.info("returns")
71
+ LOGGER.debug("returns")
73
72
 
74
73
  """
75
74
  @param options enabled: Dies Gateway ist aktiv und leitet Nachrichten weiter\r\npreferLoxone: Gateway kommuniziert bevorzugt im Loxone-Protokoll\r\nenableConsole: aktiviert das senden von Debugausgaben\r\nmaster: dieses Gateway soll das Bus-Timing verwalten.
76
75
  """
77
76
  def Configuration(self, options:MOptions):
78
- logging.info("Configuration"+" options = "+str(options))
77
+ LOGGER.debug("Configuration"+" options = "+str(options))
79
78
  hbCommand = HausBusCommand(self.objectId, 128, "Configuration")
80
79
  hbCommand.addByte(options.getValue())
81
80
  ResultWorker()._setResultInfo(None,self.getObjectId())
82
81
  hbCommand.send()
83
- logging.info("returns")
82
+ LOGGER.debug("returns")
84
83
 
85
84
  """
86
85
  @param time_ms Mindestwartezeit [ms].
87
86
  """
88
87
  def setMinIdleTime(self, time_ms:int):
89
- logging.info("setMinIdleTime"+" time_ms = "+str(time_ms))
88
+ LOGGER.debug("setMinIdleTime"+" time_ms = "+str(time_ms))
90
89
  hbCommand = HausBusCommand(self.objectId, 4, "setMinIdleTime")
91
90
  hbCommand.addByte(time_ms)
92
91
  ResultWorker()._setResultInfo(None,self.getObjectId())
93
92
  hbCommand.send()
94
- logging.info("returns")
93
+ LOGGER.debug("returns")
95
94
 
96
95
  """
97
96
  """
98
97
  def getConnectedDevices(self):
99
- logging.info("getConnectedDevices")
98
+ LOGGER.debug("getConnectedDevices")
100
99
  hbCommand = HausBusCommand(self.objectId, 5, "getConnectedDevices")
101
100
  ResultWorker()._setResultInfo(ConnectedDevices,self.getObjectId())
102
101
  hbCommand.send()
103
- logging.info("returns")
102
+ LOGGER.debug("returns")
104
103
 
105
104
  """
106
105
  @param deviceIds .
107
106
  """
108
107
  def ConnectedDevices(self, deviceIds):
109
- logging.info("ConnectedDevices"+" deviceIds = "+str(deviceIds))
108
+ LOGGER.debug("ConnectedDevices"+" deviceIds = "+str(deviceIds))
110
109
  hbCommand = HausBusCommand(self.objectId, 130, "ConnectedDevices")
111
110
  hbCommand.addMap(deviceIds)
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 inMessagesPerMinute Anzahl der eingehenden Nachrichten pro Minute.
@@ -121,7 +120,7 @@ class Gateway(ABusFeature):
121
120
  @param messageQueueHighWater Maximale Anzahl von Nachrichten in der Warteschlange innerhalb der letzten Minute.
122
121
  """
123
122
  def evGatewayLoad(self, inMessagesPerMinute:int, outMessagesPerMinute:int, inBytesPerMinute:int, outBytesPerMinute:int, messageQueueHighWater:int):
124
- logging.info("evGatewayLoad"+" inMessagesPerMinute = "+str(inMessagesPerMinute)+" outMessagesPerMinute = "+str(outMessagesPerMinute)+" inBytesPerMinute = "+str(inBytesPerMinute)+" outBytesPerMinute = "+str(outBytesPerMinute)+" messageQueueHighWater = "+str(messageQueueHighWater))
123
+ LOGGER.debug("evGatewayLoad"+" inMessagesPerMinute = "+str(inMessagesPerMinute)+" outMessagesPerMinute = "+str(outMessagesPerMinute)+" inBytesPerMinute = "+str(inBytesPerMinute)+" outBytesPerMinute = "+str(outBytesPerMinute)+" messageQueueHighWater = "+str(messageQueueHighWater))
125
124
  hbCommand = HausBusCommand(self.objectId, 200, "evGatewayLoad")
126
125
  hbCommand.addWord(inMessagesPerMinute)
127
126
  hbCommand.addWord(outMessagesPerMinute)
@@ -130,17 +129,17 @@ class Gateway(ABusFeature):
130
129
  hbCommand.addByte(messageQueueHighWater)
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 value Diese Funktion setzt das Flag \"preferLoxone\" in der Konfiguration entsprechend Persistent..
137
136
  """
138
137
  def setPreferLoxone(self, value:EValue):
139
- logging.info("setPreferLoxone"+" value = "+str(value))
138
+ LOGGER.debug("setPreferLoxone"+" value = "+str(value))
140
139
  hbCommand = HausBusCommand(self.objectId, 2, "setPreferLoxone")
141
140
  hbCommand.addByte(value.value)
142
141
  ResultWorker()._setResultInfo(None,self.getObjectId())
143
142
  hbCommand.send()
144
- logging.info("returns")
143
+ LOGGER.debug("returns")
145
144
 
146
145
 
@@ -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,49 +22,49 @@ class Helligkeitssensor(ABusFeature):
23
22
  @param lastEvent .
24
23
  """
25
24
  def evStatus(self, brightness:int, lastEvent:ELastEvent):
26
- logging.info("evStatus"+" brightness = "+str(brightness)+" lastEvent = "+str(lastEvent))
25
+ LOGGER.debug("evStatus"+" brightness = "+str(brightness)+" lastEvent = "+str(lastEvent))
27
26
  hbCommand = HausBusCommand(self.objectId, 203, "evStatus")
28
27
  hbCommand.addWord(brightness)
29
28
  hbCommand.addByte(lastEvent.value)
30
29
  ResultWorker()._setResultInfo(None,self.getObjectId())
31
30
  hbCommand.send()
32
- logging.info("returns")
31
+ LOGGER.debug("returns")
33
32
 
34
33
  """
35
34
  """
36
35
  def evDark(self):
37
- logging.info("evDark")
36
+ LOGGER.debug("evDark")
38
37
  hbCommand = HausBusCommand(self.objectId, 200, "evDark")
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
  """
45
44
  def evLight(self):
46
- logging.info("evLight")
45
+ LOGGER.debug("evLight")
47
46
  hbCommand = HausBusCommand(self.objectId, 201, "evLight")
48
47
  ResultWorker()._setResultInfo(None,self.getObjectId())
49
48
  hbCommand.send()
50
- logging.info("returns")
49
+ LOGGER.debug("returns")
51
50
 
52
51
  """
53
52
  """
54
53
  def evBright(self):
55
- logging.info("evBright")
54
+ LOGGER.debug("evBright")
56
55
  hbCommand = HausBusCommand(self.objectId, 202, "evBright")
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
  """
63
62
  def getConfiguration(self):
64
- logging.info("getConfiguration")
63
+ LOGGER.debug("getConfiguration")
65
64
  hbCommand = HausBusCommand(self.objectId, 0, "getConfiguration")
66
65
  ResultWorker()._setResultInfo(Configuration,self.getObjectId())
67
66
  hbCommand.send()
68
- logging.info("returns")
67
+ LOGGER.debug("returns")
69
68
 
70
69
  """
71
70
  @param lowerThreshold untere Helligkeitsschwelle.
@@ -78,7 +77,7 @@ class Helligkeitssensor(ABusFeature):
78
77
  @param deltaSensorID Die InstanceID des Sensors auf diesem Controller.
79
78
  """
80
79
  def setConfiguration(self, lowerThreshold:int, upperThreshold:int, reportTimeBase:int, minReportTime:int, maxReportTime:int, hysteresis:int, calibration:int, deltaSensorID:int):
81
- logging.info("setConfiguration"+" lowerThreshold = "+str(lowerThreshold)+" upperThreshold = "+str(upperThreshold)+" 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)+" upperThreshold = "+str(upperThreshold)+" 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.addWord(lowerThreshold)
84
83
  hbCommand.addWord(upperThreshold)
@@ -90,16 +89,16 @@ class Helligkeitssensor(ABusFeature):
90
89
  hbCommand.addByte(deltaSensorID)
91
90
  ResultWorker()._setResultInfo(None,self.getObjectId())
92
91
  hbCommand.send()
93
- logging.info("returns")
92
+ LOGGER.debug("returns")
94
93
 
95
94
  """
96
95
  """
97
96
  def getStatus(self):
98
- logging.info("getStatus")
97
+ LOGGER.debug("getStatus")
99
98
  hbCommand = HausBusCommand(self.objectId, 2, "getStatus")
100
99
  ResultWorker()._setResultInfo(Status,self.getObjectId())
101
100
  hbCommand.send()
102
- logging.info("returns")
101
+ LOGGER.debug("returns")
103
102
 
104
103
  """
105
104
  @param lowerThreshold untere Helligkeitsschwelle.
@@ -112,7 +111,7 @@ class Helligkeitssensor(ABusFeature):
112
111
  @param deltaSensorID Die InstanceID des Sensors auf diesem Controller.
113
112
  """
114
113
  def Configuration(self, lowerThreshold:int, upperThreshold:int, reportTimeBase:int, minReportTime:int, maxReportTime:int, hysteresis:int, calibration:int, deltaSensorID:int):
115
- logging.info("Configuration"+" lowerThreshold = "+str(lowerThreshold)+" upperThreshold = "+str(upperThreshold)+" reportTimeBase = "+str(reportTimeBase)+" minReportTime = "+str(minReportTime)+" maxReportTime = "+str(maxReportTime)+" hysteresis = "+str(hysteresis)+" calibration = "+str(calibration)+" deltaSensorID = "+str(deltaSensorID))
114
+ LOGGER.debug("Configuration"+" lowerThreshold = "+str(lowerThreshold)+" upperThreshold = "+str(upperThreshold)+" reportTimeBase = "+str(reportTimeBase)+" minReportTime = "+str(minReportTime)+" maxReportTime = "+str(maxReportTime)+" hysteresis = "+str(hysteresis)+" calibration = "+str(calibration)+" deltaSensorID = "+str(deltaSensorID))
116
115
  hbCommand = HausBusCommand(self.objectId, 128, "Configuration")
117
116
  hbCommand.addWord(lowerThreshold)
118
117
  hbCommand.addWord(upperThreshold)
@@ -124,30 +123,30 @@ class Helligkeitssensor(ABusFeature):
124
123
  hbCommand.addByte(deltaSensorID)
125
124
  ResultWorker()._setResultInfo(None,self.getObjectId())
126
125
  hbCommand.send()
127
- logging.info("returns")
126
+ LOGGER.debug("returns")
128
127
 
129
128
  """
130
129
  @param errorCode .
131
130
  """
132
131
  def evError(self, errorCode:EErrorCode):
133
- logging.info("evError"+" errorCode = "+str(errorCode))
132
+ LOGGER.debug("evError"+" errorCode = "+str(errorCode))
134
133
  hbCommand = HausBusCommand(self.objectId, 255, "evError")
135
134
  hbCommand.addByte(errorCode.value)
136
135
  ResultWorker()._setResultInfo(None,self.getObjectId())
137
136
  hbCommand.send()
138
- logging.info("returns")
137
+ LOGGER.debug("returns")
139
138
 
140
139
  """
141
140
  @param brightness Helligkeitswert.
142
141
  @param lastEvent .
143
142
  """
144
143
  def Status(self, brightness:int, lastEvent:ELastEvent):
145
- logging.info("Status"+" brightness = "+str(brightness)+" lastEvent = "+str(lastEvent))
144
+ LOGGER.debug("Status"+" brightness = "+str(brightness)+" lastEvent = "+str(lastEvent))
146
145
  hbCommand = HausBusCommand(self.objectId, 129, "Status")
147
146
  hbCommand.addWord(brightness)
148
147
  hbCommand.addByte(lastEvent.value)
149
148
  ResultWorker()._setResultInfo(None,self.getObjectId())
150
149
  hbCommand.send()
151
- logging.info("returns")
150
+ LOGGER.debug("returns")
152
151
 
153
152
 
@@ -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
@@ -17,76 +16,76 @@ class IRSensor(ABusFeature):
17
16
  """
18
17
  """
19
18
  def off(self):
20
- logging.info("off")
19
+ LOGGER.debug("off")
21
20
  hbCommand = HausBusCommand(self.objectId, 0, "off")
22
21
  ResultWorker()._setResultInfo(None,self.getObjectId())
23
22
  hbCommand.send()
24
- logging.info("returns")
23
+ LOGGER.debug("returns")
25
24
 
26
25
  """
27
26
  """
28
27
  def on(self):
29
- logging.info("on")
28
+ LOGGER.debug("on")
30
29
  hbCommand = HausBusCommand(self.objectId, 1, "on")
31
30
  ResultWorker()._setResultInfo(None,self.getObjectId())
32
31
  hbCommand.send()
33
- logging.info("returns")
32
+ LOGGER.debug("returns")
34
33
 
35
34
  """
36
35
  @param address IR Adresse.
37
36
  @param command IR Kommando.
38
37
  """
39
38
  def evClicked(self, address:int, command:int):
40
- logging.info("evClicked"+" address = "+str(address)+" command = "+str(command))
39
+ LOGGER.debug("evClicked"+" address = "+str(address)+" command = "+str(command))
41
40
  hbCommand = HausBusCommand(self.objectId, 202, "evClicked")
42
41
  hbCommand.addWord(address)
43
42
  hbCommand.addWord(command)
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 evOff(self):
51
- logging.info("evOff")
50
+ LOGGER.debug("evOff")
52
51
  hbCommand = HausBusCommand(self.objectId, 200, "evOff")
53
52
  ResultWorker()._setResultInfo(None,self.getObjectId())
54
53
  hbCommand.send()
55
- logging.info("returns")
54
+ LOGGER.debug("returns")
56
55
 
57
56
  """
58
57
  """
59
58
  def evOn(self):
60
- logging.info("evOn")
59
+ LOGGER.debug("evOn")
61
60
  hbCommand = HausBusCommand(self.objectId, 201, "evOn")
62
61
  ResultWorker()._setResultInfo(None,self.getObjectId())
63
62
  hbCommand.send()
64
- logging.info("returns")
63
+ LOGGER.debug("returns")
65
64
 
66
65
  """
67
66
  @param address IR Adresse.
68
67
  @param command IR Kommando.
69
68
  """
70
69
  def evHoldStart(self, address:int, command:int):
71
- logging.info("evHoldStart"+" address = "+str(address)+" command = "+str(command))
70
+ LOGGER.debug("evHoldStart"+" address = "+str(address)+" command = "+str(command))
72
71
  hbCommand = HausBusCommand(self.objectId, 203, "evHoldStart")
73
72
  hbCommand.addWord(address)
74
73
  hbCommand.addWord(command)
75
74
  ResultWorker()._setResultInfo(None,self.getObjectId())
76
75
  hbCommand.send()
77
- logging.info("returns")
76
+ LOGGER.debug("returns")
78
77
 
79
78
  """
80
79
  @param address IR Adresse.
81
80
  @param command IR Kommando.
82
81
  """
83
82
  def evHoldEnd(self, address:int, command:int):
84
- logging.info("evHoldEnd"+" address = "+str(address)+" command = "+str(command))
83
+ LOGGER.debug("evHoldEnd"+" address = "+str(address)+" command = "+str(command))
85
84
  hbCommand = HausBusCommand(self.objectId, 204, "evHoldEnd")
86
85
  hbCommand.addWord(address)
87
86
  hbCommand.addWord(command)
88
87
  ResultWorker()._setResultInfo(None,self.getObjectId())
89
88
  hbCommand.send()
90
- logging.info("returns")
89
+ LOGGER.debug("returns")
91
90
 
92
91
 
@@ -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 Led(ABusFeature):
22
21
  """
23
22
  """
24
23
  def getConfiguration(self):
25
- logging.info("getConfiguration")
24
+ LOGGER.debug("getConfiguration")
26
25
  hbCommand = HausBusCommand(self.objectId, 0, "getConfiguration")
27
26
  ResultWorker()._setResultInfo(Configuration,self.getObjectId())
28
27
  hbCommand.send()
29
- logging.info("returns")
28
+ LOGGER.debug("returns")
30
29
 
31
30
  """
32
31
  @param dimmOffset 0-100% offset auf den im Kommando angegebenen Helligkeitswert.
@@ -35,7 +34,7 @@ class Led(ABusFeature):
35
34
  @param options Reservierte Bits muessen immer deaktiviert sein. Das Aktivieren eines reservierten Bits fuehrt nach dem Neustart des Controllers zu den Standart-Einstellungen..
36
35
  """
37
36
  def setConfiguration(self, dimmOffset:int, minBrightness:int, timeBase:int, options:MOptions):
38
- logging.info("setConfiguration"+" dimmOffset = "+str(dimmOffset)+" minBrightness = "+str(minBrightness)+" timeBase = "+str(timeBase)+" options = "+str(options))
37
+ LOGGER.debug("setConfiguration"+" dimmOffset = "+str(dimmOffset)+" minBrightness = "+str(minBrightness)+" timeBase = "+str(timeBase)+" options = "+str(options))
39
38
  hbCommand = HausBusCommand(self.objectId, 1, "setConfiguration")
40
39
  hbCommand.addByte(dimmOffset)
41
40
  hbCommand.addByte(minBrightness)
@@ -43,7 +42,7 @@ class Led(ABusFeature):
43
42
  hbCommand.addByte(options.getValue())
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 brightness 0-100% Helligkeit.
@@ -51,14 +50,14 @@ class Led(ABusFeature):
51
50
  @param onDelay Einschaltverzoegerung: Wert * Zeitbasis [ms]\r\n0=Keine.
52
51
  """
53
52
  def on(self, brightness:int, duration:int, onDelay:int):
54
- logging.info("on"+" brightness = "+str(brightness)+" duration = "+str(duration)+" onDelay = "+str(onDelay))
53
+ LOGGER.debug("on"+" brightness = "+str(brightness)+" duration = "+str(duration)+" onDelay = "+str(onDelay))
55
54
  hbCommand = HausBusCommand(self.objectId, 3, "on")
56
55
  hbCommand.addByte(brightness)
57
56
  hbCommand.addWord(duration)
58
57
  hbCommand.addWord(onDelay)
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 brightness 0-100% Helligkeit.
@@ -67,7 +66,7 @@ class Led(ABusFeature):
67
66
  @param quantity Anzahl Blinks.
68
67
  """
69
68
  def blink(self, brightness:int, offTime:int, onTime:int, quantity:int):
70
- logging.info("blink"+" brightness = "+str(brightness)+" offTime = "+str(offTime)+" onTime = "+str(onTime)+" quantity = "+str(quantity))
69
+ LOGGER.debug("blink"+" brightness = "+str(brightness)+" offTime = "+str(offTime)+" onTime = "+str(onTime)+" quantity = "+str(quantity))
71
70
  hbCommand = HausBusCommand(self.objectId, 4, "blink")
72
71
  hbCommand.addByte(brightness)
73
72
  hbCommand.addByte(offTime)
@@ -75,16 +74,16 @@ class Led(ABusFeature):
75
74
  hbCommand.addByte(quantity)
76
75
  ResultWorker()._setResultInfo(None,self.getObjectId())
77
76
  hbCommand.send()
78
- logging.info("returns")
77
+ LOGGER.debug("returns")
79
78
 
80
79
  """
81
80
  """
82
81
  def getStatus(self):
83
- logging.info("getStatus")
82
+ LOGGER.debug("getStatus")
84
83
  hbCommand = HausBusCommand(self.objectId, 5, "getStatus")
85
84
  ResultWorker()._setResultInfo(Status,self.getObjectId())
86
85
  hbCommand.send()
87
- logging.info("returns")
86
+ LOGGER.debug("returns")
88
87
 
89
88
  """
90
89
  @param dimmOffset 0-100% offset auf den im Kommando angegebenen Helligkeitswert.
@@ -93,7 +92,7 @@ class Led(ABusFeature):
93
92
  @param options Reservierte Bits muessen immer deaktiviert sein. Das Aktivieren eines reservierten Bits fuehrt nach dem Neustart des Controllers zu den Standart-Einstellungen..
94
93
  """
95
94
  def Configuration(self, dimmOffset:int, minBrightness:int, timeBase:int, options:MOptions):
96
- logging.info("Configuration"+" dimmOffset = "+str(dimmOffset)+" minBrightness = "+str(minBrightness)+" timeBase = "+str(timeBase)+" options = "+str(options))
95
+ LOGGER.debug("Configuration"+" dimmOffset = "+str(dimmOffset)+" minBrightness = "+str(minBrightness)+" timeBase = "+str(timeBase)+" options = "+str(options))
97
96
  hbCommand = HausBusCommand(self.objectId, 128, "Configuration")
98
97
  hbCommand.addByte(dimmOffset)
99
98
  hbCommand.addByte(minBrightness)
@@ -101,114 +100,114 @@ class Led(ABusFeature):
101
100
  hbCommand.addByte(options.getValue())
102
101
  ResultWorker()._setResultInfo(None,self.getObjectId())
103
102
  hbCommand.send()
104
- logging.info("returns")
103
+ LOGGER.debug("returns")
105
104
 
106
105
  """
107
106
  @param brightness Helligkeit der LED.
108
107
  @param duration Einschaltdauer: Wert * Zeitbasis [ms]\r\n0=Endlos.
109
108
  """
110
109
  def Status(self, brightness:int, duration:int):
111
- logging.info("Status"+" brightness = "+str(brightness)+" duration = "+str(duration))
110
+ LOGGER.debug("Status"+" brightness = "+str(brightness)+" duration = "+str(duration))
112
111
  hbCommand = HausBusCommand(self.objectId, 129, "Status")
113
112
  hbCommand.addByte(brightness)
114
113
  hbCommand.addWord(duration)
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 evOff(self):
122
- logging.info("evOff")
121
+ LOGGER.debug("evOff")
123
122
  hbCommand = HausBusCommand(self.objectId, 200, "evOff")
124
123
  ResultWorker()._setResultInfo(None,self.getObjectId())
125
124
  hbCommand.send()
126
- logging.info("returns")
125
+ LOGGER.debug("returns")
127
126
 
128
127
  """
129
128
  @param brightness 0-100% Helligkeit.
130
129
  @param duration Einschaltdauer: Wert * Zeitbasis [ms]\r\n0=Endlos.
131
130
  """
132
131
  def evOn(self, brightness:int, duration:int):
133
- logging.info("evOn"+" brightness = "+str(brightness)+" duration = "+str(duration))
132
+ LOGGER.debug("evOn"+" brightness = "+str(brightness)+" duration = "+str(duration))
134
133
  hbCommand = HausBusCommand(self.objectId, 201, "evOn")
135
134
  hbCommand.addByte(brightness)
136
135
  hbCommand.addWord(duration)
137
136
  ResultWorker()._setResultInfo(None,self.getObjectId())
138
137
  hbCommand.send()
139
- logging.info("returns")
138
+ LOGGER.debug("returns")
140
139
 
141
140
  """
142
141
  """
143
142
  def evBlink(self):
144
- logging.info("evBlink")
143
+ LOGGER.debug("evBlink")
145
144
  hbCommand = HausBusCommand(self.objectId, 202, "evBlink")
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 errorCode .
152
151
  """
153
152
  def evError(self, errorCode:EErrorCode):
154
- logging.info("evError"+" errorCode = "+str(errorCode))
153
+ LOGGER.debug("evError"+" errorCode = "+str(errorCode))
155
154
  hbCommand = HausBusCommand(self.objectId, 255, "evError")
156
155
  hbCommand.addByte(errorCode.value)
157
156
  ResultWorker()._setResultInfo(None,self.getObjectId())
158
157
  hbCommand.send()
159
- logging.info("returns")
158
+ LOGGER.debug("returns")
160
159
 
161
160
  """
162
161
  @param offDelay Ausschaltverzoegerung: Wert * Zeitbasis [ms]\r\n0=Keine.
163
162
  """
164
163
  def off(self, offDelay:int):
165
- logging.info("off"+" offDelay = "+str(offDelay))
164
+ LOGGER.debug("off"+" offDelay = "+str(offDelay))
166
165
  hbCommand = HausBusCommand(self.objectId, 2, "off")
167
166
  hbCommand.addWord(offDelay)
168
167
  ResultWorker()._setResultInfo(None,self.getObjectId())
169
168
  hbCommand.send()
170
- logging.info("returns")
169
+ LOGGER.debug("returns")
171
170
 
172
171
  """
173
172
  @param minBrightness Eine ausgeschaltete LED leuchtet immer noch mit dieser Helligkeit 0-100%.
174
173
  """
175
174
  def setMinBrightness(self, minBrightness:int):
176
- logging.info("setMinBrightness"+" minBrightness = "+str(minBrightness))
175
+ LOGGER.debug("setMinBrightness"+" minBrightness = "+str(minBrightness))
177
176
  hbCommand = HausBusCommand(self.objectId, 6, "setMinBrightness")
178
177
  hbCommand.addByte(minBrightness)
179
178
  ResultWorker()._setResultInfo(None,self.getObjectId())
180
179
  hbCommand.send()
181
- logging.info("returns")
180
+ LOGGER.debug("returns")
182
181
 
183
182
  """
184
183
  @param cmdDelay Dauer Wert * Zeitbasis [ms].
185
184
  """
186
185
  def evCmdDelay(self, cmdDelay:int):
187
- logging.info("evCmdDelay"+" cmdDelay = "+str(cmdDelay))
186
+ LOGGER.debug("evCmdDelay"+" cmdDelay = "+str(cmdDelay))
188
187
  hbCommand = HausBusCommand(self.objectId, 203, "evCmdDelay")
189
188
  hbCommand.addWord(cmdDelay)
190
189
  ResultWorker()._setResultInfo(None,self.getObjectId())
191
190
  hbCommand.send()
192
- logging.info("returns")
191
+ LOGGER.debug("returns")
193
192
 
194
193
  """
195
194
  """
196
195
  def getMinBrightness(self):
197
- logging.info("getMinBrightness")
196
+ LOGGER.debug("getMinBrightness")
198
197
  hbCommand = HausBusCommand(self.objectId, 7, "getMinBrightness")
199
198
  ResultWorker()._setResultInfo(MinBrightness,self.getObjectId())
200
199
  hbCommand.send()
201
- logging.info("returns")
200
+ LOGGER.debug("returns")
202
201
 
203
202
  """
204
203
  @param minBrightness Eine ausgeschaltete LED leuchtet immer noch mit dieser Helligkeit 0-100%.
205
204
  """
206
205
  def MinBrightness(self, minBrightness:int):
207
- logging.info("MinBrightness"+" minBrightness = "+str(minBrightness))
206
+ LOGGER.debug("MinBrightness"+" minBrightness = "+str(minBrightness))
208
207
  hbCommand = HausBusCommand(self.objectId, 130, "MinBrightness")
209
208
  hbCommand.addByte(minBrightness)
210
209
  ResultWorker()._setResultInfo(None,self.getObjectId())
211
210
  hbCommand.send()
212
- logging.info("returns")
211
+ LOGGER.debug("returns")
213
212
 
214
213