pyhausbus 1.0.2__py2.py3-none-any.whl → 1.0.3__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.
- pyhausbus/Templates.py +7 -2
- {pyhausbus-1.0.2.dist-info → pyhausbus-1.0.3.dist-info}/METADATA +1 -1
- {pyhausbus-1.0.2.dist-info → pyhausbus-1.0.3.dist-info}/RECORD +5 -6
- pyhausbus/HausBusDevice.py +0 -70
- {pyhausbus-1.0.2.dist-info → pyhausbus-1.0.3.dist-info}/LICENSE +0 -0
- {pyhausbus-1.0.2.dist-info → pyhausbus-1.0.3.dist-info}/WHEEL +0 -0
pyhausbus/Templates.py
CHANGED
@@ -76,8 +76,7 @@ class Templates:
|
|
76
76
|
return cls._instance
|
77
77
|
|
78
78
|
def get_feature_name_from_template(self, firmware_id, fcke, class_id, instance_id) -> Optional[str]:
|
79
|
-
if fcke != -1
|
80
|
-
|
79
|
+
if fcke != -1:
|
81
80
|
''' print("get_feature_name_from_template firmware_id = ",firmware_id," fcke = ",fcke," class_id = ",class_id," instance_id = ",instance_id)'''
|
82
81
|
features = self.get_features(firmware_id, fcke)
|
83
82
|
|
@@ -87,6 +86,12 @@ class Templates:
|
|
87
86
|
return entry.name
|
88
87
|
return None
|
89
88
|
|
89
|
+
def getModuleName(self, firmwareId: EFirmwareId, fcke: int):
|
90
|
+
for entry in self.module_types:
|
91
|
+
if entry.suits(firmwareId, fcke):
|
92
|
+
return entry.name
|
93
|
+
return None
|
94
|
+
|
90
95
|
def get_features(self, firmware_id, fcke) -> Optional[List['FeatureEntry']]:
|
91
96
|
for module_type, features in self.feature_names.items():
|
92
97
|
if module_type.suits(firmware_id, fcke):
|
@@ -573,7 +573,6 @@ pyhausbus/de/hausbus/homeassistant/proxy/wiFi/params/_init_.py,sha256=AbpHGcgLb-
|
|
573
573
|
pyhausbus/de/hausbus/homeassistant/proxy/wiFi/params/EErrorCode.py,sha256=lUH1Yz7wAP0iq96faOMe4JDW0gRPNiPiy4QyjP0Ii_0,595
|
574
574
|
pyhausbus/de/hausbus/homeassistant/proxy/WiFi.py,sha256=WqTClRdTCmVf8na4U5XjEu6ZlSW9NfjtNsnu3HTqM7o,5611
|
575
575
|
pyhausbus/HausBusCommand.py,sha256=VivsMd-m05qErdHTzO_I7_1mE3c44ydETu6G1hJg1Wg,2469
|
576
|
-
pyhausbus/HausBusDevice.py,sha256=lVHv2YwZUnEi2r6zKbOlX6gCqIQLT5bojtHIB9pTHkk,2511
|
577
576
|
pyhausbus/HausBusUtils.py,sha256=UHzb4z5CjUrG1yoTJqvwIL1G_f_TFWV8Zx0xPtSxShg,5112
|
578
577
|
pyhausbus/HomeServer.py,sha256=JxhBn4I8OMhlp7PZ6ox4HmG9kxfDM9uxydwnLtle7OI,4019
|
579
578
|
pyhausbus/IBusDataListener.py,sha256=brgsrtXHUyUg3RdWLTxOInrNdU30wEcunhOCUPGClyY,151
|
@@ -631,10 +630,10 @@ pyhausbus/templates/SD485_2E_6-fach-Taster.tpl,sha256=d8ALY9k1pcNSQUGSqSUsIpiRva
|
|
631
630
|
pyhausbus/templates/SD485_2F_6-fach-Taster.tpl,sha256=d8ALY9k1pcNSQUGSqSUsIpiRvaR0bqoy4onhpfF7bzA,533
|
632
631
|
pyhausbus/templates/SD6_14_Multitaster.tpl,sha256=cneNlLhmyE0RSh1BQK5p8Gz2cRbDOFztfc1_XWy3fAY,451
|
633
632
|
pyhausbus/templates/SD6_1E_Multitaster.tpl,sha256=cneNlLhmyE0RSh1BQK5p8Gz2cRbDOFztfc1_XWy3fAY,451
|
634
|
-
pyhausbus/Templates.py,sha256=
|
633
|
+
pyhausbus/Templates.py,sha256=Fo-xYyKUeEgcOo5hYIUUH3vx5DRnDY9jLnykk16hJQg,5333
|
635
634
|
pyhausbus/UdpReceiveWorker.py,sha256=lQD2O2Rqk3Xvy6Glrlbn1p2n4ZTWW80yxJp3-OsQTcc,2678
|
636
635
|
pyhausbus/WeekTime.py,sha256=o30XyAOEYAQhcWdE2hEX685RNJmo-VCQNPEx1xAFwzk,1287
|
637
|
-
pyhausbus-1.0.
|
638
|
-
pyhausbus-1.0.
|
639
|
-
pyhausbus-1.0.
|
640
|
-
pyhausbus-1.0.
|
636
|
+
pyhausbus-1.0.3.dist-info/LICENSE,sha256=LrguBvqK4LI4RXcja3oOYNPAIB5x5HPUXHRlkTkP5Sg,1094
|
637
|
+
pyhausbus-1.0.3.dist-info/METADATA,sha256=g4cMmX4-vwVNIr8epBHV5uYci__hFB5qEfaoUhEDvLc,1324
|
638
|
+
pyhausbus-1.0.3.dist-info/WHEEL,sha256=iAMR_6Qh95yyjYIwRxyjpiFq4FhDPemrEV-SyWIQB3U,92
|
639
|
+
pyhausbus-1.0.3.dist-info/RECORD,,
|
pyhausbus/HausBusDevice.py
DELETED
@@ -1,70 +0,0 @@
|
|
1
|
-
import logging
|
2
|
-
|
3
|
-
from pyhausbus.de.hausbus.homeassistant.proxy.controller.params.EFirmwareId import (
|
4
|
-
EFirmwareId,
|
5
|
-
)
|
6
|
-
|
7
|
-
LOGGER = logging.getLogger("pyhausbus")
|
8
|
-
|
9
|
-
device_type_map = {
|
10
|
-
EFirmwareId.ESP32: {
|
11
|
-
int("0x65", 16): "LAN-RS485 Brückenmodul",
|
12
|
-
int("0x18", 16): "6-fach Taster",
|
13
|
-
int("0x19", 16): "4-fach Taster",
|
14
|
-
int("0x1A", 16): "2-fach Taster",
|
15
|
-
int("0x1B", 16): "1-fach Taster",
|
16
|
-
int("0x1C", 16): "6-fach Taster Gira",
|
17
|
-
int("0x20", 16): "32-fach IO",
|
18
|
-
int("0x0C", 16): "16-fach Relais",
|
19
|
-
int("0x08", 16): "8-fach Relais",
|
20
|
-
int("0x10", 16): "22-fach UP-IO",
|
21
|
-
int("0x28", 16): "8-fach Dimmer",
|
22
|
-
int("0x30", 16): "2-fach RGB Dimmer",
|
23
|
-
int("0x00", 16): "4-fach 0-10V Dimmer",
|
24
|
-
int("0x01", 16): "4-fach 1-10V Dimmer",
|
25
|
-
},
|
26
|
-
EFirmwareId.HBC: {
|
27
|
-
int("0x18", 16): "6-fach Taster",
|
28
|
-
int("0x19", 16): "4-fach Taster",
|
29
|
-
int("0x1A", 16): "2-fach Taster",
|
30
|
-
int("0x1B", 16): "1-fach Taster",
|
31
|
-
int("0x1C", 16): "6-fach Taster Gira",
|
32
|
-
int("0x20", 16): "32-fach IO",
|
33
|
-
int("0x0C", 16): "16-fach Relais",
|
34
|
-
int("0x08", 16): "8-fach Relais",
|
35
|
-
int("0x10", 16): "24-fach UP-IO",
|
36
|
-
int("0x28", 16): "8-fach Dimmer",
|
37
|
-
int("0x29", 16): "8-fach Dimmer",
|
38
|
-
int("0x30", 16): "2-fach RGB Dimmer",
|
39
|
-
int("0x00", 16): "4-fach 0-10V Dimmer",
|
40
|
-
int("0x01", 16): "4-fach 1-10V Dimmer",
|
41
|
-
},
|
42
|
-
EFirmwareId.SD485: {
|
43
|
-
int("0x28", 16): "24-fach UP-IO",
|
44
|
-
int("0x1E", 16): "6-fach Taster",
|
45
|
-
int("0x2E", 16): "6-fach Taster",
|
46
|
-
int("0x2F", 16): "6-fach Taster",
|
47
|
-
int("0x2B", 16): "4-fach 0-10V Dimmer",
|
48
|
-
int("0x2C", 16): "4-fach Taster",
|
49
|
-
int("0x2D", 16): "4-fach 1-10V Dimmer",
|
50
|
-
int("0x2A", 16): "2-fach Taster",
|
51
|
-
int("0x29", 16): "1-fach Taster",
|
52
|
-
},
|
53
|
-
EFirmwareId.AR8: {
|
54
|
-
int("0x28", 16): "LAN Brückenmodul",
|
55
|
-
int("0x30", 16): "8-fach Relais",
|
56
|
-
},
|
57
|
-
EFirmwareId.SD6: {
|
58
|
-
int("0x14", 16): "Multitaster",
|
59
|
-
int("0x1E", 16): "Multitaster",
|
60
|
-
},
|
61
|
-
}
|
62
|
-
|
63
|
-
|
64
|
-
def get_device_type(firmware_id: EFirmwareId, type_id: int) -> str:
|
65
|
-
"""Get device type from firmware ID and type ID."""
|
66
|
-
firmware_model_id = device_type_map.get(firmware_id, {})
|
67
|
-
if len(firmware_model_id) == 0:
|
68
|
-
return "Controller"
|
69
|
-
else:
|
70
|
-
return firmware_model_id.get(type_id, "Controller")
|
File without changes
|
File without changes
|