basic ep800 support

This commit is contained in:
Patrick762 committed 2024-02-25 15:37:12 +01:00
1 parent cc42617bdb
commit 9cba466228
4 files changed
+15 -2

No files matched your search

+2 -1
View File
@@ -24,7 +24,8 @@ After the installation, you can use this button to install the integration:
- EP500 - EP500
- EP500P - EP500P
- EP600 (tested) - EP600 (tested)
- EP760 (beta, untested) - EP760 (basic data)
- EP800 (basic data)
### Available controls: ### Available controls:
If enabled in the Integration options (you need to reload the integration if you change this option): If enabled in the Integration options (you need to reload the integration if you change this option):
@@ -0,0 +1,8 @@
"""EP800 fields."""
from ..base_devices.ProtocolV2Device import ProtocolV2Device
class EP800(ProtocolV2Device):
def __init__(self, address: str, sn: str):
super().__init__(address, "EP800", sn)
@@ -11,9 +11,10 @@ from ..devices.ep500 import EP500
from ..devices.ep500p import EP500P from ..devices.ep500p import EP500P
from ..devices.ep600 import EP600 from ..devices.ep600 import EP600
from ..devices.ep760 import EP760 from ..devices.ep760 import EP760
from ..devices.ep800 import EP800
DEVICE_NAME_RE = re.compile( DEVICE_NAME_RE = re.compile(
r"^(AC60|AC200M|AC300|AC500|EB3A|EP500|EP500P|EP600|EP760)(\d+)$" r"^(AC60|AC200M|AC300|AC500|EB3A|EP500|EP500P|EP600|EP760|EP800)(\d+)$"
) )
@@ -37,6 +38,8 @@ def build_device(address: str, name: str):
return EP600(address, match[2]) return EP600(address, match[2])
if match[1] == "EP760": if match[1] == "EP760":
return EP760(address, match[2]) return EP760(address, match[2])
if match[1] == "EP800":
return EP800(address, match[2])
def get_type_by_bt_name(bt_name: str): def get_type_by_bt_name(bt_name: str):
@@ -10,6 +10,7 @@
{ "local_name": "EP500*" }, { "local_name": "EP500*" },
{ "local_name": "EP600*" }, { "local_name": "EP600*" },
{ "local_name": "EP760*" }, { "local_name": "EP760*" },
{ "local_name": "EP800*" },
{ "local_name": "PBOX*" } { "local_name": "PBOX*" }
], ],
"codeowners": ["@Patrick762"], "codeowners": ["@Patrick762"],