Merge pull request #64 from Patrick762/ep800

EP800
This commit is contained in:
Patrick762 authored and GitHub committed 2024-02-25 15:40:30 +01:00
commit 85e50498f6
4 files changed
+16 -3

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):
+2 -1
View File
@@ -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"],
@@ -20,5 +21,5 @@
"iot_class": "local_polling", "iot_class": "local_polling",
"issue_tracker": "https://github.com/Patrick762/hassio-bluetti-bt/issues", "issue_tracker": "https://github.com/Patrick762/hassio-bluetti-bt/issues",
"requirements": [], "requirements": [],
"version": "0.0.17" "version": "0.0.18"
} }