Skip to content

Commit

Permalink
initial support of Pure Multi 700 Humidifier-Purifier (#164)
Browse files Browse the repository at this point in the history
* initial support of Pure Multi 700 Humidifier-Purifier

* remove leftover
  • Loading branch information
danielskowronski authored Jan 13, 2025
1 parent 7be45cd commit 1ae6099
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ A custom component designed for [Home Assistant](https://www.home-assistant.io)
- EHAW4010AG
- EHAW6020AG

- Electrolux Pure Multi 700 Humidifier-Purifier
- EPU73771DG (all data is readable, but only fan can be controlled)

- Electrolux PUREi9 Vacuum Robot
- PUREi9
- PUREi9.2
Expand Down
55 changes: 55 additions & 0 deletions custom_components/wellbeing/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
48: "BREEZE Complete air filter",
49: "CLEAN Ultrafine particle filter",
51: "CARE Ultimate protect filter",
55: "Breathe 400 filter",
64: "Breeze 360 filter",
65: "Clean 360 Ultrafine particle filter",
66: "Protect 360 filter",
Expand All @@ -32,6 +33,7 @@
99: "Breeze 360 filter",
100: "Fresh 360 filter",
192: "FRESH Odour protect filter",
194: "FRESH Odour protect filter",
0: "Filter",
}

Expand All @@ -47,6 +49,7 @@ class Model(str, Enum):
AX7 = "AX7"
AX9 = "AX9"
PUREi9 = "PUREi9"
PM700 = "Verbier" # "PUREMULTI700"
Robot700series = "700series" # 700series vacuum robot series


Expand All @@ -58,6 +61,11 @@ class WorkMode(str, Enum):
QUITE = "Quiet"
AUTO = "Auto"

class LouverSwingMode(str, Enum):
OFF = "off"
NARROW = "narrow"
WIDE = "wide"
NATURAL_BREEZE = "naturalbreeze"

class ApplianceEntity:
entity_type: int | None = None
Expand Down Expand Up @@ -162,6 +170,47 @@ def _create_entities(data):
),
]

pm700_entities = [
ApplianceSensor(
name=f"{FILTER_TYPE.get(data.get('FilterType_1', 0), 'Unknown filter')} Life",
attr="FilterLife_1",
unit=PERCENTAGE,
),
ApplianceSensor(
name=f"{FILTER_TYPE.get(data.get('FilterType_2', 0), 'Unknown filter')} Life",
attr="FilterLife_2",
unit=PERCENTAGE,
),

ApplianceBinary(
name="Ionizer",
attr="Ionizer",
device_class=BinarySensorDeviceClass.RUNNING,
),
ApplianceBinary(
name="AQI Light",
attr="AQILight",
device_class=BinarySensorDeviceClass.LIGHT,
),
ApplianceBinary(
name="Humidification",
attr="Humidification",
device_class=BinarySensorDeviceClass.RUNNING,
),
ApplianceSensor(
name="Humidification Target",
attr="HumidityTarget",
unit=PERCENTAGE,
),

ApplianceSensor(name="Louver Swing", attr="LouverSwing", device_class=SensorDeviceClass.ENUM),
ApplianceBinary(
name="Empty Water Tray",
attr="WaterTrayLevelLow",
device_class=BinarySensorDeviceClass.PROBLEM,
),

]
a7_entities = [
ApplianceSensor(
name=f"{FILTER_TYPE.get(data.get('FilterType_1', 0), 'Unknown filter')} Life",
Expand Down Expand Up @@ -321,6 +370,7 @@ def _create_entities(data):
+ a9_entities
+ a7_entities
+ pure500_entities
+ pm700_entities
+ purei9_entities
+ Robot700series_entities
)
Expand All @@ -343,6 +393,8 @@ def setup(self, data, capabilities):
self.firmware = data.get("FrmVer_NIU")
if "Workmode" in data:
self.mode = WorkMode(data.get("Workmode"))
if "LouverSwingWorkmode" in data:
self.louver_swing_mode = LouverSwingMode(data.get("LouverSwing"))
if "powerMode" in data:
self.power_mode = data.get("powerMode")
if "batteryStatus" in data:
Expand Down Expand Up @@ -385,6 +437,8 @@ def speed_range(self) -> tuple[int, int]:
return 1, 5
if self.model == Model.AX9:
return 1, 9
if self.model == Model.PM700:
return 1, 5

return 0, 0

Expand Down Expand Up @@ -443,6 +497,7 @@ async def async_get_appliances(self) -> Appliances:
if (
appliance.device_type != "AIR_PURIFIER"
and appliance.device_type != "ROBOTIC_VACUUM_CLEANER"
and appliance.device_type != "MULTI_AIR_PURIFIER"
):
continue

Expand Down

0 comments on commit 1ae6099

Please sign in to comment.