329 lines
16 KiB
Markdown
329 lines
16 KiB
Markdown
# Haier hOn
|
|
[![hacs_badge](https://img.shields.io/badge/HACS-Default-41BDF5.svg)](https://hacs.xyz)
|
|
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/Andre0512/hon?color=green)](https://github.com/Andre0512/hon/releases/latest)
|
|
[![GitHub](https://img.shields.io/github/license/Andre0512/hon?color=red)](https://github.com/Andre0512/hon/blob/main/LICENSE)
|
|
[![GitHub all releases](https://img.shields.io/github/downloads/Andre0512/hon/total?color=blue)](https://tooomm.github.io/github-release-stats/?username=Andre0512&repository=hon)
|
|
Home Assistant integration for Haier hOn: support for Haier/Candy/Hoover home appliances like washing machines.
|
|
|
|
## Supported Appliances
|
|
- [Washing Machine](https://github.com/Andre0512/hon#washing-machine)
|
|
- [Tumble Dryer](https://github.com/Andre0512/hon#tumble-dryer)
|
|
- [Washer Dryer](https://github.com/Andre0512/hon#washer-dryer)
|
|
- [Oven](https://github.com/Andre0512/hon#oven)
|
|
- [Hob](https://github.com/Andre0512/hon#hob)
|
|
- [Dish Washer](https://github.com/Andre0512/hon#dish-washer)
|
|
|
|
## Installation
|
|
**Method 1:** [![Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=Andre0512&repository=hon&category=integration)
|
|
|
|
**Method 2:** [HACS](https://hacs.xyz/) > Integrations > Add Integration > **Haier hOn** > Install
|
|
|
|
**Method 3:** Manually copy `hon` folder from [latest release](https://github.com/Andre0512/hon/releases/latest) to `config/custom_components` folder.
|
|
|
|
_Restart Home Assistant_
|
|
|
|
## Configuration
|
|
|
|
**Method 1**: [![Open your Home Assistant instance and start setting up a new integration.](https://my.home-assistant.io/badges/config_flow_start.svg)](https://my.home-assistant.io/redirect/config_flow_start/?domain=hon)
|
|
|
|
**Method 2**: Settings > Devices & Services > Add Integration > **Haier hOn**
|
|
_If the integration is not in the list, you need to clear the browser cache._
|
|
|
|
## Contribute
|
|
Any kind of contribution is welcome!
|
|
### Read out device data
|
|
If you want to make a request for adding new appliances or additional attributes and don't want to use the command line, here is how you can read out your device data.
|
|
For every device exists a hidden button which can be used to log all info of your appliance.
|
|
1. Enable the "Log Device Info" button
|
|
_This button can be found in the diagnostic section of your device or in the entity overview if "show disabled entities" is enabled._
|
|
2. Press the button
|
|
3. Go to Settings > System > Logs, click _load full logs_ and scroll down
|
|
_The formatting is messy if you not load full logs_
|
|
4. Here you can find all data which can be read out via the api
|
|
```yaml
|
|
data:
|
|
appliance:
|
|
applianceId: 12-34-56-78-90-ab#2022-10-25T19:47:11Z
|
|
applianceModelId: 1569
|
|
...
|
|
```
|
|
5. Copy this data and create a [new issue](https://github.com/Andre0512/hon/issues/new) with your request
|
|
|
|
### Add appliances or additional attributes
|
|
1. Install [pyhOn](https://github.com/Andre0512/pyhOn)
|
|
```commandline
|
|
$ pip install pyhOn
|
|
```
|
|
2. Use the command line tool to read out all appliance data from your account
|
|
```commandline
|
|
$ pyhOn
|
|
User for hOn account: user.name@example.com
|
|
Password for hOn account: ********
|
|
========== WM - Washing Machine ==========
|
|
commands:
|
|
pauseProgram: pauseProgram command
|
|
resumeProgram: resumeProgram command
|
|
startProgram: startProgram command
|
|
stopProgram: stopProgram command
|
|
data:
|
|
actualWeight: 0
|
|
airWashTempLevel: 0
|
|
airWashTime: 0
|
|
antiAllergyStatus: 0
|
|
...
|
|
```
|
|
3. Fork this repository and clone it to your local machine
|
|
4. Add the keys of the attributes you'd like to have as `EntityDescription` into this Repository
|
|
_Example: Add pause button_
|
|
```python
|
|
BUTTONS: dict[str, tuple[ButtonEntityDescription, ...]] = {
|
|
"WM": ( # WM is the applianceTypeName
|
|
ButtonEntityDescription(
|
|
key="pauseProgram", # key from pyhOn
|
|
name="Pause Program", # name in home assistant
|
|
icon="mdi:pause", # icon in home assistant
|
|
...
|
|
),
|
|
...
|
|
```
|
|
5. Create a [pull request](https://github.com/Andre0512/hon/pulls)
|
|
|
|
#### Tips and Tricks
|
|
- If you want to have some states humanreadable, have a look at the `translation_key` parameter of the `EntityDescription`.
|
|
- If you need to implement some more logic, create a pull request to the underlying library. There we collect special requirements in the `appliances` directory.
|
|
- Use [pyhOn's translate command](https://github.com/Andre0512/pyhOn#translation) to read out the official translations
|
|
|
|
## Tested Devices
|
|
- Haier WD90-B14TEAM5
|
|
- Haier HD80-A3959
|
|
- Haier HWO60SM2F3XH
|
|
- Hoover H-WASH 500
|
|
- Candy CIS633SCTTWIFI
|
|
- Haier XIB 3B2SFS-80
|
|
- Haier XIB 6B2D3FB
|
|
|
|
## Supported Languages
|
|
Translation of internal names like programs are available for all languages which are official supported by the hOn app:
|
|
* ๐จ๐ณ Chinese
|
|
* ๐ญ๐ท Croatian
|
|
* ๐จ๐ฟ Czech
|
|
* ๐ณ๐ฑ Dutch
|
|
* ๐ฌ๐ง English
|
|
* ๐ซ๐ท French
|
|
* ๐ฉ๐ช German
|
|
* ๐ฌ๐ท Greek
|
|
* ๐ฎ๐ฑ Hebrew
|
|
* ๐ฎ๐น Italian
|
|
* ๐ต๐ฑ Polish
|
|
* ๐ต๐น Portuguese
|
|
* ๐ท๐ด Romanian
|
|
* ๐ท๐บ Russian
|
|
* ๐ท๐ธ Serbian
|
|
* ๐ธ๐ฐ Slovak
|
|
* ๐ธ๐ฎ Slovenian
|
|
* ๐ช๐ธ Spanish
|
|
* ๐น๐ท Turkish
|
|
|
|
|
|
## About this Repo
|
|
The existing integrations missed some features from the app I liked to have in HomeAssistant.
|
|
I tried to create a pull request, but in the structures of these existing repos, I find it hard to fit in my needs, so I basically rewrote everything.
|
|
I moved the api related stuff into the package [pyhOn](https://github.com/Andre0512/pyhOn).
|
|
|
|
## Appliance Features
|
|
|
|
### Dish washer
|
|
#### Controls
|
|
| Name | Icon | Entity | Key | Auto-Translation |
|
|
| --- | --- | --- | --- | --- |
|
|
| Dish Washer | `dishwasher` | `switch` | `startProgram` / `stopProgram` | โ |
|
|
#### Configs
|
|
| Name | Icon | Entity | Key | Auto-Translation |
|
|
| --- | --- | --- | --- | --- |
|
|
| Add Dish | `silverware-fork-knife` | `switch` | `startProgram.addDish` | โ |
|
|
| Delay time | `timer-plus` | `number` | `startProgram.delayTime` | โ |
|
|
| Eco Express | `sprout` | `switch` | `startProgram.ecoExpress` | โ |
|
|
| Eco Index | `sprout` | `sensor` | `startProgram.ecoIndex` | โ |
|
|
| Energy Label | `lightning-bolt-circle` | `sensor` | `startProgram.energyLabel` | โ |
|
|
| Extra Dry | `hair-dryer` | `switch` | `startProgram.extraDry` | โ |
|
|
| Half Load | `fraction-one-half` | `switch` | `startProgram.halfLoad` | โ |
|
|
| Open Door | `door-open` | `switch` | `startProgram.openDoor` | โ |
|
|
| Program | | `select` | `startProgram.program` | โ |
|
|
| Temperature | `thermometer` | `sensor` | `startProgram.temp` | โ |
|
|
| Three in One | `numeric-3-box-outline` | `switch` | `startProgram.threeInOne` | โ |
|
|
| Time | `timer` | `sensor` | `startProgram.remainingTime` | โ |
|
|
| Water Efficiency | `water` | `sensor` | `startProgram.waterEfficiency` | โ |
|
|
| Water Saving | `water-percent` | `sensor` | `startProgram.waterSaving` | โ |
|
|
| Water hard | `water` | `number` | `startProgram.waterHard` | โ |
|
|
#### Sensors
|
|
| Name | Icon | Entity | Key | Auto-Translation |
|
|
| --- | --- | --- | --- | --- |
|
|
| Connection | | `binary_sensor` | `attributes.lastConnEvent.category` | โ |
|
|
| Door | | `binary_sensor` | `doorStatus` | โ |
|
|
| Error | `math-log` | `sensor` | `errors` | โ |
|
|
| Machine Status | `information` | `sensor` | `machMode` | โ |
|
|
| Program Phase | `washing-machine` | `sensor` | `prPhase` | โ |
|
|
| Remaining Time | `timer` | `sensor` | `remainingTimeMM` | โ |
|
|
| Rinse Aid | `spray-bottle` | `binary_sensor` | `rinseAidStatus` | โ |
|
|
| Salt | `shaker-outline` | `binary_sensor` | `saltStatus` | โ |
|
|
|
|
### Hob
|
|
#### Controls
|
|
| Name | Icon | Entity | Key | Auto-Translation |
|
|
| --- | --- | --- | --- | --- |
|
|
| Start Program | `pot-steam` | `button` | `startProgram` | โ |
|
|
#### Configs
|
|
| Name | Icon | Entity | Key | Auto-Translation |
|
|
| --- | --- | --- | --- | --- |
|
|
| Power Management | `timelapse` | `number` | `startProgram.powerManagement` | โ |
|
|
| Program | | `select` | `startProgram.program` | โ |
|
|
| Temperature | `thermometer` | `number` | `startProgram.temp` | โ |
|
|
#### Sensors
|
|
| Name | Icon | Entity | Key | Auto-Translation |
|
|
| --- | --- | --- | --- | --- |
|
|
| Connection | `wifi` | `binary_sensor` | `attributes.lastConnEvent.category` | โ |
|
|
| Error | `math-log` | `sensor` | `errors` | โ |
|
|
| Hob Lock | | `binary_sensor` | `hobLockStatus` | โ |
|
|
| Hot Status | | `binary_sensor` | `hotStatus` | โ |
|
|
| On | `power-cycle` | `binary_sensor` | `attributes.parameters.onOffStatus` | โ |
|
|
| Pan Status | `pot-mix` | `binary_sensor` | `panStatus` | โ |
|
|
| Power | `lightning-bolt` | `sensor` | `power` | โ |
|
|
| Remaining Time | `timer` | `sensor` | `remainingTimeMM` | โ |
|
|
| Remote Control | `remote` | `binary_sensor` | `attributes.parameters.remoteCtrValid` | โ |
|
|
| Temperature | `thermometer` | `sensor` | `temp` | โ |
|
|
|
|
### Oven
|
|
#### Controls
|
|
| Name | Icon | Entity | Key | Auto-Translation |
|
|
| --- | --- | --- | --- | --- |
|
|
| Oven | `toaster-oven` | `switch` | `startProgram` / `stopProgram` | โ |
|
|
#### Configs
|
|
| Name | Icon | Entity | Key | Auto-Translation |
|
|
| --- | --- | --- | --- | --- |
|
|
| Delay time | `timer-plus` | `number` | `startProgram.delayTime` | โ |
|
|
| Preheat | `thermometer-chevron-up` | `switch` | `startProgram.preheatStatus` | โ |
|
|
| Program | | `select` | `startProgram.program` | โ |
|
|
| Program Duration | `timelapse` | `number` | `startProgram.prTime` | โ |
|
|
| Target Temperature | `thermometer` | `number` | `startProgram.tempSel` | โ |
|
|
#### Sensors
|
|
| Name | Icon | Entity | Key | Auto-Translation |
|
|
| --- | --- | --- | --- | --- |
|
|
| Connection | `wifi` | `binary_sensor` | `attributes.lastConnEvent.category` | โ |
|
|
| On | `power-cycle` | `binary_sensor` | `attributes.parameters.onOffStatus` | โ |
|
|
| Remaining Time | `timer` | `sensor` | `remainingTimeMM` | โ |
|
|
| Remote Control | `remote` | `binary_sensor` | `attributes.parameters.remoteCtrValid` | โ |
|
|
| Start Time | `clock-start` | `sensor` | `delayTime` | โ |
|
|
| Temperature | `thermometer` | `sensor` | `temp` | โ |
|
|
| Temperature Selected | `thermometer` | `sensor` | `tempSel` | โ |
|
|
|
|
### Tumble dryer
|
|
#### Controls
|
|
| Name | Icon | Entity | Key | Auto-Translation |
|
|
| --- | --- | --- | --- | --- |
|
|
| Pause Tumble Dryer | `pause` | `switch` | `pauseProgram` / `resumeProgram` | โ |
|
|
| Tumble Dryer | `tumble-dryer` | `switch` | `startProgram` / `stopProgram` | โ |
|
|
#### Configs
|
|
| Name | Icon | Entity | Key | Auto-Translation |
|
|
| --- | --- | --- | --- | --- |
|
|
| Anti-Crease | `timer` | `switch` | `startProgram.antiCreaseTime` | โ |
|
|
| Anti-Crease | `timer` | `switch` | `startProgram.anticrease` | โ |
|
|
| Delay time | `timer-plus` | `number` | `startProgram.delayTime` | โ |
|
|
| Dry Time | | `number` | `startProgram.dryTime` | โ |
|
|
| Dry Time | `timer` | `select` | `startProgram.dryTimeMM` | โ |
|
|
| Dry level | `hair-dryer` | `select` | `startProgram.dryLevel` | โ |
|
|
| Energy Label | `lightning-bolt-circle` | `sensor` | `startProgram.energyLabel` | โ |
|
|
| Program | | `select` | `startProgram.program` | โ |
|
|
| Sterilization | `clock-start` | `switch` | `startProgram.sterilizationStatus` | โ |
|
|
| Suggested Load | `weight-kilogram` | `sensor` | `startProgram.suggestedLoadD` | โ |
|
|
| Temperature level | `thermometer` | `number` | `startProgram.tempLevel` | โ |
|
|
#### Sensors
|
|
| Name | Icon | Entity | Key | Auto-Translation |
|
|
| --- | --- | --- | --- | --- |
|
|
| Connection | | `binary_sensor` | `attributes.lastConnEvent.category` | โ |
|
|
| Door | | `binary_sensor` | `doorStatus` | โ |
|
|
| Dry level | `hair-dryer` | `sensor` | `dryLevel` | โ |
|
|
| Error | `math-log` | `sensor` | `errors` | โ |
|
|
| Machine Status | `information` | `sensor` | `machMode` | โ |
|
|
| Program | `tumble-dryer` | `sensor` | `prCode` | โ |
|
|
| Program Phase | `washing-machine` | `sensor` | `prPhase` | โ |
|
|
| Remaining Time | `timer` | `sensor` | `remainingTimeMM` | โ |
|
|
| Start Time | `clock-start` | `sensor` | `delayTime` | โ |
|
|
| Temperature level | `thermometer` | `sensor` | `tempLevel` | โ |
|
|
|
|
### Washer dryer
|
|
#### Controls
|
|
| Name | Icon | Entity | Key | Auto-Translation |
|
|
| --- | --- | --- | --- | --- |
|
|
| Pause Washing Machine | `pause` | `switch` | `pauseProgram` / `resumeProgram` | โ |
|
|
| Washing Machine | `washing-machine` | `switch` | `startProgram` / `stopProgram` | โ |
|
|
#### Configs
|
|
| Name | Icon | Entity | Key | Auto-Translation |
|
|
| --- | --- | --- | --- | --- |
|
|
| Delay Time | `timer-plus` | `number` | `startProgram.delayTime` | โ |
|
|
| Program | | `select` | `startProgram.program` | โ |
|
|
| Suggested weight | `weight-kilogram` | `sensor` | `startProgram.weight` | โ |
|
|
#### Sensors
|
|
| Name | Icon | Entity | Key | Auto-Translation |
|
|
| --- | --- | --- | --- | --- |
|
|
| Acqua Plus | | `binary_sensor` | `acquaplus` | โ |
|
|
| Anti-Crease | | `binary_sensor` | `anticrease` | โ |
|
|
| Current Electricity Used | `lightning-bolt` | `sensor` | `currentElectricityUsed` | โ |
|
|
| Current Program | `tumble-dryer` | `sensor` | `prCode` | โ |
|
|
| Current Temperature | `thermometer` | `sensor` | `temp` | โ |
|
|
| Current Water Used | `water` | `sensor` | `currentWaterUsed` | โ |
|
|
| Dirt level | `liquid-spot` | `sensor` | `dirtyLevel` | โ |
|
|
| Dry level | `hair-dryer` | `sensor` | `dryLevel` | โ |
|
|
| Extra Rinse 1 | | `binary_sensor` | `extraRinse1` | โ |
|
|
| Extra Rinse 2 | | `binary_sensor` | `extraRinse2` | โ |
|
|
| Extra Rinse 3 | | `binary_sensor` | `extraRinse3` | โ |
|
|
| Good Night Mode | | `binary_sensor` | `goodNight` | โ |
|
|
| Machine Status | `information` | `sensor` | `machMode` | โ |
|
|
| Pre Wash | | `binary_sensor` | `startProgram.prewash` | โ |
|
|
| Program Phase | `washing-machine` | `sensor` | `prPhase` | โ |
|
|
| Remaining Time | `timer` | `sensor` | `remainingTimeMM` | โ |
|
|
| Remote Control | `remote` | `binary_sensor` | `attributes.lastConnEvent.category` | โ |
|
|
| Spin Speed | `fast-forward-outline` | `sensor` | `spinSpeed` | โ |
|
|
| Steam level | `smoke` | `sensor` | `steamLevel` | โ |
|
|
| Total Power | | `sensor` | `totalElectricityUsed` | โ |
|
|
| Total Wash Cycle | `counter` | `sensor` | `totalWashCycle` | โ |
|
|
| Total Water | | `sensor` | `totalWaterUsed` | โ |
|
|
|
|
### Washing machine
|
|
#### Controls
|
|
| Name | Icon | Entity | Key | Auto-Translation |
|
|
| --- | --- | --- | --- | --- |
|
|
| Pause Washing Machine | `pause` | `switch` | `pauseProgram` / `resumeProgram` | โ |
|
|
| Washing Machine | `washing-machine` | `switch` | `startProgram` / `stopProgram` | โ |
|
|
#### Configs
|
|
| Name | Icon | Entity | Key | Auto-Translation |
|
|
| --- | --- | --- | --- | --- |
|
|
| Delay Status | `timer-check` | `switch` | `startProgram.delayStatus` | โ |
|
|
| Delay Time | `timer-plus` | `number` | `startProgram.delayTime` | โ |
|
|
| Energy Label | `lightning-bolt-circle` | `sensor` | `startProgram.energyLabel` | โ |
|
|
| Keep Fresh | `refresh-circle` | `switch` | `startProgram.autoSoftenerStatus` | โ |
|
|
| Liquid Detergent Dose | `cup-water` | `sensor` | `startProgram.liquidDetergentDose` | โ |
|
|
| Main Wash Time | `clock-start` | `number` | `startProgram.mainWashTime` | โ |
|
|
| Powder Detergent Dose | `cup` | `sensor` | `startProgram.powderDetergentDose` | โ |
|
|
| Program | | `select` | `startProgram.program` | โ |
|
|
| Rinse Iterations | `rotate-right` | `number` | `startProgram.rinseIterations` | โ |
|
|
| Soak Prewash Selection | `tshirt-crew` | `switch` | `startProgram.haier_SoakPrewashSelection` | โ |
|
|
| Spin speed | `numeric` | `select` | `startProgram.spinSpeed` | โ |
|
|
| Suggested weight | `weight-kilogram` | `sensor` | `startProgram.weight` | โ |
|
|
| Temperature | `thermometer` | `select` | `startProgram.temp` | โ |
|
|
#### Sensors
|
|
| Name | Icon | Entity | Key | Auto-Translation |
|
|
| --- | --- | --- | --- | --- |
|
|
| Current Electricity Used | `lightning-bolt` | `sensor` | `currentElectricityUsed` | โ |
|
|
| Current Water Used | `water` | `sensor` | `currentWaterUsed` | โ |
|
|
| Door | | `binary_sensor` | `doorStatus` | โ |
|
|
| Door Lock | | `binary_sensor` | `doorLockStatus` | โ |
|
|
| Error | `math-log` | `sensor` | `errors` | โ |
|
|
| Machine Status | `information` | `sensor` | `machMode` | โ |
|
|
| Program Phase | `washing-machine` | `sensor` | `prPhase` | โ |
|
|
| Remaining Time | `timer` | `sensor` | `remainingTimeMM` | โ |
|
|
| Remote Control | `remote` | `binary_sensor` | `attributes.lastConnEvent.category` | โ |
|
|
| Spin Speed | `speedometer` | `sensor` | `spinSpeed` | โ |
|
|
| Total Power | | `sensor` | `totalElectricityUsed` | โ |
|
|
| Total Wash Cycle | `counter` | `sensor` | `totalWashCycle` | โ |
|
|
| Total Water | | `sensor` | `totalWaterUsed` | โ |
|