python-selve-new 2.0.35__tar.gz → 2.0.37__tar.gz
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.
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/PKG-INFO +1 -1
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/python_selve_new.egg-info/PKG-INFO +1 -1
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/selve/__init__.py +5 -1
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/selve/util/__init__.py +8 -8
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/setup.py +1 -1
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/LICENSE +0 -0
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/README.md +0 -0
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/python_selve_new.egg-info/SOURCES.txt +0 -0
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/python_selve_new.egg-info/dependency_links.txt +0 -0
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/python_selve_new.egg-info/requires.txt +0 -0
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/python_selve_new.egg-info/top_level.txt +0 -0
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/selve/commands/__init__.py +0 -0
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/selve/commands/command.py +0 -0
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/selve/commands/device.py +0 -0
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/selve/commands/event.py +0 -0
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/selve/commands/group.py +0 -0
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/selve/commands/iveo.py +0 -0
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/selve/commands/param.py +0 -0
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/selve/commands/senSim.py +0 -0
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/selve/commands/sender.py +0 -0
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/selve/commands/sensor.py +0 -0
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/selve/commands/service.py +0 -0
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/selve/device.py +0 -0
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/selve/gateway.py +0 -0
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/selve/group.py +0 -0
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/selve/iveo.py +0 -0
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/selve/senSim.py +0 -0
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/selve/sender.py +0 -0
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/selve/sensor.py +0 -0
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/selve/util/errors.py +0 -0
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/selve/util/protocol.py +0 -0
- {python-selve-new-2.0.35 → python-selve-new-2.0.37}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-selve-new
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.37
|
|
4
4
|
Summary: Python library for interfacing with selve devices using the USB-RF controller. Written completely new.
|
|
5
5
|
Home-page: https://github.com/Kannix2005/python-selve-new
|
|
6
6
|
Author: Stefan Altheimer
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-selve-new
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.37
|
|
4
4
|
Summary: Python library for interfacing with selve devices using the USB-RF controller. Written completely new.
|
|
5
5
|
Home-page: https://github.com/Kannix2005/python-selve-new
|
|
6
6
|
Author: Stefan Altheimer
|
|
@@ -541,7 +541,11 @@ class Selve:
|
|
|
541
541
|
|
|
542
542
|
if isinstance(resp, ErrorResponse):
|
|
543
543
|
self._LOGGER.error(resp.message)
|
|
544
|
-
|
|
544
|
+
# retry
|
|
545
|
+
try:
|
|
546
|
+
return self._executeCommandSyncWithResponse(self, command)
|
|
547
|
+
except GatewayError as e:
|
|
548
|
+
raise e
|
|
545
549
|
else:
|
|
546
550
|
#time.sleep(0.5)
|
|
547
551
|
return resp
|
|
@@ -52,13 +52,13 @@ class CommeoCommandResult(MethodResponse):
|
|
|
52
52
|
class CommeoDeviceEventResponse(MethodResponse):
|
|
53
53
|
def __init__(self, name, parameters):
|
|
54
54
|
super().__init__(name, parameters)
|
|
55
|
-
|
|
56
|
-
self.id = int(parameters[
|
|
57
|
-
self.actorState = MovementState(int(parameters[
|
|
58
|
-
self.value = Util.valueToPercentage(int(parameters[
|
|
59
|
-
self.targetValue = Util.valueToPercentage(int(parameters[
|
|
55
|
+
self.name = parameters[0][1] if parameters[0][1] else ""
|
|
56
|
+
self.id = int(parameters[1][1])
|
|
57
|
+
self.actorState = MovementState(int(parameters[2][1])) if int(parameters[2][1]) and int(parameters[2][1]) < 4 else MovementState(0)
|
|
58
|
+
self.value = Util.valueToPercentage(int(parameters[3][1]))
|
|
59
|
+
self.targetValue = Util.valueToPercentage(int(parameters[4][1]))
|
|
60
60
|
|
|
61
|
-
bArr = Util.intToBoolarray(int(parameters[
|
|
61
|
+
bArr = Util.intToBoolarray(int(parameters[5][1]))
|
|
62
62
|
self.unreachable = bArr[0]
|
|
63
63
|
self.overload = bArr[1]
|
|
64
64
|
self.obstructed = bArr[2]
|
|
@@ -69,8 +69,8 @@ class CommeoDeviceEventResponse(MethodResponse):
|
|
|
69
69
|
self.windAlarm = bArr[7]
|
|
70
70
|
self.rainAlarm = bArr[8]
|
|
71
71
|
self.freezingAlarm = bArr[9]
|
|
72
|
-
self.dayMode = DayMode(int(parameters[
|
|
73
|
-
self.deviceType = DeviceType(int(parameters[
|
|
72
|
+
self.dayMode = DayMode(int(parameters[6][1]))
|
|
73
|
+
self.deviceType = DeviceType(int(parameters[7][1]))
|
|
74
74
|
|
|
75
75
|
class LogEventResponse(MethodResponse):
|
|
76
76
|
def __init__(self, name, parameters):
|
|
@@ -15,7 +15,7 @@ with open(path.join(here, 'README.md'), encoding='utf-8') as f:
|
|
|
15
15
|
setup(
|
|
16
16
|
|
|
17
17
|
name='python-selve-new', # Required
|
|
18
|
-
version='2.0.
|
|
18
|
+
version='2.0.37', # Required
|
|
19
19
|
description='Python library for interfacing with selve devices using the USB-RF controller. Written completely new.', # Required
|
|
20
20
|
long_description=long_description, # Optional
|
|
21
21
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python-selve-new-2.0.35 → python-selve-new-2.0.37}/python_selve_new.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|