From 7b80acb6b9d056db2c8e24134c25eca17e382bcd Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Sun, 7 May 2023 14:59:04 +0200 Subject: [PATCH] Update readme --- README.md | 69 +++++++++++++++++---------------- info.md | 23 ++++++----- scripts/generate_translation.py | 4 ++ 3 files changed, 52 insertions(+), 44 deletions(-) diff --git a/README.md b/README.md index ec73065..b81d710 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,39 @@ _Restart Home Assistant_ **Method 2**: Settings > Devices & Services > Add Integration > **Haier hOn** _If the integration is not in the list, you need to clear the browser cache._ + +## Supported Models +Support was confirmed for these models. If a supported model is missing, please [add it with this form](https://forms.gle/bTSD8qFotdZFytbf8). +- 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 + ## Contribute Any kind of contribution is welcome! ### Read out device data @@ -92,39 +125,7 @@ For every device exists a hidden button which can be used to log all info of you #### 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 - +- Use [pyhOn's translate command](https://github.com/Andre0512/pyhOn#translation) to read out the official translations ## About this Repo The existing integrations missed some features from the app I liked to have in HomeAssistant. @@ -265,7 +266,7 @@ I moved the api related stuff into the package [pyhOn](https://github.com/Andre0 | Dry level | `hair-dryer` | `sensor` | `dryLevel` | | Error | `math-log` | `sensor` | `errors` | | Machine Status | `information` | `sensor` | `machMode` | -| Program | `tumble-dryer` | `sensor` | `prCode` | +| Program | `tumble-dryer` | `sensor` | `programName` | | Program Phase | `washing-machine` | `sensor` | `prPhase` | | Remaining Time | `timer` | `sensor` | `remainingTimeMM` | | Start Time | `clock-start` | `sensor` | `delayTime` | diff --git a/info.md b/info.md index 19a323f..3a0b71c 100644 --- a/info.md +++ b/info.md @@ -13,12 +13,6 @@ Support for home appliances of Haier's mobile app hOn. - [Dish Washer](https://github.com/Andre0512/hon#dish-washer) - [Air conditioner](https://github.com/Andre0512/hon#air-conditioner) [BETA] -## Tested Appliances -- Haier WD90-B14TEAM5 -- Haier HD80-A3959 -- Haier HWO60SM2F3XH -- Hoover H-WASH 500 - ## 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) @@ -26,9 +20,15 @@ Support for home appliances of Haier's mobile app 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 -Want to help us to support more appliances? Or add more sensors? Or help with translating? Or beautify some icons or captions? -Check out the [project on GitHub](https://github.com/Andre0512/hon), every contribution is welcome! +## Supported Models +Support was confirmed for these models. If a supported model is missing, please [add it with this form](https://forms.gle/bTSD8qFotdZFytbf8). +- 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: @@ -52,10 +52,13 @@ Translation of internal names like programs are available for all languages whic * 🇪🇸 Spanish * 🇹🇷 Turkish +## Contribute +Want to help us to support more appliances? Or add more sensors? Or help with translating? Or beautify some icons or captions? +Check out the [project on GitHub](https://github.com/Andre0512/hon), every contribution is welcome! + ## Useful Links * [GitHub repository](https://github.com/Andre0512/hon) (please add a star if you like this integration!) * [pyhOn library](https://github.com/Andre0512/pyhOn) * [Release notes](https://github.com/Andre0512/hon/releases) * [Discussion and help](https://github.com/Andre0512/hon/discussions) * [Issues](https://github.com/Andre0512/hon/issues) - diff --git a/scripts/generate_translation.py b/scripts/generate_translation.py index 1775a40..83ce67b 100755 --- a/scripts/generate_translation.py +++ b/scripts/generate_translation.py @@ -3,10 +3,14 @@ import asyncio import json import re +import sys from pathlib import Path from pyhon import HonAPI +if __name__ == "__main__": + sys.path.insert(0, str(Path(__file__).parent.parent)) + from custom_components.hon import const SENSOR = {