Compare commits

..

22 Commits

Author SHA1 Message Date
d963086dbf Fix climate not available #52 2023-05-19 01:27:44 +02:00
29238d3d08 Add supported devices 2023-05-18 23:48:19 +02:00
a4ec3290ba Many air conditioner fixes for #52 2023-05-17 00:01:33 +02:00
d39deba973 Bump version 2023-05-16 20:52:17 +02:00
fae4c4c879 Check remote control only if available, fix #50 2023-05-16 20:34:05 +02:00
617ea0f99a Fix wrong ac attribute #49 2023-05-16 00:06:55 +02:00
81676771c7 Add some fridge sensors, change some configs to controls 2023-05-15 19:27:41 +02:00
604cf1b3c6 Add more fridge sensor #41 2023-05-15 00:38:41 +02:00
9a65eaba77 Fix errors in changing settings 2023-05-14 22:39:34 +02:00
e777fe1ec9 Add more dw conifgs 2023-05-14 03:17:58 +02:00
845adc75c9 Instant send settings 2023-05-14 03:16:21 +02:00
17d4d14ead Show controls always unavailable when diconnected #43 2023-05-13 22:09:48 +02:00
593d3912af Fix wrong wm keep fresh key 2023-05-13 01:20:02 +02:00
aefe2cf88d Add supported models 2023-05-12 18:15:28 +02:00
146e710881 Add first fridge sensors #41 2023-05-10 18:23:06 +02:00
0afbfe997d Fix log device info #40 2023-05-09 12:41:41 +02:00
6828f3e9a8 Fix missing switches again 2023-05-08 21:30:49 +02:00
a56d3e5f88 Fix missing temperature #38 2023-05-08 19:41:25 +02:00
240dc85ff3 Small fixes, fix KeyError for switches #38 2023-05-08 19:26:10 +02:00
44794c35ca Fix missing entities #34 2023-05-08 02:35:54 +02:00
a5c7b99569 Improve air conditioner support 2023-05-08 02:05:04 +02:00
6935f5f07f Deactivate contols when remotectrl disabled, fixes #28 2023-05-07 19:13:50 +02:00
35 changed files with 2303 additions and 250 deletions

180
README.md
View File

@ -1,18 +1,20 @@
# Haier hOn # Haier hOn
[![hacs_badge](https://img.shields.io/badge/HACS-Default-41BDF5.svg)](https://hacs.xyz) [![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 release (latest by date)](https://img.shields.io/github/v/release/Andre0512/hon?color=green)](https://github.com/Andre0512/hon/releases/latest)
[![PyPI](https://img.shields.io/pypi/v/pyhon?label=pyhOn)](https://github.com/Andre0512/pyhOn)
[![GitHub](https://img.shields.io/github/license/Andre0512/hon?color=red)](https://github.com/Andre0512/hon/blob/main/LICENSE) [![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) [![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. Home Assistant integration for [Haier's mobile app hOn](https://hon-smarthome.com/).
## Supported Appliances ## Supported Appliances
- [Washing Machine](https://github.com/Andre0512/hon#washing-machine) - [Washing Machine](https://github.com/Andre0512/hon#washing-machine)
- [Tumble Dryer](https://github.com/Andre0512/hon#tumble-dryer) - [Tumble Dryer](https://github.com/Andre0512/hon#tumble-dryer)
- [Washer Dryer](https://github.com/Andre0512/hon#washer-dryer) - [Washer Dryer](https://github.com/Andre0512/hon#washer-dryer)
- [Oven](https://github.com/Andre0512/hon#oven) - [Oven](https://github.com/Andre0512/hon#oven)
- [Hob](https://github.com/Andre0512/hon#hob)
- [Dish Washer](https://github.com/Andre0512/hon#dish-washer) - [Dish Washer](https://github.com/Andre0512/hon#dish-washer)
- [Hob](https://github.com/Andre0512/hon#hob) [BETA]
- [Air conditioner](https://github.com/Andre0512/hon#air-conditioner) [BETA] - [Air conditioner](https://github.com/Andre0512/hon#air-conditioner) [BETA]
- [Fridge](https://github.com/Andre0512/hon#fridge) [BETA]
## Installation ## 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 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)
@ -30,17 +32,6 @@ _Restart Home Assistant_
**Method 2**: Settings > Devices & Services > Add Integration > **Haier 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._ _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 ## Supported Languages
Translation of internal names like programs are available for all languages which are official supported by the hOn app: Translation of internal names like programs are available for all languages which are official supported by the hOn app:
* 🇨🇳 Chinese * 🇨🇳 Chinese
@ -63,26 +54,50 @@ Translation of internal names like programs are available for all languages whic
* 🇪🇸 Spanish * 🇪🇸 Spanish
* 🇹🇷 Turkish * 🇹🇷 Turkish
## Examples
### Washing Machine
![washing_machine.png](assets/washing_machine.png)
## Supported Models
Support has been confirmed for these models, but many more will work. Please add already supported devices [with this form to complete the list](https://forms.gle/bTSD8qFotdZFytbf8).
- Haier AD105S2SM3FA
- Haier AS25PBAHRA
- Haier AS25TADHRA-2
- Haier AS35TADHRA-2
- Haier EG9012B19SU1JD
- Haier HD80-A3959
- Haier HW90-B14TEAM5
- Haier HW100-B14959U1
- Haier HWD100-B14979
- Haier HWO60SM2F3XH
- Haier XIB 3B2SFS-80
- Haier XIB 6B2D3FB
- Candy CIS633SCTTWIFI
- Candy CSOE C10DE-80
- Candy ROE H9A3TCEX-S
- Candy RPW41066BWMR/1-S
- Hoover H-WASH 500
- Hoover H-DRY 500
- Hoover H7W4 48MBC-S
- Hoover H9A3TCBEXS-S
- Hoover HFB 6B2S3FX
- Hoover HLE C10DCE-80
- Hoover HSOT3161WG
- Hoover HWPD 69AMBC/1-S
- Hoover HWPS4954DAMR-11
- Hoover NDE H10A2TCE-80
- Hoover NDE H9A2TSBEXS-S
- Hoover NDPHY10A2TCBEXSS
## Contribute ## Contribute
Any kind of contribution is welcome! Any kind of contribution is welcome!
### Read out device data ### 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. 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. For every device exists a hidden button which can be used to log all infos of your appliance.
1. Enable the "Log Device Info" button 1. Enable the "Show 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._ _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 2. Press the button to create a notification
3. Go to Settings > System > Logs, click _load full logs_ and scroll down 3. Open home assistant notifications and copy the message (Crtl+A, Ctrl+C)
_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 ### Add appliances or additional attributes
1. Install [pyhOn](https://github.com/Andre0512/pyhOn) 1. Install [pyhOn](https://github.com/Andre0512/pyhOn)
```commandline ```commandline
@ -127,35 +142,51 @@ For every device exists a hidden button which can be used to log all info of you
- 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. - 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 - Use [pyhOn's translate command](https://github.com/Andre0512/pyhOn#translation) to read out the official translations
## About this Repo ## Special Thanks
The existing integrations missed some features from the app I liked to have in HomeAssistant. - to [@alexandre-leites](https://github.com/alexandre-leites), [@MiguelAngelLV](https://github.com/MiguelAngelLV) and [@drudgebg](https://github.com/drudgebg) for contributing early to this project and adding new integrations.
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. - to [gvigroux/hon](https://github.com/gvigroux/hon), [signalize/hon-app-research](https://github.com/signalize/hon-app-research) and [slegars56/hon](https://github.com/slegars56/hon) for inspiring me to do this integration and for doing pioneer work on the hOn api.
I moved the api related stuff into the package [pyhOn](https://github.com/Andre0512/pyhOn). - to everyone who contributed, created an issue, gave this repo a star, and used this integration.
- to the patience of my girlfriend as I work on this integration.
## Appliance Features ## Appliance Features
### Air conditioner ### Air conditioner
#### Configs #### Controls
| Name | Icon | Entity | Key | | Name | Icon | Entity | Key |
| --- | --- | --- | --- | | --- | --- | --- | --- |
| 10° Heating | | `switch` | `startProgram.10degreeHeatingStatus` | | 10° Heating | `heat-wave` | `switch` | `settings.10degreeHeatingStatus` |
| Echo | | `switch` | `startProgram.echoStatus` | | Air Conditioner | `air-conditioner` | `climate` | `settings` |
| Eco Mode | | `switch` | `startProgram.ecoMode` | | Echo | `account-voice` | `switch` | `settings.echoStatus` |
| Eco Pilot | | `select` | `startProgram.humanSensingStatus` | | Eco Mode | | `switch` | `settings.ecoMode` |
| Health Mode | | `switch` | `startProgram.healthMode` | | Eco Pilot | `run` | `select` | `settings.humanSensingStatus` |
| Mute | | `switch` | `startProgram.muteStatus` | | Health Mode | `medication-outline` | `switch` | `settings.healthMode` |
| Mute | `volume-off` | `switch` | `settings.muteStatus` |
| Rapid Mode | `run-fast` | `switch` | `settings.rapidMode` |
| Screen Display | `monitor-small` | `switch` | `settings.screenDisplayStatus` |
| Self Cleaning | `air-filter` | `switch` | `settings.selfCleaningStatus` |
| Self Cleaning 56 | `air-filter` | `switch` | `settings.selfCleaning56Status` |
| Silent Sleep | `bed` | `switch` | `settings.silentSleepStatus` |
| Target Temperature | `thermometer` | `number` | `settings.tempSel` |
#### Sensors
| Name | Icon | Entity | Key |
| --- | --- | --- | --- |
| Air Temperature Outdoor | `thermometer` | `sensor` | `tempAirOutdoor` |
| Ch2O Cleaning | | `binary_sensor` | `ch2oCleaningStatus` |
| Coiler Temperature Indoor | `thermometer` | `sensor` | `tempCoilerIndoor` |
| Coiler Temperature Outside | `thermometer` | `sensor` | `tempCoilerOutdoor` |
| Defrost Temperature Outdoor | `thermometer` | `sensor` | `tempDefrostOutdoor` |
| Filter Replacement | | `binary_sensor` | `filterChangeStatusLocal` |
| In Air Temperature Outdoor | `thermometer` | `sensor` | `tempInAirOutdoor` |
| Indoor Temperature | `thermometer` | `sensor` | `tempIndoor` |
| Outdoor Temperature | `thermometer` | `sensor` | `tempOutdoor` |
| Program | | `select` | `startProgram.program` | | Program | | `select` | `startProgram.program` |
| Rapid Mode | | `switch` | `startProgram.rapidMode` | | Selected Temperature | `thermometer` | `sensor` | `tempSel` |
| Screen Display | | `switch` | `startProgram.screenDisplayStatus` |
| Self Cleaning | | `switch` | `startProgram.selfCleaningStatus` |
| Self Cleaning 56 | | `switch` | `startProgram.selfCleaning56Status` |
| Silent Sleep | | `switch` | `startProgram.silentSleepStatus` |
| Target Temperature | `thermometer` | `number` | `startProgram.tempSel` |
### Dish washer ### Dish washer
#### Controls #### Controls
| Name | Icon | Entity | Key | | Name | Icon | Entity | Key |
| --- | --- | --- | --- | | --- | --- | --- | --- |
| Buzzer Disabled | `volume-off` | `switch` | `settings.buzzerDisabled` |
| Dish Washer | `dishwasher` | `switch` | `startProgram` / `stopProgram` | | Dish Washer | `dishwasher` | `switch` | `startProgram` / `stopProgram` |
#### Configs #### Configs
| Name | Icon | Entity | Key | | Name | Icon | Entity | Key |
@ -169,6 +200,8 @@ I moved the api related stuff into the package [pyhOn](https://github.com/Andre0
| Half Load | `fraction-one-half` | `switch` | `startProgram.halfLoad` | | Half Load | `fraction-one-half` | `switch` | `startProgram.halfLoad` |
| Open Door | `door-open` | `switch` | `startProgram.openDoor` | | Open Door | `door-open` | `switch` | `startProgram.openDoor` |
| Program | | `select` | `startProgram.program` | | Program | | `select` | `startProgram.program` |
| Remaining Time | `timer` | `select` | `startProgram.remainingTime` |
| Temperature | `thermometer` | `select` | `startProgram.temp` |
| Temperature | `thermometer` | `sensor` | `startProgram.temp` | | Temperature | `thermometer` | `sensor` | `startProgram.temp` |
| Three in One | `numeric-3-box-outline` | `switch` | `startProgram.threeInOne` | | Three in One | `numeric-3-box-outline` | `switch` | `startProgram.threeInOne` |
| Time | `timer` | `sensor` | `startProgram.remainingTime` | | Time | `timer` | `sensor` | `startProgram.remainingTime` |
@ -209,7 +242,6 @@ I moved the api related stuff into the package [pyhOn](https://github.com/Andre0
| Pan Status | `pot-mix` | `binary_sensor` | `panStatus` | | Pan Status | `pot-mix` | `binary_sensor` | `panStatus` |
| Power | `lightning-bolt` | `sensor` | `power` | | Power | `lightning-bolt` | `sensor` | `power` |
| Remaining Time | `timer` | `sensor` | `remainingTimeMM` | | Remaining Time | `timer` | `sensor` | `remainingTimeMM` |
| Remote Control | `remote` | `binary_sensor` | `attributes.parameters.remoteCtrValid` |
| Temperature | `thermometer` | `sensor` | `temp` | | Temperature | `thermometer` | `sensor` | `temp` |
### Oven ### Oven
@ -231,11 +263,37 @@ I moved the api related stuff into the package [pyhOn](https://github.com/Andre0
| Connection | `wifi` | `binary_sensor` | `attributes.lastConnEvent.category` | | Connection | `wifi` | `binary_sensor` | `attributes.lastConnEvent.category` |
| On | `power-cycle` | `binary_sensor` | `attributes.parameters.onOffStatus` | | On | `power-cycle` | `binary_sensor` | `attributes.parameters.onOffStatus` |
| Remaining Time | `timer` | `sensor` | `remainingTimeMM` | | Remaining Time | `timer` | `sensor` | `remainingTimeMM` |
| Remote Control | `remote` | `binary_sensor` | `attributes.parameters.remoteCtrValid` |
| Start Time | `clock-start` | `sensor` | `delayTime` | | Start Time | `clock-start` | `sensor` | `delayTime` |
| Temperature | `thermometer` | `sensor` | `temp` | | Temperature | `thermometer` | `sensor` | `temp` |
| Temperature Selected | `thermometer` | `sensor` | `tempSel` | | Temperature Selected | `thermometer` | `sensor` | `tempSel` |
### Fridge
#### Controls
| Name | Icon | Entity | Key |
| --- | --- | --- | --- |
| Auto-Set Mode | `thermometer-auto` | `switch` | `settings.intelligenceMode` |
| Freezer Temperature | `thermometer` | `number` | `settings.tempSelZ2` |
| Fridge Temperature | `thermometer` | `number` | `settings.tempSelZ1` |
| Super Cool | `snowflake` | `switch` | `settings.quickModeZ2` |
| Super Freeze | `snowflake-variant` | `switch` | `settings.quickModeZ1` |
#### Configs
| Name | Icon | Entity | Key |
| --- | --- | --- | --- |
| Program | | `select` | `startProgram.program` |
#### Sensors
| Name | Icon | Entity | Key |
| --- | --- | --- | --- |
| Auto-Set Mode | `thermometer-auto` | `binary_sensor` | `intelligenceMode` |
| Door Status Freezer | `fridge-top` | `binary_sensor` | `doorStatusZ1` |
| Door Status Fridge | `fridge-bottom` | `binary_sensor` | `door2StatusZ1` |
| Holiday Mode | `palm-tree` | `binary_sensor` | `holidayMode` |
| Room Humidity | `water-percent` | `sensor` | `humidityEnv` |
| Room Temperature | `home-thermometer-outline` | `sensor` | `tempEnv` |
| Super Cool | `snowflake` | `binary_sensor` | `quickModeZ2` |
| Super Freeze | `snowflake-variant` | `binary_sensor` | `quickModeZ1` |
| Temperature Freezer | `snowflake-thermometer` | `sensor` | `tempZ2` |
| Temperature Fridge | `thermometer` | `sensor` | `tempZ1` |
### Tumble dryer ### Tumble dryer
#### Controls #### Controls
| Name | Icon | Entity | Key | | Name | Icon | Entity | Key |
@ -286,18 +344,19 @@ I moved the api related stuff into the package [pyhOn](https://github.com/Andre0
| Acqua Plus | `water-plus` | `switch` | `startProgram.acquaplus` | | Acqua Plus | `water-plus` | `switch` | `startProgram.acquaplus` |
| Anti-Crease | `timer` | `switch` | `startProgram.antiCreaseTime` | | Anti-Crease | `timer` | `switch` | `startProgram.antiCreaseTime` |
| Anti-Crease | `timer` | `switch` | `startProgram.anticrease` | | Anti-Crease | `timer` | `switch` | `startProgram.anticrease` |
| Auto Dose | `cup` | `switch` | `startProgram.autoDetergentStatus` | | Auto Dose Detergent | `cup` | `switch` | `startProgram.autoDetergentStatus` |
| Auto Dose Softener | `teddy-bear` | `switch` | `startProgram.autoSoftenerStatus` |
| Delay Status | `timer-check` | `switch` | `startProgram.delayStatus` | | Delay Status | `timer-check` | `switch` | `startProgram.delayStatus` |
| Delay Time | `timer-plus` | `number` | `startProgram.delayTime` | | Delay Time | `timer-plus` | `number` | `startProgram.delayTime` |
| Dry Time | | `number` | `startProgram.dryTime` | | Dry Time | | `number` | `startProgram.dryTime` |
| Dry Time | `timer` | `select` | `startProgram.dryTimeMM` | | Dry Time | `timer` | `select` | `startProgram.dryTimeMM` |
| Dry level | `hair-dryer` | `select` | `startProgram.dryLevel` | | Dry level | `hair-dryer` | `select` | `startProgram.dryLevel` |
| Energy Label | `lightning-bolt-circle` | `sensor` | `startProgram.energyLabel` | | Energy Label | `lightning-bolt-circle` | `sensor` | `startProgram.energyLabel` |
| Extra Rinse 1 | `numeric-1-box-multiple-outline` | `switch` | `extraRinse1` | | Extra Rinse 1 | `numeric-1-box-multiple-outline` | `switch` | `startProgram.extraRinse1` |
| Extra Rinse 2 | `numeric-2-box-multiple-outline` | `switch` | `extraRinse2` | | Extra Rinse 2 | `numeric-2-box-multiple-outline` | `switch` | `startProgram.extraRinse2` |
| Extra Rinse 3 | `numeric-3-box-multiple-outline` | `switch` | `extraRinse3` | | Extra Rinse 3 | `numeric-3-box-multiple-outline` | `switch` | `startProgram.extraRinse3` |
| Good Night | `weather-night` | `switch` | `goodNight` | | Good Night | `weather-night` | `switch` | `startProgram.goodNight` |
| Keep Fresh | `refresh-circle` | `switch` | `startProgram.autoSoftenerStatus` | | Keep Fresh | `refresh-circle` | `switch` | `startProgram.permanentPressStatus` |
| Liquid Detergent Dose | `cup-water` | `sensor` | `startProgram.liquidDetergentDose` | | Liquid Detergent Dose | `cup-water` | `sensor` | `startProgram.liquidDetergentDose` |
| Main Wash Time | `clock-start` | `number` | `startProgram.mainWashTime` | | Main Wash Time | `clock-start` | `number` | `startProgram.mainWashTime` |
| Powder Detergent Dose | `cup` | `sensor` | `startProgram.powderDetergentDose` | | Powder Detergent Dose | `cup` | `sensor` | `startProgram.powderDetergentDose` |
@ -323,6 +382,7 @@ I moved the api related stuff into the package [pyhOn](https://github.com/Andre0
| Acqua Plus | | `binary_sensor` | `acquaplus` | | Acqua Plus | | `binary_sensor` | `acquaplus` |
| Anti-Crease | | `binary_sensor` | `anticrease` | | Anti-Crease | | `binary_sensor` | `anticrease` |
| Current Electricity Used | `lightning-bolt` | `sensor` | `currentElectricityUsed` | | Current Electricity Used | `lightning-bolt` | `sensor` | `currentElectricityUsed` |
| Current Temperature | `thermometer` | `sensor` | `temp` |
| Current Water Used | `water` | `sensor` | `currentWaterUsed` | | Current Water Used | `water` | `sensor` | `currentWaterUsed` |
| Dirt level | `liquid-spot` | `sensor` | `dirtyLevel` | | Dirt level | `liquid-spot` | `sensor` | `dirtyLevel` |
| Door | | `binary_sensor` | `doorStatus` | | Door | | `binary_sensor` | `doorStatus` |
@ -357,15 +417,16 @@ I moved the api related stuff into the package [pyhOn](https://github.com/Andre0
| Name | Icon | Entity | Key | | Name | Icon | Entity | Key |
| --- | --- | --- | --- | | --- | --- | --- | --- |
| Acqua Plus | `water-plus` | `switch` | `startProgram.acquaplus` | | Acqua Plus | `water-plus` | `switch` | `startProgram.acquaplus` |
| Auto Dose | `cup` | `switch` | `startProgram.autoDetergentStatus` | | Auto Dose Detergent | `cup` | `switch` | `startProgram.autoDetergentStatus` |
| Auto Dose Softener | `teddy-bear` | `switch` | `startProgram.autoSoftenerStatus` |
| Delay Status | `timer-check` | `switch` | `startProgram.delayStatus` | | Delay Status | `timer-check` | `switch` | `startProgram.delayStatus` |
| Delay Time | `timer-plus` | `number` | `startProgram.delayTime` | | Delay Time | `timer-plus` | `number` | `startProgram.delayTime` |
| Energy Label | `lightning-bolt-circle` | `sensor` | `startProgram.energyLabel` | | Energy Label | `lightning-bolt-circle` | `sensor` | `startProgram.energyLabel` |
| Extra Rinse 1 | `numeric-1-box-multiple-outline` | `switch` | `extraRinse1` | | Extra Rinse 1 | `numeric-1-box-multiple-outline` | `switch` | `startProgram.extraRinse1` |
| Extra Rinse 2 | `numeric-2-box-multiple-outline` | `switch` | `extraRinse2` | | Extra Rinse 2 | `numeric-2-box-multiple-outline` | `switch` | `startProgram.extraRinse2` |
| Extra Rinse 3 | `numeric-3-box-multiple-outline` | `switch` | `extraRinse3` | | Extra Rinse 3 | `numeric-3-box-multiple-outline` | `switch` | `startProgram.extraRinse3` |
| Good Night | `weather-night` | `switch` | `goodNight` | | Good Night | `weather-night` | `switch` | `startProgram.goodNight` |
| Keep Fresh | `refresh-circle` | `switch` | `startProgram.autoSoftenerStatus` | | Keep Fresh | `refresh-circle` | `switch` | `startProgram.permanentPressStatus` |
| Liquid Detergent Dose | `cup-water` | `sensor` | `startProgram.liquidDetergentDose` | | Liquid Detergent Dose | `cup-water` | `sensor` | `startProgram.liquidDetergentDose` |
| Main Wash Time | `clock-start` | `number` | `startProgram.mainWashTime` | | Main Wash Time | `clock-start` | `number` | `startProgram.mainWashTime` |
| Powder Detergent Dose | `cup` | `sensor` | `startProgram.powderDetergentDose` | | Powder Detergent Dose | `cup` | `sensor` | `startProgram.powderDetergentDose` |
@ -385,6 +446,7 @@ I moved the api related stuff into the package [pyhOn](https://github.com/Andre0
| --- | --- | --- | --- | | --- | --- | --- | --- |
| Acqua Plus | | `binary_sensor` | `acquaplus` | | Acqua Plus | | `binary_sensor` | `acquaplus` |
| Current Electricity Used | `lightning-bolt` | `sensor` | `currentElectricityUsed` | | Current Electricity Used | `lightning-bolt` | `sensor` | `currentElectricityUsed` |
| Current Temperature | `thermometer` | `sensor` | `temp` |
| Current Water Used | `water` | `sensor` | `currentWaterUsed` | | Current Water Used | `water` | `sensor` | `currentWaterUsed` |
| Dirt level | `liquid-spot` | `sensor` | `dirtyLevel` | | Dirt level | `liquid-spot` | `sensor` | `dirtyLevel` |
| Door | | `binary_sensor` | `doorStatus` | | Door | | `binary_sensor` | `doorStatus` |

BIN
assets/washing_machine.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 KiB

View File

@ -99,14 +99,6 @@ BINARY_SENSORS: dict[str, tuple[HonBinarySensorEntityDescription, ...]] = {
icon="mdi:wifi", icon="mdi:wifi",
translation_key="connection", translation_key="connection",
), ),
HonBinarySensorEntityDescription(
key="attributes.parameters.remoteCtrValid",
name="Remote Control",
device_class=BinarySensorDeviceClass.CONNECTIVITY,
on_value="1",
icon="mdi:remote",
translation_key="remote_control",
),
HonBinarySensorEntityDescription( HonBinarySensorEntityDescription(
key="attributes.parameters.onOffStatus", key="attributes.parameters.onOffStatus",
name="On", name="On",
@ -125,14 +117,6 @@ BINARY_SENSORS: dict[str, tuple[HonBinarySensorEntityDescription, ...]] = {
icon="mdi:wifi", icon="mdi:wifi",
translation_key="connection", translation_key="connection",
), ),
HonBinarySensorEntityDescription(
key="attributes.parameters.remoteCtrValid",
name="Remote Control",
device_class=BinarySensorDeviceClass.CONNECTIVITY,
on_value="1",
icon="mdi:remote",
translation_key="remote_control",
),
HonBinarySensorEntityDescription( HonBinarySensorEntityDescription(
key="attributes.parameters.onOffStatus", key="attributes.parameters.onOffStatus",
name="On", name="On",
@ -195,6 +179,70 @@ BINARY_SENSORS: dict[str, tuple[HonBinarySensorEntityDescription, ...]] = {
translation_key="door_open", translation_key="door_open",
), ),
), ),
"AC": (
HonBinarySensorEntityDescription(
key="filterChangeStatusLocal",
name="Filter Replacement",
device_class=BinarySensorDeviceClass.PROBLEM,
on_value="1",
translation_key="filter_replacement",
),
HonBinarySensorEntityDescription(
key="ch2oCleaningStatus",
name="Ch2O Cleaning",
on_value="1",
),
),
"REF": (
HonBinarySensorEntityDescription(
key="quickModeZ2",
name="Super Cool",
icon="mdi:snowflake",
device_class=BinarySensorDeviceClass.RUNNING,
on_value="1",
translation_key="super_cool",
),
HonBinarySensorEntityDescription(
key="quickModeZ1",
name="Super Freeze",
icon="mdi:snowflake-variant",
device_class=BinarySensorDeviceClass.RUNNING,
on_value="1",
translation_key="super_freeze",
),
HonBinarySensorEntityDescription(
key="doorStatusZ1",
name="Door Status Freezer",
device_class=BinarySensorDeviceClass.DOOR,
icon="mdi:fridge-top",
on_value="1",
translation_key="freezer_door",
),
HonBinarySensorEntityDescription(
key="door2StatusZ1",
name="Door Status Fridge",
icon="mdi:fridge-bottom",
device_class=BinarySensorDeviceClass.DOOR,
on_value="1",
translation_key="fridge_door",
),
HonBinarySensorEntityDescription(
key="intelligenceMode",
name="Auto-Set Mode",
icon="mdi:thermometer-auto",
device_class=BinarySensorDeviceClass.RUNNING,
on_value="1",
translation_key="auto_set",
),
HonBinarySensorEntityDescription(
key="holidayMode",
name="Holiday Mode",
icon="mdi:palm-tree",
device_class=BinarySensorDeviceClass.RUNNING,
on_value="1",
translation_key="holiday_mode",
),
),
} }
@ -230,8 +278,6 @@ class HonBinarySensorEntity(HonEntity, BinarySensorEntity):
def __init__(self, hass, coordinator, entry, device, description) -> None: def __init__(self, hass, coordinator, entry, device, description) -> None:
super().__init__(hass, entry, coordinator, device) super().__init__(hass, entry, coordinator, device)
self._coordinator = coordinator
self.entity_description = description self.entity_description = description
self._attr_unique_id = f"{super().unique_id}{description.key}" self._attr_unique_id = f"{super().unique_id}{description.key}"

View File

@ -1,14 +1,14 @@
import logging import logging
import urllib
from urllib.parse import quote
import pkg_resources import pkg_resources
from homeassistant.components import persistent_notification
from homeassistant.components.button import ButtonEntityDescription, ButtonEntity from homeassistant.components.button import ButtonEntityDescription, ButtonEntity
from homeassistant.config_entries import ConfigEntry from homeassistant.config_entries import ConfigEntry
from homeassistant.const import EntityCategory
from pyhon import Hon from pyhon import Hon
from pyhon.appliance import HonAppliance from pyhon.appliance import HonAppliance
from homeassistant.const import EntityCategory
from .const import DOMAIN from .const import DOMAIN
from .hon import HonCoordinator, HonEntity from .hon import HonCoordinator, HonEntity
@ -56,27 +56,37 @@ class HonButtonEntity(HonEntity, ButtonEntity):
) -> None: ) -> None:
super().__init__(hass, entry, coordinator, device) super().__init__(hass, entry, coordinator, device)
self._coordinator = coordinator
self._device = device
self.entity_description = description self.entity_description = description
self._attr_unique_id = f"{super().unique_id}{description.key}" self._attr_unique_id = f"{super().unique_id}{description.key}"
async def async_press(self) -> None: async def async_press(self) -> None:
await self._device.commands[self.entity_description.key].send() await self._device.commands[self.entity_description.key].send()
@property
def available(self) -> bool:
"""Return True if entity is available."""
return (
super().available
and self._device.get("remoteCtrValid", "1") == "1"
and self._device.get("attributes.lastConnEvent.category") != "DISCONNECTED"
)
class HonFeatureRequestButton(HonEntity, ButtonEntity): class HonFeatureRequestButton(HonEntity, ButtonEntity):
def __init__(self, hass, coordinator, entry, device: HonAppliance) -> None: def __init__(self, hass, coordinator, entry, device: HonAppliance) -> None:
super().__init__(hass, entry, coordinator, device) super().__init__(hass, entry, coordinator, device)
self._device = device
self._attr_unique_id = f"{super().unique_id}_log_device_info" self._attr_unique_id = f"{super().unique_id}_log_device_info"
self._attr_icon = "mdi:information" self._attr_icon = "mdi:information"
self._attr_name = "Log Device Info" self._attr_name = "Show Device Info"
self._attr_entity_category = EntityCategory.DIAGNOSTIC self._attr_entity_category = EntityCategory.DIAGNOSTIC
self._attr_entity_registry_enabled_default = False self._attr_entity_registry_enabled_default = False
async def async_press(self) -> None: async def async_press(self) -> None:
pyhon_version = pkg_resources.get_distribution("pyhon").version pyhon_version = pkg_resources.get_distribution("pyhon").version
info = f"Device Info:\n{self._device.diagnose}pyhOnVersion: {pyhon_version}" info = f"{self._device.diagnose()}pyhOnVersion: {pyhon_version}"
_LOGGER.error(info) title = f"{self._device.nick_name} Device Info"
persistent_notification.create(
self._hass, f"````\n```\n{info}\n```\n````", title
)
_LOGGER.info(info.replace(" ", "\u200B "))

View File

@ -1,5 +1,8 @@
import logging import logging
from pyhon import Hon
from pyhon.appliance import HonAppliance
from homeassistant.components.climate import ( from homeassistant.components.climate import (
ClimateEntity, ClimateEntity,
ClimateEntityDescription, ClimateEntityDescription,
@ -20,16 +23,20 @@ from homeassistant.const import (
TEMP_CELSIUS, TEMP_CELSIUS,
) )
from homeassistant.core import callback from homeassistant.core import callback
from pyhon import Hon
from pyhon.appliance import HonAppliance
from .const import HON_HVAC_MODE, HON_FAN, HON_HVAC_PROGRAM, DOMAIN from .const import HON_HVAC_MODE, HON_FAN, HON_HVAC_PROGRAM, DOMAIN
from .hon import HonEntity, HonCoordinator from .hon import HonEntity, HonCoordinator
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)
CLIMATES = { CLIMATES = {
"AC": (ClimateEntityDescription(key="startProgram"),), "AC": (
ClimateEntityDescription(
key="settings",
name="Air Conditioner",
icon="mdi:air-conditioner",
translation_key="air_conditioner",
),
),
} }
@ -47,10 +54,10 @@ async def async_setup_entry(hass, entry: ConfigEntry, async_add_entities) -> Non
if descriptions := CLIMATES.get(device.appliance_type): if descriptions := CLIMATES.get(device.appliance_type):
for description in descriptions: for description in descriptions:
if description.key not in device.available_settings: if description.key not in list(device.commands):
continue continue
appliances.extend( appliances.append(
[HonClimateEntity(hass, coordinator, entry, device, description)] HonClimateEntity(hass, coordinator, entry, device, description)
) )
async_add_entities(appliances) async_add_entities(appliances)
@ -60,22 +67,19 @@ class HonClimateEntity(HonEntity, ClimateEntity):
self, hass, coordinator, entry, device: HonAppliance, description self, hass, coordinator, entry, device: HonAppliance, description
) -> None: ) -> None:
super().__init__(hass, entry, coordinator, device) super().__init__(hass, entry, coordinator, device)
self._coordinator = coordinator
self._device = coordinator.device
self.entity_description = description self.entity_description = description
self._hass = hass
self._attr_unique_id = f"{super().unique_id}climate" self._attr_unique_id = f"{super().unique_id}climate"
self._attr_temperature_unit = TEMP_CELSIUS self._attr_temperature_unit = TEMP_CELSIUS
self._attr_target_temperature_step = PRECISION_WHOLE self._attr_target_temperature_step = PRECISION_WHOLE
self._attr_max_temp = device.settings["tempSel"].max self._attr_max_temp = device.settings["settings.tempSel"].max
self._attr_min_temp = device.settings["tempSel"].min self._attr_min_temp = device.settings["settings.tempSel"].min
self._attr_hvac_modes = [HVACMode.OFF] + [ self._attr_hvac_modes = [HVACMode.OFF] + [
HON_HVAC_MODE[mode] for mode in device.settings["machMode"].values HON_HVAC_MODE[mode] for mode in device.settings["settings.machMode"].values
] ]
self._attr_fan_modes = [FAN_OFF] + [ self._attr_fan_modes = [FAN_OFF] + [
HON_FAN[mode] for mode in device.settings["windSpeed"].values HON_FAN[mode] for mode in device.settings["settings.windSpeed"].values
] ]
self._attr_swing_modes = [ self._attr_swing_modes = [
SWING_OFF, SWING_OFF,
@ -89,22 +93,30 @@ class HonClimateEntity(HonEntity, ClimateEntity):
| ClimateEntityFeature.SWING_MODE | ClimateEntityFeature.SWING_MODE
) )
self._handle_coordinator_update(update=False)
async def async_set_hvac_mode(self, hvac_mode): async def async_set_hvac_mode(self, hvac_mode):
if hvac_mode == HVACMode.OFF: if hvac_mode == HVACMode.OFF:
self._device.commands["stopProgram"].send() await self._device.commands["stopProgram"].send()
else: else:
self._device.settings["program"].value = HON_HVAC_PROGRAM[hvac_mode] self._device.settings["startProgram.program"].value = HON_HVAC_PROGRAM[
self._device.commands["startProgram"].send() hvac_mode
]
await self._device.commands["startProgram"].send()
self._attr_hvac_mode = hvac_mode self._attr_hvac_mode = hvac_mode
self.async_write_ha_state()
async def async_set_fan_mode(self, fan_mode): async def async_set_fan_mode(self, fan_mode):
mode_number = list(HON_FAN.values()).index(fan_mode) mode_number = list(HON_FAN.values()).index(fan_mode)
self._device.settings["windSpeed"].value = list(HON_FAN.keys())[mode_number] self._device.settings["settings.windSpeed"].value = list(HON_FAN.keys())[
self._device.commands["startProgram"].send() mode_number
]
await self._device.commands["settings"].send()
self.async_write_ha_state()
async def async_set_swing_mode(self, swing_mode): async def async_set_swing_mode(self, swing_mode):
horizontal = self._device.settings["windDirectionHorizontal"] horizontal = self._device.settings["settings.windDirectionHorizontal"]
vertical = self._device.settings["windDirectionVertical"] vertical = self._device.settings["settings.windDirectionVertical"]
if swing_mode in [SWING_BOTH, SWING_HORIZONTAL]: if swing_mode in [SWING_BOTH, SWING_HORIZONTAL]:
horizontal.value = "7" horizontal.value = "7"
if swing_mode in [SWING_BOTH, SWING_VERTICAL]: if swing_mode in [SWING_BOTH, SWING_VERTICAL]:
@ -114,30 +126,30 @@ class HonClimateEntity(HonEntity, ClimateEntity):
if swing_mode in [SWING_OFF, SWING_VERTICAL] and horizontal.value == "7": if swing_mode in [SWING_OFF, SWING_VERTICAL] and horizontal.value == "7":
horizontal.value = "0" horizontal.value = "0"
self._attr_swing_mode = swing_mode self._attr_swing_mode = swing_mode
self._device.commands["startProgram"].send() await self._device.commands["settings"].send()
self.async_write_ha_state()
async def async_set_temperature(self, **kwargs): async def async_set_temperature(self, **kwargs):
if (temperature := kwargs.get(ATTR_TEMPERATURE)) is None: if (temperature := kwargs.get(ATTR_TEMPERATURE)) is None:
return False return False
self._device.settings["selTemp"].value = temperature self._device.settings["settings.tempSel"].value = str(int(temperature))
self._device.commands["startProgram"].send() await self._device.commands["settings"].send()
self.async_write_ha_state()
@callback @callback
def _handle_coordinator_update(self, update=True) -> None: def _handle_coordinator_update(self, update=True) -> None:
self._attr_target_temperature = int(float(self._device.get("tempSel"))) self._attr_target_temperature = int(float(self._device.get("tempSel")))
self._attr_current_temperature = float(self._device.get("tempIndoor")) self._attr_current_temperature = float(self._device.get("tempIndoor"))
self._attr_max_temp = self._device.settings["tempSel"].max
self._attr_min_temp = self._device.settings["tempSel"].min
if self._device.get("onOffStatus") == "0": if self._device.get("onOffStatus") == "0":
self._attr_hvac_mode = HVACMode.OFF self._attr_hvac_mode = HVACMode.OFF
else: else:
self._attr_hvac_mode = HON_HVAC_MODE[self._device.get("machMode")] self._attr_hvac_mode = HON_HVAC_MODE[self._device.get("machMode") or "0"]
self._attr_fan_mode = HON_FAN[self._device.settings["windSpeed"].value] self._attr_fan_mode = HON_FAN[self._device.get("windSpeed")]
horizontal = self._device.settings["windDirectionHorizontal"] horizontal = self._device.get("windDirectionHorizontal")
vertical = self._device.settings["windDirectionVertical"] vertical = self._device.get("windDirectionVertical")
if horizontal == "7" and vertical == "8": if horizontal == "7" and vertical == "8":
self._attr_swing_mode = SWING_BOTH self._attr_swing_mode = SWING_BOTH
elif horizontal == "7": elif horizontal == "7":
@ -146,3 +158,5 @@ class HonClimateEntity(HonEntity, ClimateEntity):
self._attr_swing_mode = SWING_VERTICAL self._attr_swing_mode = SWING_VERTICAL
else: else:
self._attr_swing_mode = SWING_OFF self._attr_swing_mode = SWING_OFF
if update:
self.async_write_ha_state()

View File

@ -4,7 +4,6 @@ import voluptuous as vol
from homeassistant import config_entries from homeassistant import config_entries
from homeassistant.const import CONF_EMAIL, CONF_PASSWORD from homeassistant.const import CONF_EMAIL, CONF_PASSWORD
from .const import DOMAIN from .const import DOMAIN
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)

View File

@ -21,7 +21,7 @@ PLATFORMS = [
HON_HVAC_MODE = { HON_HVAC_MODE = {
"0": HVACMode.AUTO, "0": HVACMode.AUTO,
"1": HVACMode.COOL, "1": HVACMode.COOL,
"2": HVACMode.COOL, "2": HVACMode.DRY,
"3": HVACMode.DRY, "3": HVACMode.DRY,
"4": HVACMode.HEAT, "4": HVACMode.HEAT,
"5": HVACMode.FAN_ONLY, "5": HVACMode.FAN_ONLY,
@ -120,6 +120,19 @@ TUMBLE_DRYER_PR_PHASE = {
"19": "WASHING_CMD&CTRL.PHASE_DRYING.TITLE", "19": "WASHING_CMD&CTRL.PHASE_DRYING.TITLE",
"20": "WASHING_CMD&CTRL.PHASE_DRYING.TITLE", "20": "WASHING_CMD&CTRL.PHASE_DRYING.TITLE",
} }
DIRTY_LEVEL = {
"1": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OPTIONS_VALUES_DESCRIPTION.LITTLE",
"2": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OPTIONS_VALUES_DESCRIPTION.NORMAL",
"3": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OPTIONS_VALUES_DESCRIPTION.VERY",
}
STEAM_LEVEL = {
"0": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OPTIONS_VALUES_DESCRIPTION.NO_STEAM",
"1": "WASHING_CMD&CTRL.GUIDED_WASHING_SYMBOLS_FABRICS.COTTON_TITLE",
"2": "WASHING_CMD&CTRL.GUIDED_WASHING_SYMBOLS_FABRICS.DELICATE_TITLE",
"3": "WASHING_CMD&CTRL.GUIDED_WASHING_SYMBOLS_FABRICS.SYNTHETIC_TITLE",
}
DISHWASHER_PR_PHASE = { DISHWASHER_PR_PHASE = {
"0": "WASHING_CMD&CTRL.PHASE_READY.TITLE", "0": "WASHING_CMD&CTRL.PHASE_READY.TITLE",
"1": "WASHING_CMD&CTRL.PHASE_PREWASH.TITLE", "1": "WASHING_CMD&CTRL.PHASE_PREWASH.TITLE",
@ -167,50 +180,6 @@ AC_HUMAN_SENSE = {
"2": "AC.PROGRAM_DETAIL.FOLLOW_TOUCH", "2": "AC.PROGRAM_DETAIL.FOLLOW_TOUCH",
} }
TUMBLE_DRYER_PROGRAMS = [
"hqd_baby_care"
"hqd_bath_towel"
"hqd_bed_sheets"
"hqd_bulky"
"hqd_casual"
"hqd_cold_wind_30"
"hqd_cold_wind_timing"
"hqd_cotton"
"hqd_curtain"
"hqd_delicate"
"hqd_diaper"
"hqd_duvet"
"hqd_feather"
"hqd_hot_wind_timing"
"hqd_hygienic"
"hqd_i_refresh"
"hqd_i_refresh_pro"
"hqd_jacket"
"hqd_jeans"
"hqd_luxury"
"hqd_mix"
"hqd_night_dry"
"hqd_outdoor"
"hqd_precious_cure"
"hqd_quick_20"
"hqd_quick_30"
"hqd_quick_dry"
"hqd_quilt"
"hqd_refresh"
"hqd_school_uniform"
"hqd_shirt"
"hqd_shoes"
"hqd_silk"
"hqd_sports"
"hqd_synthetics"
"hqd_timer"
"hqd_towel"
"hqd_underwear"
"hqd_warm_up"
"hqd_wool"
"hqd_working_suit"
]
PROGRAMS_TD = [ PROGRAMS_TD = [
"active_dry", "active_dry",
"allergy_care", "allergy_care",

View File

@ -6,7 +6,6 @@ from pyhon.appliance import HonAppliance
from homeassistant.helpers.entity import DeviceInfo from homeassistant.helpers.entity import DeviceInfo
from homeassistant.helpers.update_coordinator import CoordinatorEntity from homeassistant.helpers.update_coordinator import CoordinatorEntity
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator from homeassistant.helpers.update_coordinator import DataUpdateCoordinator
from .const import DOMAIN from .const import DOMAIN
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)
@ -20,6 +19,7 @@ class HonEntity(CoordinatorEntity):
self._hon = hass.data[DOMAIN][entry.unique_id] self._hon = hass.data[DOMAIN][entry.unique_id]
self._hass = hass self._hass = hass
self._coordinator = coordinator
self._device = device self._device = device
self._attr_unique_id = self._device.unique_id self._attr_unique_id = self._device.unique_id

View File

@ -6,6 +6,6 @@
"documentation": "https://github.com/Andre0512/hon/", "documentation": "https://github.com/Andre0512/hon/",
"iot_class": "cloud_polling", "iot_class": "cloud_polling",
"issue_tracker": "https://github.com/Andre0512/hon/issues", "issue_tracker": "https://github.com/Andre0512/hon/issues",
"requirements": ["pyhOn==0.10.4"], "requirements": ["pyhOn==0.10.9"],
"version": "0.7.1" "version": "0.8.0-beta.4"
} }

View File

@ -1,10 +1,5 @@
from __future__ import annotations from __future__ import annotations
from pyhon import Hon
from pyhon.parameter.base import HonParameter
from pyhon.parameter.fixed import HonParameterFixed
from pyhon.parameter.range import HonParameterRange
from homeassistant.components.number import ( from homeassistant.components.number import (
NumberEntity, NumberEntity,
NumberEntityDescription, NumberEntityDescription,
@ -13,6 +8,10 @@ from homeassistant.config_entries import ConfigEntry
from homeassistant.const import UnitOfTime, UnitOfTemperature from homeassistant.const import UnitOfTime, UnitOfTemperature
from homeassistant.core import callback from homeassistant.core import callback
from homeassistant.helpers.entity import EntityCategory from homeassistant.helpers.entity import EntityCategory
from pyhon import Hon
from pyhon.parameter.base import HonParameter
from pyhon.parameter.fixed import HonParameterFixed
from pyhon.parameter.range import HonParameterRange
from .const import DOMAIN from .const import DOMAIN
from .hon import HonEntity, HonCoordinator, unique_entities from .hon import HonEntity, HonCoordinator, unique_entities
@ -146,14 +145,29 @@ NUMBERS: dict[str, tuple[NumberEntityDescription, ...]] = {
), ),
"AC": ( "AC": (
NumberEntityDescription( NumberEntityDescription(
key="startProgram.tempSel", key="settings.tempSel",
name="Target Temperature", name="Target Temperature",
entity_category=EntityCategory.CONFIG,
icon="mdi:thermometer", icon="mdi:thermometer",
native_unit_of_measurement=UnitOfTemperature.CELSIUS, native_unit_of_measurement=UnitOfTemperature.CELSIUS,
translation_key="target_temperature", translation_key="target_temperature",
), ),
), ),
"REF": (
NumberEntityDescription(
key="settings.tempSelZ1",
name="Fridge Temperature",
icon="mdi:thermometer",
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
translation_key="fridge_temp_sel",
),
NumberEntityDescription(
key="settings.tempSelZ2",
name="Freezer Temperature",
icon="mdi:thermometer",
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
translation_key="freezer_temp_sel",
),
),
} }
NUMBERS["WD"] = unique_entities(NUMBERS["WM"], NUMBERS["TD"]) NUMBERS["WD"] = unique_entities(NUMBERS["WM"], NUMBERS["TD"])
@ -186,8 +200,6 @@ class HonNumberEntity(HonEntity, NumberEntity):
def __init__(self, hass, coordinator, entry, device, description) -> None: def __init__(self, hass, coordinator, entry, device, description) -> None:
super().__init__(hass, entry, coordinator, device) super().__init__(hass, entry, coordinator, device)
self._coordinator = coordinator
self._device = device
self._data = device.settings[description.key] self._data = device.settings[description.key]
self.entity_description = description self.entity_description = description
self._attr_unique_id = f"{super().unique_id}{description.key}" self._attr_unique_id = f"{super().unique_id}{description.key}"
@ -207,8 +219,8 @@ class HonNumberEntity(HonEntity, NumberEntity):
isinstance(setting, HonParameter) or isinstance(setting, HonParameterFixed) isinstance(setting, HonParameter) or isinstance(setting, HonParameterFixed)
): ):
setting.value = value setting.value = value
if self._device.appliance_type in ["AC"]: if "settings." in self.entity_description.key:
self._device.commands["startProgram"].send() await self._device.commands["settings"].send()
await self.coordinator.async_refresh() await self.coordinator.async_refresh()
@callback @callback
@ -220,3 +232,16 @@ class HonNumberEntity(HonEntity, NumberEntity):
self._attr_native_step = setting.step self._attr_native_step = setting.step
self._attr_native_value = setting.value self._attr_native_value = setting.value
self.async_write_ha_state() self.async_write_ha_state()
@property
def available(self) -> bool:
"""Return True if entity is available."""
if self.entity_category == EntityCategory.CONFIG:
return super().available
else:
return (
super().available
and self._device.get("remoteCtrValid", "1") == "1"
and self._device.get("attributes.lastConnEvent.category")
!= "DISCONNECTED"
)

View File

@ -1,7 +1,6 @@
from __future__ import annotations from __future__ import annotations
import logging import logging
import time
from pyhon import Hon from pyhon import Hon
from pyhon.appliance import HonAppliance from pyhon.appliance import HonAppliance
@ -12,7 +11,6 @@ from homeassistant.config_entries import ConfigEntry
from homeassistant.const import UnitOfTemperature, UnitOfTime, REVOLUTIONS_PER_MINUTE from homeassistant.const import UnitOfTemperature, UnitOfTime, REVOLUTIONS_PER_MINUTE
from homeassistant.core import callback from homeassistant.core import callback
from homeassistant.helpers.entity import EntityCategory from homeassistant.helpers.entity import EntityCategory
from .const import DOMAIN from .const import DOMAIN
from .hon import HonEntity, HonCoordinator, unique_entities from .hon import HonEntity, HonCoordinator, unique_entities
@ -89,21 +87,44 @@ SELECTS = {
entity_category=EntityCategory.CONFIG, entity_category=EntityCategory.CONFIG,
translation_key="programs_dw", translation_key="programs_dw",
), ),
SelectEntityDescription(
key="startProgram.temp",
name="Temperature",
entity_category=EntityCategory.CONFIG,
icon="mdi:thermometer",
unit_of_measurement=UnitOfTemperature.CELSIUS,
translation_key="temperature",
),
SelectEntityDescription(
key="startProgram.remainingTime",
name="Remaining Time",
entity_category=EntityCategory.CONFIG,
icon="mdi:timer",
unit_of_measurement=UnitOfTime.MINUTES,
translation_key="remaining_time",
),
), ),
"AC": ( "AC": (
SelectEntityDescription( SelectEntityDescription(
key="startProgram.program", key="startProgram.program",
name="Program", name="Program",
entity_category=EntityCategory.CONFIG,
translation_key="programs_ac", translation_key="programs_ac",
), ),
SelectEntityDescription( SelectEntityDescription(
key="startProgram.humanSensingStatus", key="settings.humanSensingStatus",
name="Eco Pilot", name="Eco Pilot",
entity_category=EntityCategory.CONFIG, icon="mdi:run",
translation_key="eco_pilot", translation_key="eco_pilot",
), ),
), ),
"REF": (
SelectEntityDescription(
key="startProgram.program",
name="Program",
entity_category=EntityCategory.CONFIG,
translation_key="programs_ref",
),
),
} }
SELECTS["WD"] = unique_entities(SELECTS["WM"], SELECTS["TD"]) SELECTS["WD"] = unique_entities(SELECTS["WM"], SELECTS["TD"])
@ -137,15 +158,15 @@ class HonSelectEntity(HonEntity, SelectEntity):
) -> None: ) -> None:
super().__init__(hass, entry, coordinator, device) super().__init__(hass, entry, coordinator, device)
self._coordinator = coordinator
self._device = device
self.entity_description = description self.entity_description = description
self._attr_unique_id = f"{super().unique_id}{description.key}" self._attr_unique_id = f"{super().unique_id}{description.key}"
if not isinstance(self._device.settings[description.key], HonParameterFixed): if not (setting := self._device.settings.get(description.key)):
self._attr_options: list[str] = device.settings[description.key].values self._attr_options: list[str] = []
elif not isinstance(setting, HonParameterFixed):
self._attr_options: list[str] = setting.values
else: else:
self._attr_options: list[str] = [device.settings[description.key].value] self._attr_options: list[str] = [setting.value]
@property @property
def current_option(self) -> str | None: def current_option(self) -> str | None:
@ -156,8 +177,10 @@ class HonSelectEntity(HonEntity, SelectEntity):
async def async_select_option(self, option: str) -> None: async def async_select_option(self, option: str) -> None:
self._device.settings[self.entity_description.key].value = option self._device.settings[self.entity_description.key].value = option
if self._device.appliance_type in ["AC"]: if "settings." in self.entity_description.key:
self._device.commands["startProgram"].send() await self._device.commands["settings"].send()
elif self._device.appliance_type in ["AC"]:
await self._device.commands["startProgram"].send()
await self.coordinator.async_refresh() await self.coordinator.async_refresh()
@callback @callback
@ -172,3 +195,16 @@ class HonSelectEntity(HonEntity, SelectEntity):
self._attr_options: list[str] = setting.values self._attr_options: list[str] = setting.values
self._attr_native_value = setting.value self._attr_native_value = setting.value
self.async_write_ha_state() self.async_write_ha_state()
@property
def available(self) -> bool:
"""Return True if entity is available."""
if self.entity_category == EntityCategory.CONFIG:
return super().available
else:
return (
super().available
and self._device.get("remoteCtrValid", "1") == "1"
and self._device.get("attributes.lastConnEvent.category")
!= "DISCONNECTED"
)

View File

@ -9,6 +9,7 @@ from homeassistant.components.sensor import (
SensorEntityDescription, SensorEntityDescription,
) )
from homeassistant.config_entries import ConfigEntry from homeassistant.config_entries import ConfigEntry
from homeassistant.const import PERCENTAGE
from homeassistant.const import ( from homeassistant.const import (
REVOLUTIONS_PER_MINUTE, REVOLUTIONS_PER_MINUTE,
UnitOfEnergy, UnitOfEnergy,
@ -21,8 +22,6 @@ from homeassistant.const import (
from homeassistant.core import callback from homeassistant.core import callback
from homeassistant.helpers.entity import EntityCategory from homeassistant.helpers.entity import EntityCategory
from homeassistant.helpers.typing import StateType from homeassistant.helpers.typing import StateType
from homeassistant.const import PERCENTAGE
from . import const from . import const
from .const import DOMAIN from .const import DOMAIN
from .hon import HonCoordinator, HonEntity, unique_entities from .hon import HonCoordinator, HonEntity, unique_entities
@ -161,6 +160,14 @@ SENSORS: dict[str, tuple[SensorEntityDescription, ...]] = {
native_unit_of_measurement=UnitOfMass.KILOGRAMS, native_unit_of_measurement=UnitOfMass.KILOGRAMS,
translation_key="suggested_load", translation_key="suggested_load",
), ),
SensorEntityDescription(
key="temp",
name="Current Temperature",
icon="mdi:thermometer",
state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
translation_key="temperature",
),
), ),
"TD": ( "TD": (
SensorEntityDescription( SensorEntityDescription(
@ -392,6 +399,110 @@ SENSORS: dict[str, tuple[SensorEntityDescription, ...]] = {
options=list(const.DISHWASHER_PR_PHASE), options=list(const.DISHWASHER_PR_PHASE),
), ),
), ),
"AC": (
SensorEntityDescription(
key="tempAirOutdoor",
name="Air Temperature Outdoor",
icon="mdi:thermometer",
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
),
SensorEntityDescription(
key="tempCoilerIndoor",
name="Coiler Temperature Indoor",
icon="mdi:thermometer",
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
),
SensorEntityDescription(
key="tempCoilerOutdoor",
name="Coiler Temperature Outside",
icon="mdi:thermometer",
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
),
SensorEntityDescription(
key="tempDefrostOutdoor",
name="Defrost Temperature Outdoor",
icon="mdi:thermometer",
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
),
SensorEntityDescription(
key="tempInAirOutdoor",
name="In Air Temperature Outdoor",
icon="mdi:thermometer",
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
),
SensorEntityDescription(
key="tempIndoor",
name="Indoor Temperature",
icon="mdi:thermometer",
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
),
SensorEntityDescription(
key="tempOutdoor",
name="Outdoor Temperature",
icon="mdi:thermometer",
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
),
SensorEntityDescription(
key="tempSel",
name="Selected Temperature",
icon="mdi:thermometer",
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
),
),
"REF": (
SensorEntityDescription(
key="humidityEnv",
name="Room Humidity",
icon="mdi:water-percent",
device_class=SensorDeviceClass.HUMIDITY,
native_unit_of_measurement=PERCENTAGE,
state_class=SensorStateClass.MEASUREMENT,
translation_key="humidity",
),
SensorEntityDescription(
key="tempEnv",
name="Room Temperature",
icon="mdi:home-thermometer-outline",
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
translation_key="room_temperature",
),
SensorEntityDescription(
key="tempZ1",
name="Temperature Fridge",
icon="mdi:thermometer",
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
translation_key="fridge_temp",
),
SensorEntityDescription(
key="tempZ2",
name="Temperature Freezer",
icon="mdi:snowflake-thermometer",
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
translation_key="freezer_temp",
),
),
} }
SENSORS["WD"] = unique_entities(SENSORS["WM"], SENSORS["TD"]) SENSORS["WD"] = unique_entities(SENSORS["WM"], SENSORS["TD"])
@ -425,8 +536,6 @@ class HonSensorEntity(HonEntity, SensorEntity):
def __init__(self, hass, coordinator, entry, device, description) -> None: def __init__(self, hass, coordinator, entry, device, description) -> None:
super().__init__(hass, entry, coordinator, device) super().__init__(hass, entry, coordinator, device)
self._coordinator = coordinator
self.entity_description = description self.entity_description = description
self._attr_unique_id = f"{super().unique_id}{description.key}" self._attr_unique_id = f"{super().unique_id}{description.key}"

View File

@ -2,13 +2,14 @@ import logging
from dataclasses import dataclass from dataclasses import dataclass
from typing import Any from typing import Any
from homeassistant.components.switch import SwitchEntityDescription, SwitchEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import EntityCategory
from pyhon import Hon from pyhon import Hon
from pyhon.appliance import HonAppliance from pyhon.appliance import HonAppliance
from pyhon.parameter.range import HonParameterRange from pyhon.parameter.range import HonParameterRange
from homeassistant.components.switch import SwitchEntityDescription, SwitchEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import EntityCategory
from homeassistant.core import callback
from .const import DOMAIN from .const import DOMAIN
from .hon import HonCoordinator, HonEntity, unique_entities from .hon import HonCoordinator, HonEntity, unique_entities
@ -19,6 +20,7 @@ _LOGGER = logging.getLogger(__name__)
class HonSwitchEntityDescriptionMixin: class HonSwitchEntityDescriptionMixin:
turn_on_key: str = "" turn_on_key: str = ""
turn_off_key: str = "" turn_off_key: str = ""
status_key: str = ""
@dataclass @dataclass
@ -61,18 +63,25 @@ SWITCHES: dict[str, tuple[HonSwitchEntityDescription, ...]] = {
translation_key="prewash", translation_key="prewash",
), ),
HonSwitchEntityDescription( HonSwitchEntityDescription(
key="startProgram.autoSoftenerStatus", key="startProgram.permanentPressStatus",
name="Keep Fresh", name="Keep Fresh",
entity_category=EntityCategory.CONFIG, entity_category=EntityCategory.CONFIG,
icon="mdi:refresh-circle", icon="mdi:refresh-circle",
translation_key="keep_fresh", translation_key="keep_fresh",
), ),
HonSwitchEntityDescription(
key="startProgram.autoSoftenerStatus",
name="Auto Dose Softener",
entity_category=EntityCategory.CONFIG,
icon="mdi:teddy-bear",
translation_key="auto_dose_softener",
),
HonSwitchEntityDescription( HonSwitchEntityDescription(
key="startProgram.autoDetergentStatus", key="startProgram.autoDetergentStatus",
name="Auto Dose", name="Auto Dose Detergent",
entity_category=EntityCategory.CONFIG, entity_category=EntityCategory.CONFIG,
icon="mdi:cup", icon="mdi:cup",
translation_key="auto_dose", translation_key="auto_dose_detergent",
), ),
HonSwitchEntityDescription( HonSwitchEntityDescription(
key="startProgram.acquaplus", key="startProgram.acquaplus",
@ -82,28 +91,28 @@ SWITCHES: dict[str, tuple[HonSwitchEntityDescription, ...]] = {
translation_key="acqua_plus", translation_key="acqua_plus",
), ),
HonSwitchEntityDescription( HonSwitchEntityDescription(
key="extraRinse1", key="startProgram.extraRinse1",
name="Extra Rinse 1", name="Extra Rinse 1",
entity_category=EntityCategory.CONFIG, entity_category=EntityCategory.CONFIG,
icon="mdi:numeric-1-box-multiple-outline", icon="mdi:numeric-1-box-multiple-outline",
translation_key="extra_rinse_1", translation_key="extra_rinse_1",
), ),
HonSwitchEntityDescription( HonSwitchEntityDescription(
key="extraRinse2", key="startProgram.extraRinse2",
name="Extra Rinse 2", name="Extra Rinse 2",
entity_category=EntityCategory.CONFIG, entity_category=EntityCategory.CONFIG,
icon="mdi:numeric-2-box-multiple-outline", icon="mdi:numeric-2-box-multiple-outline",
translation_key="extra_rinse_2", translation_key="extra_rinse_2",
), ),
HonSwitchEntityDescription( HonSwitchEntityDescription(
key="extraRinse3", key="startProgram.extraRinse3",
name="Extra Rinse 3", name="Extra Rinse 3",
entity_category=EntityCategory.CONFIG, entity_category=EntityCategory.CONFIG,
icon="mdi:numeric-3-box-multiple-outline", icon="mdi:numeric-3-box-multiple-outline",
translation_key="extra_rinse_3", translation_key="extra_rinse_3",
), ),
HonSwitchEntityDescription( HonSwitchEntityDescription(
key="goodNight", key="startProgram.goodNight",
name="Good Night", name="Good Night",
icon="mdi:weather-night", icon="mdi:weather-night",
entity_category=EntityCategory.CONFIG, entity_category=EntityCategory.CONFIG,
@ -234,66 +243,99 @@ SWITCHES: dict[str, tuple[HonSwitchEntityDescription, ...]] = {
entity_category=EntityCategory.CONFIG, entity_category=EntityCategory.CONFIG,
translation_key="add_dish", translation_key="add_dish",
), ),
HonSwitchEntityDescription(
key="settings.buzzerDisabled",
name="Buzzer Disabled",
icon="mdi:volume-off",
translation_key="buzzer",
),
), ),
"AC": ( "AC": (
HonSwitchEntityDescription( HonSwitchEntityDescription(
key="startProgram.10degreeHeatingStatus", key="settings.10degreeHeatingStatus",
status_key="10degreeHeatingStatus",
name="10° Heating", name="10° Heating",
entity_category=EntityCategory.CONFIG, icon="mdi:heat-wave",
translation_key="10_degree_heating", translation_key="10_degree_heating",
), ),
HonSwitchEntityDescription( HonSwitchEntityDescription(
key="startProgram.echoStatus", key="settings.echoStatus",
status_key="echoStatus",
name="Echo", name="Echo",
entity_category=EntityCategory.CONFIG, icon="mdi:account-voice",
), ),
HonSwitchEntityDescription( HonSwitchEntityDescription(
key="startProgram.ecoMode", key="settings.ecoMode",
name="Eco Mode", name="Eco Mode",
entity_category=EntityCategory.CONFIG,
translation_key="eco_mode", translation_key="eco_mode",
), ),
HonSwitchEntityDescription( HonSwitchEntityDescription(
key="startProgram.healthMode", key="settings.healthMode",
status_key="healthMode",
name="Health Mode", name="Health Mode",
entity_category=EntityCategory.CONFIG, icon="mdi:medication-outline",
), ),
HonSwitchEntityDescription( HonSwitchEntityDescription(
key="startProgram.muteStatus", key="settings.muteStatus",
status_key="muteStatus",
name="Mute", name="Mute",
entity_category=EntityCategory.CONFIG, icon="mdi:volume-off",
translation_key="mute_mode", translation_key="mute_mode",
), ),
HonSwitchEntityDescription( HonSwitchEntityDescription(
key="startProgram.rapidMode", key="settings.rapidMode",
status_key="rapidMode",
name="Rapid Mode", name="Rapid Mode",
entity_category=EntityCategory.CONFIG, icon="mdi:run-fast",
translation_key="rapid_mode", translation_key="rapid_mode",
), ),
HonSwitchEntityDescription( HonSwitchEntityDescription(
key="startProgram.screenDisplayStatus", key="settings.screenDisplayStatus",
status_key="screenDisplayStatus",
name="Screen Display", name="Screen Display",
entity_category=EntityCategory.CONFIG, icon="mdi:monitor-small",
), ),
HonSwitchEntityDescription( HonSwitchEntityDescription(
key="startProgram.selfCleaning56Status", key="settings.selfCleaning56Status",
name="Self Cleaning 56", name="Self Cleaning 56",
entity_category=EntityCategory.CONFIG, icon="mdi:air-filter",
translation_key="self_clean_56", translation_key="self_clean_56",
), ),
HonSwitchEntityDescription( HonSwitchEntityDescription(
key="startProgram.selfCleaningStatus", key="settings.selfCleaningStatus",
status_key="selfCleaningStatus",
name="Self Cleaning", name="Self Cleaning",
entity_category=EntityCategory.CONFIG, icon="mdi:air-filter",
translation_key="self_clean", translation_key="self_clean",
), ),
HonSwitchEntityDescription( HonSwitchEntityDescription(
key="startProgram.silentSleepStatus", key="settings.silentSleepStatus",
status_key="silentSleepStatus",
name="Silent Sleep", name="Silent Sleep",
entity_category=EntityCategory.CONFIG, icon="mdi:bed",
translation_key="silent_mode", translation_key="silent_mode",
), ),
), ),
"REF": (
HonSwitchEntityDescription(
key="settings.intelligenceMode",
name="Auto-Set Mode",
icon="mdi:thermometer-auto",
translation_key="auto_set",
),
HonSwitchEntityDescription(
key="settings.quickModeZ1",
name="Super Freeze",
icon="mdi:snowflake-variant",
translation_key="super_freeze",
),
HonSwitchEntityDescription(
key="settings.quickModeZ2",
name="Super Cool",
icon="mdi:snowflake",
translation_key="super_cool",
),
),
} }
SWITCHES["WD"] = unique_entities(SWITCHES["WD"], SWITCHES["WM"]) SWITCHES["WD"] = unique_entities(SWITCHES["WD"], SWITCHES["WM"])
@ -314,13 +356,21 @@ async def async_setup_entry(hass, entry: ConfigEntry, async_add_entities) -> Non
if descriptions := SWITCHES.get(device.appliance_type): if descriptions := SWITCHES.get(device.appliance_type):
for description in descriptions: for description in descriptions:
if ( if description.entity_category == EntityCategory.CONFIG:
device.get(description.key) is not None if description.key not in device.available_settings:
or description.key in device.available_settings continue
): else:
appliances.extend( if not any(
[HonSwitchEntity(hass, coordinator, entry, device, description)] [
) device.get(description.key) is not None,
description.turn_on_key in list(device.commands),
description.turn_off_key in list(device.commands),
]
):
continue
appliances.extend(
[HonSwitchEntity(hass, coordinator, entry, device, description)]
)
async_add_entities(appliances) async_add_entities(appliances)
@ -337,8 +387,7 @@ class HonSwitchEntity(HonEntity, SwitchEntity):
description: HonSwitchEntityDescription, description: HonSwitchEntityDescription,
) -> None: ) -> None:
super().__init__(hass, entry, coordinator, device) super().__init__(hass, entry, coordinator, device)
self._coordinator = coordinator
self._device = device
self.entity_description = description self.entity_description = description
self._attr_unique_id = f"{super().unique_id}{description.key}" self._attr_unique_id = f"{super().unique_id}{description.key}"
@ -352,30 +401,59 @@ class HonSwitchEntity(HonEntity, SwitchEntity):
or hasattr(setting, "min") or hasattr(setting, "min")
and setting.value != setting.min and setting.value != setting.min
) )
elif self.entity_description.status_key:
return self._device.get(self.entity_description.status_key, "0") == "1"
return self._device.get(self.entity_description.key, False) return self._device.get(self.entity_description.key, False)
async def async_turn_on(self, **kwargs: Any) -> None: async def async_turn_on(self, **kwargs: Any) -> None:
if self.entity_category == EntityCategory.CONFIG: if (
self.entity_category == EntityCategory.CONFIG
or "settings." in self.entity_description.key
):
setting = self._device.settings[self.entity_description.key] setting = self._device.settings[self.entity_description.key]
setting.value = ( setting.value = (
setting.max if isinstance(setting, HonParameterRange) else "1" setting.max if isinstance(setting, HonParameterRange) else "1"
) )
self.async_write_ha_state() self.async_write_ha_state()
if self._device.appliance_type in ["AC"]: if "settings." in self.entity_description.key:
self._device.commands["startProgram"].send() await self._device.commands["settings"].send()
await self.coordinator.async_refresh() await self.coordinator.async_refresh()
else: else:
await self._device.commands[self.entity_description.turn_on_key].send() await self._device.commands[self.entity_description.turn_on_key].send()
async def async_turn_off(self, **kwargs: Any) -> None: async def async_turn_off(self, **kwargs: Any) -> None:
if self.entity_category == EntityCategory.CONFIG: if (
self.entity_category == EntityCategory.CONFIG
or "settings." in self.entity_description.key
):
setting = self._device.settings[self.entity_description.key] setting = self._device.settings[self.entity_description.key]
setting.value = ( setting.value = (
setting.min if isinstance(setting, HonParameterRange) else "0" setting.min if isinstance(setting, HonParameterRange) else "0"
) )
self.async_write_ha_state() self.async_write_ha_state()
if self._device.appliance_type in ["AC"]: if "settings." in self.entity_description.key:
self._device.commands["startProgram"].send() await self._device.commands["settings"].send()
await self.coordinator.async_refresh() await self.coordinator.async_refresh()
else: else:
await self._device.commands[self.entity_description.turn_off_key].send() await self._device.commands[self.entity_description.turn_off_key].send()
@property
def available(self) -> bool:
"""Return True if entity is available."""
if self.entity_category == EntityCategory.CONFIG:
return super().available
else:
return (
super().available
and self._device.get("remoteCtrValid", "1") == "1"
and self._device.get("attributes.lastConnEvent.category")
!= "DISCONNECTED"
)
@callback
def _handle_coordinator_update(self):
if not self.entity_description.status_key:
return
value = self._device.get(self.entity_description.status_key, "0")
self._attr_state = value == "1"
self.async_write_ha_state()

View File

@ -307,6 +307,18 @@
"xxl_load": "XXL náplň", "xxl_load": "XXL náplň",
"zoom_59": "Zoom 59" "zoom_59": "Zoom 59"
} }
},
"room_temperature": {
"name": "Pokojová teplota"
},
"humidity": {
"name": "Vlhkost"
},
"freezer_temp": {
"name": "Teplota mrazničky"
},
"fridge_temp": {
"name": "Teplota chladničky"
} }
}, },
"select": { "select": {
@ -1013,6 +1025,31 @@
"iot_uv_and_fan": "UV + ventilátor", "iot_uv_and_fan": "UV + ventilátor",
"iot_uv_and_heat": "UV + ohřev" "iot_uv_and_heat": "UV + ohřev"
} }
},
"programs_ref": {
"state": {
"auto_set": "AUTOMATICKÉ NASTAVENÍ",
"cheese": "Sýr",
"chiller": "Quick cool",
"cold_drinks": "Soft chill",
"eco": "Eco",
"eco_mode": "Režim Eco",
"fruits_and_veg": "Fruit&Veg",
"fruit_and_veg": "Fruit & Veg",
"holiday": "DOVOLENÁ",
"keep_fresh": "0° Fresh",
"no_mode_selected": "Není vybrán žádný režim",
"quick_cool": "QUICK COOL",
"sea_food": "Ready to cook meal",
"soft_frozen": "Soft freezing",
"super_cool": "SUPER CHLAZENÍ",
"super_freeze": "SUPER MRAZENÍ",
"tea": "Cold drinks or Beverages",
"zero_fresh": "0° Fresh"
}
},
"remaining_time": {
"name": "Zbývající čas"
} }
}, },
"switch": { "switch": {
@ -1105,6 +1142,21 @@
}, },
"good_night": { "good_night": {
"name": "Dobrou noc" "name": "Dobrou noc"
},
"auto_dose_softener": {
"name": "Automatické dávkování Avivážní prostředek"
},
"auto_dose_detergent": {
"name": "Automatické dávkování Prací prostředek"
},
"auto_set": {
"name": "Automatické nastavení"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
} }
}, },
"binary_sensor": { "binary_sensor": {
@ -1182,6 +1234,30 @@
}, },
"auto_dose": { "auto_dose": {
"name": "Automatické dávkování" "name": "Automatické dávkování"
},
"buzzer": {
"name": "Zvuková signalizace konce cyklu"
},
"holiday_mode": {
"name": "Režim Holiday"
},
"auto_set": {
"name": "Automatické nastavení"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
},
"freezer_door": {
"name": "Otevřená dvířka Mraznička"
},
"fridge_door": {
"name": "Otevřená dvířka Chladnička"
},
"filter_replacement": {
"name": "Výměna filtru"
} }
}, },
"number": { "number": {
@ -1214,12 +1290,23 @@
}, },
"steam_level": { "steam_level": {
"name": "Úroveň páry" "name": "Úroveň páry"
},
"freezer_temp_sel": {
"name": "Cílová teplota Mraznička"
},
"fridge_temp_sel": {
"name": "Cílová teplota Chladnička"
} }
}, },
"button": { "button": {
"induction_hob": { "induction_hob": {
"name": "Indukční varná deska" "name": "Indukční varná deska"
} }
},
"climate": {
"air_conditioner": {
"name": "Klimatizační jednotka"
}
} }
}, },
"config": { "config": {

View File

@ -307,6 +307,18 @@
"xxl_load": "XXL-Beladung", "xxl_load": "XXL-Beladung",
"zoom_59": "Zoom 59" "zoom_59": "Zoom 59"
} }
},
"room_temperature": {
"name": "Raumtemperatur"
},
"humidity": {
"name": "Luftfeuchtigkeit"
},
"freezer_temp": {
"name": "Gefrierschrank-Temperatur"
},
"fridge_temp": {
"name": "Temperatur des Kühlschranks"
} }
}, },
"select": { "select": {
@ -1013,6 +1025,31 @@
"iot_uv_and_fan": "UV + Gebläse", "iot_uv_and_fan": "UV + Gebläse",
"iot_uv_and_heat": "UV + Heizen" "iot_uv_and_heat": "UV + Heizen"
} }
},
"programs_ref": {
"state": {
"auto_set": "AUTOMATISCHE EINSTELLUNG",
"cheese": "Käse",
"chiller": "Quick cool",
"cold_drinks": "Soft chill",
"eco": "Eco",
"eco_mode": "Eco-Modus",
"fruits_and_veg": "Obst und Genüse",
"fruit_and_veg": "Fruit & Veg",
"holiday": "URLAUBSFUNKTION",
"keep_fresh": "0° Fresh",
"no_mode_selected": "Kein Modus ausgewählt",
"quick_cool": "SCHNELLKÜHLUNG",
"sea_food": "Ready to cook meal",
"soft_frozen": "Soft freezing",
"super_cool": "SUPER COOL",
"super_freeze": "SUPER FREEZE",
"tea": "Cold drinks or Beverages",
"zero_fresh": "0° Fresh"
}
},
"remaining_time": {
"name": "Verbleibende Zeit"
} }
}, },
"switch": { "switch": {
@ -1105,6 +1142,21 @@
}, },
"good_night": { "good_night": {
"name": "Gute Nacht" "name": "Gute Nacht"
},
"auto_dose_softener": {
"name": "Autodosierung Weichspüler"
},
"auto_dose_detergent": {
"name": "Autodosierung Spülmittel"
},
"auto_set": {
"name": "Auto-Set"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
} }
}, },
"binary_sensor": { "binary_sensor": {
@ -1182,6 +1234,30 @@
}, },
"auto_dose": { "auto_dose": {
"name": "Autodosierung" "name": "Autodosierung"
},
"buzzer": {
"name": "Signalton zum Programmende"
},
"holiday_mode": {
"name": "Holiday-Modus"
},
"auto_set": {
"name": "Auto-Set"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
},
"freezer_door": {
"name": "Tür offen Gefrierschrank"
},
"fridge_door": {
"name": "Tür offen Kühlschrank"
},
"filter_replacement": {
"name": "Filteraustausch"
} }
}, },
"number": { "number": {
@ -1214,12 +1290,23 @@
}, },
"steam_level": { "steam_level": {
"name": "Dampfstufe" "name": "Dampfstufe"
},
"freezer_temp_sel": {
"name": "Zieltemperatur Gefrierschrank"
},
"fridge_temp_sel": {
"name": "Zieltemperatur Kühlschrank"
} }
}, },
"button": { "button": {
"induction_hob": { "induction_hob": {
"name": "Induktionskochfeld" "name": "Induktionskochfeld"
} }
},
"climate": {
"air_conditioner": {
"name": "Klimaanlage"
}
} }
}, },
"config": { "config": {

View File

@ -307,6 +307,18 @@
"xxl_load": "XXL Φορτιο", "xxl_load": "XXL Φορτιο",
"zoom_59": "Zoom 59" "zoom_59": "Zoom 59"
} }
},
"room_temperature": {
"name": "Θερμοκρασία δωματίου"
},
"humidity": {
"name": "Υγρασία"
},
"freezer_temp": {
"name": "Θερμοκρασία καταψύκτη"
},
"fridge_temp": {
"name": "Θερμοκρασία ψυγείου"
} }
}, },
"select": { "select": {
@ -1013,6 +1025,31 @@
"iot_uv_and_fan": "UV + Ανεμιστήρας", "iot_uv_and_fan": "UV + Ανεμιστήρας",
"iot_uv_and_heat": "UV + Θέρμανση" "iot_uv_and_heat": "UV + Θέρμανση"
} }
},
"programs_ref": {
"state": {
"auto_set": "ΑΥΤΌΜΑΤΗ ΡΎΘΜΙΣΗ",
"cheese": "Τυρί",
"chiller": "Quick cool",
"cold_drinks": "Soft chill",
"eco": "Eco",
"eco_mode": "Λειτουργία Eco",
"fruits_and_veg": "ΦΡΟΥΤΑ & ΛΑΧΑΝΙΚΑ",
"fruit_and_veg": "Fruit & Veg",
"holiday": "Ρυθμίστε το ψυγείο στους 17°C και διατηρήστε την κατάψυξη σε λειτουργία για μεγάλο χρονικό διάστημα.",
"keep_fresh": "0° Fresh",
"no_mode_selected": "Δεν επιλέχθηκε λειτουργία",
"quick_cool": "ΓΡΗΓΟΡΗ ΨΥΞΗ",
"sea_food": "Ready to cook meal",
"soft_frozen": "Soft freezing",
"super_cool": "SUPER COOL",
"super_freeze": "SUPER FREEZE",
"tea": "Cold drinks or Beverages",
"zero_fresh": "0° Fresh"
}
},
"remaining_time": {
"name": "Χρόνος που απομένει"
} }
}, },
"switch": { "switch": {
@ -1105,6 +1142,21 @@
}, },
"good_night": { "good_night": {
"name": "Καληνυχτα" "name": "Καληνυχτα"
},
"auto_dose_softener": {
"name": "Αυτόματη Δοσολογία Μαλακτικό"
},
"auto_dose_detergent": {
"name": "Αυτόματη Δοσολογία Απορρυπαντικό"
},
"auto_set": {
"name": "Αυτόματη ρύθμιση"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
} }
}, },
"binary_sensor": { "binary_sensor": {
@ -1182,6 +1234,30 @@
}, },
"auto_dose": { "auto_dose": {
"name": "Αυτόματη Δοσολογία" "name": "Αυτόματη Δοσολογία"
},
"buzzer": {
"name": "Κουδούνισμα τέλους κύκλου"
},
"holiday_mode": {
"name": "Λειτουργια Holiday"
},
"auto_set": {
"name": "Αυτόματη ρύθμιση"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
},
"freezer_door": {
"name": "Πόρτα ανοιχτή Καταψύκτης"
},
"fridge_door": {
"name": "Πόρτα ανοιχτή Ψυγείο"
},
"filter_replacement": {
"name": "Αντικατάσταση φίλτρου"
} }
}, },
"number": { "number": {
@ -1214,12 +1290,23 @@
}, },
"steam_level": { "steam_level": {
"name": "Επίπεδο ατμού" "name": "Επίπεδο ατμού"
},
"freezer_temp_sel": {
"name": "Στοχευμένη θερμοκρασία Καταψύκτης"
},
"fridge_temp_sel": {
"name": "Στοχευμένη θερμοκρασία Ψυγείο"
} }
}, },
"button": { "button": {
"induction_hob": { "induction_hob": {
"name": "Επαγωγική εστία" "name": "Επαγωγική εστία"
} }
},
"climate": {
"air_conditioner": {
"name": "Κλιματιστικό"
}
} }
}, },
"config": { "config": {

View File

@ -366,6 +366,18 @@
"xxl_load": "XXL Load", "xxl_load": "XXL Load",
"zoom_59": "Zoom 59" "zoom_59": "Zoom 59"
} }
},
"room_temperature": {
"name": "Room temperature"
},
"humidity": {
"name": "Humidity"
},
"freezer_temp": {
"name": "Freezer temperature"
},
"fridge_temp": {
"name": "Fridge temperature"
} }
}, },
"switch": { "switch": {
@ -458,6 +470,21 @@
}, },
"good_night": { "good_night": {
"name": "Good Night" "name": "Good Night"
},
"auto_dose_softener": {
"name": "Autodose Softener"
},
"auto_dose_detergent": {
"name": "Autodose Detergent"
},
"auto_set": {
"name": "Auto-Set"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
} }
}, },
"select": { "select": {
@ -1172,6 +1199,32 @@
"iot_uv_and_fan": "UV + Fan", "iot_uv_and_fan": "UV + Fan",
"iot_uv_and_heat": "UV + Heat" "iot_uv_and_heat": "UV + Heat"
} }
},
"programs_ref": {
"state": {
"auto_set": "AUTO-SET",
"cheese": "Cheese",
"chiller": "Quick cool",
"cold_drinks": "Soft chill",
"eco": "Eco",
"eco_mode": "Eco mode",
"fruits_and_veg": "Fruit&Veg",
"fruit_and_veg": "Fruit&Veg",
"holiday": "HOLIDAY",
"keep_fresh": "0° Fresh",
"no_mode_selected": "No mode selected",
"quick_cool": "QUICK COOL",
"sea_food": "Ready to cook meal",
"soft_frozen": "Soft freezing",
"soft_frozen\n": "Soft freezing",
"super_cool": "SUPER COOL",
"super_freeze": "SUPER FREEZE",
"tea": "Cold drinks or Beverages",
"zero_fresh": "0° Fresh"
}
},
"remaining_time": {
"name": "Time remaining"
} }
}, },
"binary_sensor": { "binary_sensor": {
@ -1249,6 +1302,30 @@
}, },
"auto_dose": { "auto_dose": {
"name": "Autodose" "name": "Autodose"
},
"buzzer": {
"name": "Cycle end chime"
},
"holiday_mode": {
"name": "Holiday Mode"
},
"auto_set": {
"name": "Auto-Set"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
},
"freezer_door": {
"name": "Door open Freezer"
},
"fridge_door": {
"name": "Door open Fridge"
},
"filter_replacement": {
"name": "Filter replacement"
} }
}, },
"number": { "number": {
@ -1281,12 +1358,23 @@
}, },
"steam_level": { "steam_level": {
"name": "Steam Level" "name": "Steam Level"
},
"freezer_temp_sel": {
"name": "Target temperature Freezer"
},
"fridge_temp_sel": {
"name": "Target temperature Fridge"
} }
}, },
"button": { "button": {
"induction_hob": { "induction_hob": {
"name": "Induction Hob" "name": "Induction Hob"
} }
},
"climate": {
"air_conditioner": {
"name": "Air conditioner"
}
} }
} }
} }

View File

@ -307,6 +307,18 @@
"xxl_load": "Carga XXL", "xxl_load": "Carga XXL",
"zoom_59": "Zoom 59" "zoom_59": "Zoom 59"
} }
},
"room_temperature": {
"name": "Temperatura ambiente"
},
"humidity": {
"name": "Humedad"
},
"freezer_temp": {
"name": "Temperatura del congelador"
},
"fridge_temp": {
"name": "Temperatura del frigorífico"
} }
}, },
"select": { "select": {
@ -1013,6 +1025,31 @@
"iot_uv_and_fan": "UV + Ventilador", "iot_uv_and_fan": "UV + Ventilador",
"iot_uv_and_heat": "UV + Calor" "iot_uv_and_heat": "UV + Calor"
} }
},
"programs_ref": {
"state": {
"auto_set": "AJUSTE AUTOMÁTICO",
"cheese": "Queso",
"chiller": "Quick cool",
"cold_drinks": "Soft chill",
"eco": "Eco",
"eco_mode": "Modo Eco",
"fruits_and_veg": "Frutas Y Verduras",
"fruit_and_veg": "Frutas Y Verduras",
"holiday": "VACACIONES",
"keep_fresh": "0° Fresh",
"no_mode_selected": "No se ha seleccionado ningún modo",
"quick_cool": "QUICK COOL",
"sea_food": "Ready to cook meal",
"soft_frozen": "Soft freezing",
"super_cool": "SUPER COOL",
"super_freeze": "SUPER FREEZE",
"tea": "Cold drinks or Beverages",
"zero_fresh": "0° Fresh"
}
},
"remaining_time": {
"name": "Tiempo restante"
} }
}, },
"switch": { "switch": {
@ -1105,6 +1142,21 @@
}, },
"good_night": { "good_night": {
"name": "Buenas noches" "name": "Buenas noches"
},
"auto_dose_softener": {
"name": "Dosificación automática Suavizante"
},
"auto_dose_detergent": {
"name": "Dosificación automática Detergente"
},
"auto_set": {
"name": "Auto-Set"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
} }
}, },
"binary_sensor": { "binary_sensor": {
@ -1182,6 +1234,30 @@
}, },
"auto_dose": { "auto_dose": {
"name": "Dosificación automática" "name": "Dosificación automática"
},
"buzzer": {
"name": "Campana de fin de ciclo"
},
"holiday_mode": {
"name": "Modo Holiday"
},
"auto_set": {
"name": "Auto-Set"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
},
"freezer_door": {
"name": "Puerta abierta Congelador"
},
"fridge_door": {
"name": "Puerta abierta Frigorífico"
},
"filter_replacement": {
"name": "Sustitución del filtro"
} }
}, },
"number": { "number": {
@ -1214,12 +1290,23 @@
}, },
"steam_level": { "steam_level": {
"name": "Nivel de vapor" "name": "Nivel de vapor"
},
"freezer_temp_sel": {
"name": "Temperatura deseada Congelador"
},
"fridge_temp_sel": {
"name": "Temperatura deseada Frigorífico"
} }
}, },
"button": { "button": {
"induction_hob": { "induction_hob": {
"name": "Placa de inducción" "name": "Placa de inducción"
} }
},
"climate": {
"air_conditioner": {
"name": "Aire acondicionado"
}
} }
}, },
"config": { "config": {

View File

@ -307,6 +307,18 @@
"xxl_load": "Charge XXL", "xxl_load": "Charge XXL",
"zoom_59": "Zoom 59" "zoom_59": "Zoom 59"
} }
},
"room_temperature": {
"name": "Température ambiante"
},
"humidity": {
"name": "Humidité"
},
"freezer_temp": {
"name": "Température du congélateur"
},
"fridge_temp": {
"name": "Température du réfrigérateur"
} }
}, },
"select": { "select": {
@ -1013,6 +1025,31 @@
"iot_uv_and_fan": "UV + ventilateur", "iot_uv_and_fan": "UV + ventilateur",
"iot_uv_and_heat": "UV + Chaleur" "iot_uv_and_heat": "UV + Chaleur"
} }
},
"programs_ref": {
"state": {
"auto_set": "AUTO-SET",
"cheese": "Fromage",
"chiller": "Quick cool",
"cold_drinks": "Soft chill",
"eco": "Eco",
"eco_mode": "Mode Eco",
"fruits_and_veg": "Fruit&Veg",
"fruit_and_veg": "Fruit & Veg",
"holiday": "HOLIDAY",
"keep_fresh": "0° Fresh",
"no_mode_selected": "Aucun mode sélectionné",
"quick_cool": "QUICK COOL",
"sea_food": "Ready to cook meal",
"soft_frozen": "Soft freezing",
"super_cool": "SUPER COOL",
"super_freeze": "SUPER FREEZE",
"tea": "Cold drinks or Beverages",
"zero_fresh": "0° Fresh"
}
},
"remaining_time": {
"name": "Temps restant"
} }
}, },
"switch": { "switch": {
@ -1105,6 +1142,21 @@
}, },
"good_night": { "good_night": {
"name": "Bonne nuit" "name": "Bonne nuit"
},
"auto_dose_softener": {
"name": "Dose automatique Adoucissant"
},
"auto_dose_detergent": {
"name": "Dose automatique Lessive"
},
"auto_set": {
"name": "Réglage automatique"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
} }
}, },
"binary_sensor": { "binary_sensor": {
@ -1182,6 +1234,30 @@
}, },
"auto_dose": { "auto_dose": {
"name": "Dose automatique" "name": "Dose automatique"
},
"buzzer": {
"name": "Sonnerie de fin de cycle"
},
"holiday_mode": {
"name": "Mode Holiday"
},
"auto_set": {
"name": "Réglage automatique"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
},
"freezer_door": {
"name": "Porte ouverte Congélateur"
},
"fridge_door": {
"name": "Porte ouverte Réfrigérateur"
},
"filter_replacement": {
"name": "Remplacement du filtre"
} }
}, },
"number": { "number": {
@ -1214,12 +1290,23 @@
}, },
"steam_level": { "steam_level": {
"name": "Niveau de vapeur" "name": "Niveau de vapeur"
},
"freezer_temp_sel": {
"name": "Température cible Congélateur"
},
"fridge_temp_sel": {
"name": "Température cible Réfrigérateur"
} }
}, },
"button": { "button": {
"induction_hob": { "induction_hob": {
"name": "Table de cuisson à induction" "name": "Table de cuisson à induction"
} }
},
"climate": {
"air_conditioner": {
"name": "Climatiseur"
}
} }
}, },
"config": { "config": {

View File

@ -188,6 +188,18 @@
"hqd_working_suit": "Working suit", "hqd_working_suit": "Working suit",
"iot_dry_synthetic_dry": "סינתטי יבש" "iot_dry_synthetic_dry": "סינתטי יבש"
} }
},
"room_temperature": {
"name": "Room temperature"
},
"humidity": {
"name": "Humidity"
},
"freezer_temp": {
"name": "Freezer temperature"
},
"fridge_temp": {
"name": "Fridge temperature"
} }
}, },
"select": { "select": {
@ -477,6 +489,20 @@
"state": { "state": {
"iot_simple_start": "התחל עכשיו" "iot_simple_start": "התחל עכשיו"
} }
},
"programs_ref": {
"state": {
"chiller": "Quick cool",
"cold_drinks": "Soft chill",
"fruit_and_veg": "Fruit & Veg",
"keep_fresh": "0° Fresh",
"sea_food": "Ready to cook meal",
"soft_frozen": "Soft freezing",
"tea": "Cold drinks or Beverages"
}
},
"remaining_time": {
"name": "זמן שנותר"
} }
}, },
"switch": { "switch": {
@ -569,6 +595,21 @@
}, },
"good_night": { "good_night": {
"name": "לילה טוב" "name": "לילה טוב"
},
"auto_dose_softener": {
"name": "מינון אוטומטי מרכך"
},
"auto_dose_detergent": {
"name": "מינון אוטומטי חומר ניקוי"
},
"auto_set": {
"name": "Auto-Set"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
} }
}, },
"binary_sensor": { "binary_sensor": {
@ -646,6 +687,30 @@
}, },
"auto_dose": { "auto_dose": {
"name": "מינון אוטומטי" "name": "מינון אוטומטי"
},
"buzzer": {
"name": "Cycle end chime"
},
"holiday_mode": {
"name": "Holiday Mode"
},
"auto_set": {
"name": "Auto-Set"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
},
"freezer_door": {
"name": "Door open Freezer"
},
"fridge_door": {
"name": "Door open Fridge"
},
"filter_replacement": {
"name": "Filter replacement"
} }
}, },
"number": { "number": {
@ -678,12 +743,23 @@
}, },
"steam_level": { "steam_level": {
"name": "מפלס קיטור" "name": "מפלס קיטור"
},
"freezer_temp_sel": {
"name": "Target temperature Freezer"
},
"fridge_temp_sel": {
"name": "Target temperature Fridge"
} }
}, },
"button": { "button": {
"induction_hob": { "induction_hob": {
"name": "Induction Hob" "name": "Induction Hob"
} }
},
"climate": {
"air_conditioner": {
"name": "Air conditioner"
}
} }
}, },
"config": { "config": {

View File

@ -307,6 +307,18 @@
"xxl_load": "XXL kapacitet", "xxl_load": "XXL kapacitet",
"zoom_59": "Zoom 59" "zoom_59": "Zoom 59"
} }
},
"room_temperature": {
"name": "Sobna temperatura"
},
"humidity": {
"name": "Vlažnost"
},
"freezer_temp": {
"name": "Temperatura zamrzivača"
},
"fridge_temp": {
"name": "Temperatura hladnjaka"
} }
}, },
"select": { "select": {
@ -1013,6 +1025,31 @@
"iot_uv_and_fan": "UV + ventilator", "iot_uv_and_fan": "UV + ventilator",
"iot_uv_and_heat": "UV + grijanje" "iot_uv_and_heat": "UV + grijanje"
} }
},
"programs_ref": {
"state": {
"auto_set": "AUTOMATSKA POSTAVKA",
"cheese": "Sir",
"chiller": "Quick cool",
"cold_drinks": "Soft chill",
"eco": "Eco",
"eco_mode": "Način rada Eco",
"fruits_and_veg": "Voće i Povrće",
"fruit_and_veg": "Fruit & Veg",
"holiday": "ODMOR",
"keep_fresh": "0° Fresh",
"no_mode_selected": "Nije odabran način rada",
"quick_cool": "BRZO HLAĐENJE",
"sea_food": "Ready to cook meal",
"soft_frozen": "Soft freezing",
"super_cool": "SUPER HLAĐENJE",
"super_freeze": "SUPER ZAMRZAVANJE",
"tea": "Hladna pića i napitci",
"zero_fresh": "0° Fresh"
}
},
"remaining_time": {
"name": "Preostalo vrijeme"
} }
}, },
"switch": { "switch": {
@ -1105,6 +1142,21 @@
}, },
"good_night": { "good_night": {
"name": "Good Night" "name": "Good Night"
},
"auto_dose_softener": {
"name": "Automatsko doziranje Omekšivač"
},
"auto_dose_detergent": {
"name": "Automatsko doziranje Deterdžent"
},
"auto_set": {
"name": "Automatsko postavljanje"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
} }
}, },
"binary_sensor": { "binary_sensor": {
@ -1182,6 +1234,30 @@
}, },
"auto_dose": { "auto_dose": {
"name": "Automatsko doziranje" "name": "Automatsko doziranje"
},
"buzzer": {
"name": "Zvono za završetak ciklusa"
},
"holiday_mode": {
"name": "Način rada Holiday"
},
"auto_set": {
"name": "Automatsko postavljanje"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
},
"freezer_door": {
"name": "Otvorena vrata Zamrzivač"
},
"fridge_door": {
"name": "Otvorena vrata Hladnjak"
},
"filter_replacement": {
"name": "Zamjena filtra"
} }
}, },
"number": { "number": {
@ -1214,12 +1290,23 @@
}, },
"steam_level": { "steam_level": {
"name": "Razina pare" "name": "Razina pare"
},
"freezer_temp_sel": {
"name": "Ciljana temperatura Zamrzivač"
},
"fridge_temp_sel": {
"name": "Ciljana temperatura Hladnjak"
} }
}, },
"button": { "button": {
"induction_hob": { "induction_hob": {
"name": "Indukcijska ploča za kuhanje" "name": "Indukcijska ploča za kuhanje"
} }
},
"climate": {
"air_conditioner": {
"name": "Klimatizacijski uređaj"
}
} }
}, },
"config": { "config": {

View File

@ -359,6 +359,18 @@
"xxl_load": "Carico XXL", "xxl_load": "Carico XXL",
"zoom_59": "Zoom 59" "zoom_59": "Zoom 59"
} }
},
"room_temperature": {
"name": "Temperatura ambiente"
},
"humidity": {
"name": "Umidità"
},
"freezer_temp": {
"name": "Temperatura del congelatore"
},
"fridge_temp": {
"name": "Temperatura del frigorifero"
} }
}, },
"select": { "select": {
@ -1065,6 +1077,31 @@
"iot_uv_and_fan": "UV + Ventola", "iot_uv_and_fan": "UV + Ventola",
"iot_uv_and_heat": "UV + Caldo" "iot_uv_and_heat": "UV + Caldo"
} }
},
"programs_ref": {
"state": {
"auto_set": "AUTO-SET",
"cheese": "Formaggio",
"chiller": "Quick cool",
"cold_drinks": "Soft chill",
"eco": "Eco",
"eco_mode": "Modalità Eco",
"fruits_and_veg": "Fruit&Veg",
"fruit_and_veg": "Fruit & Veg",
"holiday": "HOLIDAY",
"keep_fresh": "0° Fresh",
"no_mode_selected": "Nessuna modalità selezionata",
"quick_cool": " QUICK COOL",
"sea_food": "Ready to cook meal",
"soft_frozen": "Soft freezing",
"super_cool": "SUPER COOL",
"super_freeze": "SUPER FREEZE",
"tea": "Cold drinks or Beverages",
"zero_fresh": "0° Fresh"
}
},
"remaining_time": {
"name": "Tempo rimanente"
} }
}, },
"switch": { "switch": {
@ -1157,6 +1194,21 @@
}, },
"good_night": { "good_night": {
"name": "Buona notte" "name": "Buona notte"
},
"auto_dose_softener": {
"name": "Autodose Ammorbidente"
},
"auto_dose_detergent": {
"name": "Autodose Detergente"
},
"auto_set": {
"name": "Impostazione automatica"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
} }
}, },
"binary_sensor": { "binary_sensor": {
@ -1234,6 +1286,30 @@
}, },
"auto_dose": { "auto_dose": {
"name": "Autodose" "name": "Autodose"
},
"buzzer": {
"name": "Avviso di fine ciclo"
},
"holiday_mode": {
"name": "Modalità Holiday"
},
"auto_set": {
"name": "Impostazione automatica"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
},
"freezer_door": {
"name": "Porta aperta Congelatore"
},
"fridge_door": {
"name": "Porta aperta Frigorifero"
},
"filter_replacement": {
"name": "Sostituzione filtro"
} }
}, },
"number": { "number": {
@ -1266,12 +1342,23 @@
}, },
"steam_level": { "steam_level": {
"name": "Livello vapore" "name": "Livello vapore"
},
"freezer_temp_sel": {
"name": "Temperatura target Congelatore"
},
"fridge_temp_sel": {
"name": "Temperatura target Frigorifero"
} }
}, },
"button": { "button": {
"induction_hob": { "induction_hob": {
"name": "Piano cottura a induzione" "name": "Piano cottura a induzione"
} }
},
"climate": {
"air_conditioner": {
"name": "Condizionatore"
}
} }
} }
} }

View File

@ -307,6 +307,18 @@
"xxl_load": "XXL Lading", "xxl_load": "XXL Lading",
"zoom_59": "Zoom 59" "zoom_59": "Zoom 59"
} }
},
"room_temperature": {
"name": "Omgevingstemperatuur"
},
"humidity": {
"name": "Luchtvochtigheid"
},
"freezer_temp": {
"name": "Vriezertemperatuur"
},
"fridge_temp": {
"name": "Koelkasttemperatuur"
} }
}, },
"select": { "select": {
@ -1013,6 +1025,31 @@
"iot_uv_and_fan": "UV + Hetelucht", "iot_uv_and_fan": "UV + Hetelucht",
"iot_uv_and_heat": "UV + Warmte" "iot_uv_and_heat": "UV + Warmte"
} }
},
"programs_ref": {
"state": {
"auto_set": "AUTO-SET",
"cheese": "Kaas",
"chiller": "Quick cool",
"cold_drinks": "Soft chill",
"eco": "Eco",
"eco_mode": "Eco-modus",
"fruits_and_veg": "Fruit&Veg",
"fruit_and_veg": "Fruit & Veg",
"holiday": "HOLIDAY",
"keep_fresh": "0° Fresh",
"no_mode_selected": "Geen modus geselecteerd",
"quick_cool": "QUICK KOEL",
"sea_food": "Ready to cook meal",
"soft_frozen": "Soft freezing",
"super_cool": "SUPER COOL",
"super_freeze": "SUPER FREEZE",
"tea": "Cold drinks or Beverages",
"zero_fresh": "0° Fresh"
}
},
"remaining_time": {
"name": "Resterende tijd"
} }
}, },
"switch": { "switch": {
@ -1105,6 +1142,21 @@
}, },
"good_night": { "good_night": {
"name": "Goede nacht" "name": "Goede nacht"
},
"auto_dose_softener": {
"name": "Automatisch doseren Wasverzachter"
},
"auto_dose_detergent": {
"name": "Automatisch doseren Wasmiddel"
},
"auto_set": {
"name": "Automatisch instellen"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
} }
}, },
"binary_sensor": { "binary_sensor": {
@ -1182,6 +1234,30 @@
}, },
"auto_dose": { "auto_dose": {
"name": "Automatisch doseren" "name": "Automatisch doseren"
},
"buzzer": {
"name": "Bel voor einde cyclus"
},
"holiday_mode": {
"name": "Holiday-modus (Vakantie)"
},
"auto_set": {
"name": "Automatisch instellen"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
},
"freezer_door": {
"name": "Deur open Vriezer"
},
"fridge_door": {
"name": "Deur open Koelkast"
},
"filter_replacement": {
"name": "Filter vervangen"
} }
}, },
"number": { "number": {
@ -1214,12 +1290,23 @@
}, },
"steam_level": { "steam_level": {
"name": "Stoomniveau" "name": "Stoomniveau"
},
"freezer_temp_sel": {
"name": "Doeltemperatuur Vriezer"
},
"fridge_temp_sel": {
"name": "Doeltemperatuur Koelkast"
} }
}, },
"button": { "button": {
"induction_hob": { "induction_hob": {
"name": "Inductiekookplaat" "name": "Inductiekookplaat"
} }
},
"climate": {
"air_conditioner": {
"name": "Airconditioner"
}
} }
}, },
"config": { "config": {

View File

@ -307,6 +307,18 @@
"xxl_load": "XXL Load", "xxl_load": "XXL Load",
"zoom_59": "Zoom 59" "zoom_59": "Zoom 59"
} }
},
"room_temperature": {
"name": "Temperatura pokojowa"
},
"humidity": {
"name": "Wilgotność"
},
"freezer_temp": {
"name": "Temperatura zamrażarki"
},
"fridge_temp": {
"name": "Temperatura lodówki"
} }
}, },
"select": { "select": {
@ -1013,6 +1025,31 @@
"iot_uv_and_fan": "UV + wentylator", "iot_uv_and_fan": "UV + wentylator",
"iot_uv_and_heat": "UV + podgrzewanie" "iot_uv_and_heat": "UV + podgrzewanie"
} }
},
"programs_ref": {
"state": {
"auto_set": "AUTO-SET",
"cheese": "Ser",
"chiller": "Quick cool",
"cold_drinks": "Soft chill",
"eco": "Eco",
"eco_mode": "Tryb Eco",
"fruits_and_veg": "Fruit&Veg",
"fruit_and_veg": "Fruit & Veg",
"holiday": "HOLIDAY",
"keep_fresh": "0° Fresh",
"no_mode_selected": "Nie wybrano żadnego trybu",
"quick_cool": "QUICK COOL",
"sea_food": "Ready to cook meal",
"soft_frozen": "Soft freezing",
"super_cool": "SUPER COOL",
"super_freeze": "SUPER FREEZE",
"tea": "Cold drinks or Beverages",
"zero_fresh": "0° Fresh"
}
},
"remaining_time": {
"name": "Pozostały czas"
} }
}, },
"switch": { "switch": {
@ -1105,6 +1142,21 @@
}, },
"good_night": { "good_night": {
"name": "Dobranoc" "name": "Dobranoc"
},
"auto_dose_softener": {
"name": "Automatyczne dozowanie Środek zmiękczający"
},
"auto_dose_detergent": {
"name": "Automatyczne dozowanie Detergent"
},
"auto_set": {
"name": "Ustawianie automatyczne"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
} }
}, },
"binary_sensor": { "binary_sensor": {
@ -1182,6 +1234,30 @@
}, },
"auto_dose": { "auto_dose": {
"name": "Automatyczne dozowanie" "name": "Automatyczne dozowanie"
},
"buzzer": {
"name": "Sygnał dźwiękowy końca cyklu"
},
"holiday_mode": {
"name": "Tryb Holiday"
},
"auto_set": {
"name": "Ustawianie automatyczne"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
},
"freezer_door": {
"name": "Drzwi otwarte Zamrażarka"
},
"fridge_door": {
"name": "Drzwi otwarte Lodówka"
},
"filter_replacement": {
"name": "Wymiana filtra"
} }
}, },
"number": { "number": {
@ -1214,12 +1290,23 @@
}, },
"steam_level": { "steam_level": {
"name": "Poziom pary" "name": "Poziom pary"
},
"freezer_temp_sel": {
"name": "Temperatura docelowa Zamrażarka"
},
"fridge_temp_sel": {
"name": "Temperatura docelowa Lodówka"
} }
}, },
"button": { "button": {
"induction_hob": { "induction_hob": {
"name": "Płyta indukcyjna" "name": "Płyta indukcyjna"
} }
},
"climate": {
"air_conditioner": {
"name": "Klimatyzator"
}
} }
}, },
"config": { "config": {

View File

@ -307,6 +307,18 @@
"xxl_load": "Carga XXL", "xxl_load": "Carga XXL",
"zoom_59": "Zoom 59" "zoom_59": "Zoom 59"
} }
},
"room_temperature": {
"name": "Temperatura ambiente"
},
"humidity": {
"name": "Humidade"
},
"freezer_temp": {
"name": "Temperatura do congelador"
},
"fridge_temp": {
"name": "Temperatura do frigorífico"
} }
}, },
"select": { "select": {
@ -1013,6 +1025,31 @@
"iot_uv_and_fan": "UV + Ventilação", "iot_uv_and_fan": "UV + Ventilação",
"iot_uv_and_heat": "UV + Calor" "iot_uv_and_heat": "UV + Calor"
} }
},
"programs_ref": {
"state": {
"auto_set": "AUTO-SET",
"cheese": "Queijo",
"chiller": "Quick cool",
"cold_drinks": "Soft chill",
"eco": "Eco",
"eco_mode": "Modo Eco",
"fruits_and_veg": "Fruit&Veg",
"fruit_and_veg": "Fruit & Veg",
"holiday": "HOLIDAY",
"keep_fresh": "0° Fresh",
"no_mode_selected": "Nenhum modo selecionado",
"quick_cool": "QUICK COOL",
"sea_food": "Ready to cook meal",
"soft_frozen": "Soft freezing",
"super_cool": "SUPER COOL",
"super_freeze": "SUPER FREEZE",
"tea": "Cold drinks or Beverages",
"zero_fresh": "0° Fresh"
}
},
"remaining_time": {
"name": "Tempo restante"
} }
}, },
"switch": { "switch": {
@ -1105,6 +1142,21 @@
}, },
"good_night": { "good_night": {
"name": "Boa Noite" "name": "Boa Noite"
},
"auto_dose_softener": {
"name": "Autodosagem Amaciador"
},
"auto_dose_detergent": {
"name": "Autodosagem Detergente"
},
"auto_set": {
"name": "Ajuste automático"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
} }
}, },
"binary_sensor": { "binary_sensor": {
@ -1182,6 +1234,30 @@
}, },
"auto_dose": { "auto_dose": {
"name": "Autodosagem" "name": "Autodosagem"
},
"buzzer": {
"name": "Besouro de fim de ciclo"
},
"holiday_mode": {
"name": "Modo Holiday"
},
"auto_set": {
"name": "Ajuste automático"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
},
"freezer_door": {
"name": "Porta aberta Congelador"
},
"fridge_door": {
"name": "Porta aberta Frigorífico"
},
"filter_replacement": {
"name": "Substituição do filtro"
} }
}, },
"number": { "number": {
@ -1214,12 +1290,23 @@
}, },
"steam_level": { "steam_level": {
"name": "Nível de vapor" "name": "Nível de vapor"
},
"freezer_temp_sel": {
"name": "Temperatura alvo Congelador"
},
"fridge_temp_sel": {
"name": "Temperatura alvo Frigorífico"
} }
}, },
"button": { "button": {
"induction_hob": { "induction_hob": {
"name": "Placa de indução" "name": "Placa de indução"
} }
},
"climate": {
"air_conditioner": {
"name": "Ar Condicionado"
}
} }
}, },
"config": { "config": {

View File

@ -307,6 +307,18 @@
"xxl_load": "Încărcare XXL", "xxl_load": "Încărcare XXL",
"zoom_59": "Zoom 59" "zoom_59": "Zoom 59"
} }
},
"room_temperature": {
"name": "Temperatura camerei"
},
"humidity": {
"name": "Umiditate"
},
"freezer_temp": {
"name": "Temperatura congelatorului"
},
"fridge_temp": {
"name": "Temperatura frigiderului"
} }
}, },
"select": { "select": {
@ -1013,6 +1025,31 @@
"iot_uv_and_fan": "UV + ventilator", "iot_uv_and_fan": "UV + ventilator",
"iot_uv_and_heat": "UV + încălzire" "iot_uv_and_heat": "UV + încălzire"
} }
},
"programs_ref": {
"state": {
"auto_set": "AUTO-SET (Setare automată)",
"cheese": "Brânză",
"chiller": "Quick cool",
"cold_drinks": "Soft chill",
"eco": "Eco",
"eco_mode": "Modul Eco",
"fruits_and_veg": "Fruit&Veg (Fructe și legume)",
"fruit_and_veg": "Fruit & Veg",
"holiday": "HOLIDAY (Perioadă de neutilizare)",
"keep_fresh": "0° Fresh",
"no_mode_selected": "Niciun mod selectat",
"quick_cool": "QUICK COOL",
"sea_food": "Ready to cook meal",
"soft_frozen": "Soft freezing",
"super_cool": "SUPER COOL (Răcire rapidă)",
"super_freeze": "SUPER FREEZE (Congelare rapidă)",
"tea": "Cold drinks or Beverages",
"zero_fresh": "0° Fresh"
}
},
"remaining_time": {
"name": "Timp rămas"
} }
}, },
"switch": { "switch": {
@ -1105,6 +1142,21 @@
}, },
"good_night": { "good_night": {
"name": "Noapte bună" "name": "Noapte bună"
},
"auto_dose_softener": {
"name": "Autodozare Balsam"
},
"auto_dose_detergent": {
"name": "Autodozare Detergent"
},
"auto_set": {
"name": "Setare automată"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
} }
}, },
"binary_sensor": { "binary_sensor": {
@ -1182,6 +1234,30 @@
}, },
"auto_dose": { "auto_dose": {
"name": "Autodozare" "name": "Autodozare"
},
"buzzer": {
"name": "Sonerie la finalul ciclului"
},
"holiday_mode": {
"name": "Mod Holiday"
},
"auto_set": {
"name": "Setare automată"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
},
"freezer_door": {
"name": "Ușă deschisă Congelator"
},
"fridge_door": {
"name": "Ușă deschisă Frigider"
},
"filter_replacement": {
"name": "Înlocuirea filtrului"
} }
}, },
"number": { "number": {
@ -1214,12 +1290,23 @@
}, },
"steam_level": { "steam_level": {
"name": "Nivel abur" "name": "Nivel abur"
},
"freezer_temp_sel": {
"name": "Temperatură vizată Congelator"
},
"fridge_temp_sel": {
"name": "Temperatură vizată Frigider"
} }
}, },
"button": { "button": {
"induction_hob": { "induction_hob": {
"name": "Plita cu inducție" "name": "Plita cu inducție"
} }
},
"climate": {
"air_conditioner": {
"name": "Aer condiționat"
}
} }
}, },
"config": { "config": {

View File

@ -307,6 +307,18 @@
"xxl_load": "Объемные вещи", "xxl_load": "Объемные вещи",
"zoom_59": "Zoom 59 (Зум 59)" "zoom_59": "Zoom 59 (Зум 59)"
} }
},
"room_temperature": {
"name": "Комнатная температура"
},
"humidity": {
"name": "Влажность"
},
"freezer_temp": {
"name": "Температура в морозильном отделении"
},
"fridge_temp": {
"name": "Температура в холодильнике"
} }
}, },
"select": { "select": {
@ -1013,6 +1025,31 @@
"iot_uv_and_fan": "УФ + Вентилятор", "iot_uv_and_fan": "УФ + Вентилятор",
"iot_uv_and_heat": "УФ + Нагрев" "iot_uv_and_heat": "УФ + Нагрев"
} }
},
"programs_ref": {
"state": {
"auto_set": "АВТОМАТИЧЕСКАЯ НАСТРОЙКА",
"cheese": "Сыр",
"chiller": "Quick cool",
"cold_drinks": "Soft chill",
"eco": "Eco",
"eco_mode": "Режим Eco",
"fruits_and_veg": "Фрукты и овощи",
"fruit_and_veg": "Fruit & Veg",
"holiday": "HOLIDAY",
"keep_fresh": "0° Fresh",
"no_mode_selected": "Режим не выбран",
"quick_cool": " БЫСТРОЕ ОХЛАЖДЕНИЕ",
"sea_food": "Ready to cook meal",
"soft_frozen": "Soft freezing",
"super_cool": "SUPER COOL",
"super_freeze": "SUPER FREEZE",
"tea": "Cold drinks or Beverages",
"zero_fresh": "0° Fresh"
}
},
"remaining_time": {
"name": "Оставшееся время"
} }
}, },
"switch": { "switch": {
@ -1105,6 +1142,21 @@
}, },
"good_night": { "good_night": {
"name": "Спокойной ночи" "name": "Спокойной ночи"
},
"auto_dose_softener": {
"name": "Автодозирование Кондиционер"
},
"auto_dose_detergent": {
"name": "Автодозирование Средство для стирки"
},
"auto_set": {
"name": "Автоматическая установка"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
} }
}, },
"binary_sensor": { "binary_sensor": {
@ -1182,6 +1234,30 @@
}, },
"auto_dose": { "auto_dose": {
"name": "Автодозирование" "name": "Автодозирование"
},
"buzzer": {
"name": "Звуковой сигнал окончания цикла"
},
"holiday_mode": {
"name": "Режим Holiday (режим отпуска)"
},
"auto_set": {
"name": "Автоматическая установка"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
},
"freezer_door": {
"name": "Дверца открыта Морозильник"
},
"fridge_door": {
"name": "Дверца открыта Холодильник"
},
"filter_replacement": {
"name": "Замена фильтра"
} }
}, },
"number": { "number": {
@ -1214,12 +1290,23 @@
}, },
"steam_level": { "steam_level": {
"name": "Уровень пара" "name": "Уровень пара"
},
"freezer_temp_sel": {
"name": "Заданная температура Морозильник"
},
"fridge_temp_sel": {
"name": "Заданная температура Холодильник"
} }
}, },
"button": { "button": {
"induction_hob": { "induction_hob": {
"name": "Индукционная варочная панель" "name": "Индукционная варочная панель"
} }
},
"climate": {
"air_conditioner": {
"name": "Кондиционер воздуха"
}
} }
}, },
"config": { "config": {

View File

@ -307,6 +307,18 @@
"xxl_load": "XXL náplň", "xxl_load": "XXL náplň",
"zoom_59": "Zoom 59" "zoom_59": "Zoom 59"
} }
},
"room_temperature": {
"name": "Izbová teplota"
},
"humidity": {
"name": "Vlhkosť"
},
"freezer_temp": {
"name": "Teplota mrazničky"
},
"fridge_temp": {
"name": "Teplota chladničky"
} }
}, },
"select": { "select": {
@ -1013,6 +1025,31 @@
"iot_uv_and_fan": "UV + Ventilátor", "iot_uv_and_fan": "UV + Ventilátor",
"iot_uv_and_heat": "UV + Ohrev" "iot_uv_and_heat": "UV + Ohrev"
} }
},
"programs_ref": {
"state": {
"auto_set": "AUTOMATICKÉ NASTAVENIE",
"cheese": "Syr",
"chiller": "Quick cool",
"cold_drinks": "Soft chill",
"eco": "Eco",
"eco_mode": "Režim Eco",
"fruits_and_veg": "Fruit&Veg",
"fruit_and_veg": "Fruit & Veg",
"holiday": "DOVOLENKA",
"keep_fresh": "0° Fresh",
"no_mode_selected": "Nie je vybraný žiadny režim",
"quick_cool": "QUICK COOL",
"sea_food": "Ready to cook meal",
"soft_frozen": "Soft freezing",
"super_cool": "SUPER CHLADENIE",
"super_freeze": "SUPER MRAZENIE",
"tea": "Cold drinks or Beverages",
"zero_fresh": "0° Fresh"
}
},
"remaining_time": {
"name": "Zostávajúci čas"
} }
}, },
"switch": { "switch": {
@ -1105,6 +1142,21 @@
}, },
"good_night": { "good_night": {
"name": "Dobrú noc" "name": "Dobrú noc"
},
"auto_dose_softener": {
"name": "Automatická dávka Aviváž"
},
"auto_dose_detergent": {
"name": "Automatická dávka Prací prostriedok"
},
"auto_set": {
"name": "Automatické nastavenie"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
} }
}, },
"binary_sensor": { "binary_sensor": {
@ -1182,6 +1234,30 @@
}, },
"auto_dose": { "auto_dose": {
"name": "Automatická dávka" "name": "Automatická dávka"
},
"buzzer": {
"name": "Signál na konci cyklu"
},
"holiday_mode": {
"name": "Režim Holiday"
},
"auto_set": {
"name": "Automatické nastavenie"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
},
"freezer_door": {
"name": "Otvorené dvere Mraznička"
},
"fridge_door": {
"name": "Otvorené dvere Chladnička"
},
"filter_replacement": {
"name": "Výmena filtra"
} }
}, },
"number": { "number": {
@ -1214,12 +1290,23 @@
}, },
"steam_level": { "steam_level": {
"name": "Úroveň nastavenia pary" "name": "Úroveň nastavenia pary"
},
"freezer_temp_sel": {
"name": "Cieľová teplota Mraznička"
},
"fridge_temp_sel": {
"name": "Cieľová teplota Chladnička"
} }
}, },
"button": { "button": {
"induction_hob": { "induction_hob": {
"name": "Indukčná varná doska" "name": "Indukčná varná doska"
} }
},
"climate": {
"air_conditioner": {
"name": "Klimatizácia"
}
} }
}, },
"config": { "config": {

View File

@ -307,6 +307,18 @@
"xxl_load": "Zelo veliki kosi perila", "xxl_load": "Zelo veliki kosi perila",
"zoom_59": "Zoom 59" "zoom_59": "Zoom 59"
} }
},
"room_temperature": {
"name": "Sobna temperatura"
},
"humidity": {
"name": "Vlaga "
},
"freezer_temp": {
"name": "Temperatura zamrzovalnika"
},
"fridge_temp": {
"name": "Temperatura hladilnika"
} }
}, },
"select": { "select": {
@ -1013,6 +1025,31 @@
"iot_uv_and_fan": "UV + ventilator", "iot_uv_and_fan": "UV + ventilator",
"iot_uv_and_heat": "UV + gretje" "iot_uv_and_heat": "UV + gretje"
} }
},
"programs_ref": {
"state": {
"auto_set": "SAMODEJNA NASTAVITEV",
"cheese": "Sir",
"chiller": "Quick cool",
"cold_drinks": "Soft chill",
"eco": "Eco",
"eco_mode": "Način Eco",
"fruits_and_veg": "Sadje In Zelenjava",
"fruit_and_veg": "Sadje in zelenjava",
"holiday": "POČITNICE",
"keep_fresh": "0° Fresh",
"no_mode_selected": "Izbran ni noben način",
"quick_cool": " HITRO HLAJENJE",
"sea_food": "Ready to cook meal",
"soft_frozen": "Soft freezing",
"super_cool": "SUPER HLAJENJE",
"super_freeze": "SUPER ZAMRZOVANJE",
"tea": "Cold drinks or Beverages",
"zero_fresh": "0° Fresh"
}
},
"remaining_time": {
"name": "Time remaining"
} }
}, },
"switch": { "switch": {
@ -1105,6 +1142,21 @@
}, },
"good_night": { "good_night": {
"name": "Lahko noč" "name": "Lahko noč"
},
"auto_dose_softener": {
"name": "Samodejno odmerjanje Mehčalec"
},
"auto_dose_detergent": {
"name": "Samodejno odmerjanje Detergent"
},
"auto_set": {
"name": "Samodejna nastavitev"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
} }
}, },
"binary_sensor": { "binary_sensor": {
@ -1182,6 +1234,30 @@
}, },
"auto_dose": { "auto_dose": {
"name": "Samodejno odmerjanje" "name": "Samodejno odmerjanje"
},
"buzzer": {
"name": "Zvočni signal ob koncu cikla"
},
"holiday_mode": {
"name": "Način Holiday"
},
"auto_set": {
"name": "Samodejna nastavitev"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
},
"freezer_door": {
"name": "Door open Zamrzovalnik"
},
"fridge_door": {
"name": "Door open Hladilnik"
},
"filter_replacement": {
"name": "Menjava filtra"
} }
}, },
"number": { "number": {
@ -1214,12 +1290,23 @@
}, },
"steam_level": { "steam_level": {
"name": "Količina pare" "name": "Količina pare"
},
"freezer_temp_sel": {
"name": "Ciljna temperatura Zamrzovalnik"
},
"fridge_temp_sel": {
"name": "Ciljna temperatura Hladilnik"
} }
}, },
"button": { "button": {
"induction_hob": { "induction_hob": {
"name": "Indukcijska kuhalna plošča" "name": "Indukcijska kuhalna plošča"
} }
},
"climate": {
"air_conditioner": {
"name": "Klimatska naprava"
}
} }
}, },
"config": { "config": {

View File

@ -307,6 +307,18 @@
"xxl_load": "XXL veš", "xxl_load": "XXL veš",
"zoom_59": "Zoom 59" "zoom_59": "Zoom 59"
} }
},
"room_temperature": {
"name": "Sobna temperatura"
},
"humidity": {
"name": "Vlažnost"
},
"freezer_temp": {
"name": "Temperatura zamrzivača"
},
"fridge_temp": {
"name": "Temperatura frižidera"
} }
}, },
"select": { "select": {
@ -1013,6 +1025,31 @@
"iot_uv_and_fan": "UV + ventilator", "iot_uv_and_fan": "UV + ventilator",
"iot_uv_and_heat": "UV + toplota" "iot_uv_and_heat": "UV + toplota"
} }
},
"programs_ref": {
"state": {
"auto_set": "AUTOMATSKO PODEŠAVANJE",
"cheese": "Sir",
"chiller": "Quick cool",
"cold_drinks": "Soft chill",
"eco": "Eco",
"eco_mode": "Eco režim",
"fruits_and_veg": "Voće i Povrće",
"fruit_and_veg": "Fruit & Veg",
"holiday": "ODMOR",
"keep_fresh": "0° Fresh",
"no_mode_selected": "Nije izabran nijedan režim",
"quick_cool": "BRZO HLAĐENJE",
"sea_food": "Ready to cook meal",
"soft_frozen": "Soft freezing",
"super_cool": "SUPER HLAĐENJE",
"super_freeze": "SUPER ZAMRZAVANJE",
"tea": "Cold drinks or Beverages",
"zero_fresh": "0° Fresh"
}
},
"remaining_time": {
"name": "Preostalo vreme"
} }
}, },
"switch": { "switch": {
@ -1105,6 +1142,21 @@
}, },
"good_night": { "good_night": {
"name": "Laku noć" "name": "Laku noć"
},
"auto_dose_softener": {
"name": "Automatsko doziranje Omekšivač"
},
"auto_dose_detergent": {
"name": "Automatsko doziranje Deterdžent"
},
"auto_set": {
"name": "Automatsko podešavanje"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
} }
}, },
"binary_sensor": { "binary_sensor": {
@ -1182,6 +1234,30 @@
}, },
"auto_dose": { "auto_dose": {
"name": "Automatsko doziranje" "name": "Automatsko doziranje"
},
"buzzer": {
"name": "Zvono na kraju ciklusa"
},
"holiday_mode": {
"name": "Režim Holiday"
},
"auto_set": {
"name": "Automatsko podešavanje"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
},
"freezer_door": {
"name": "Vrata su otvorena Zamrzivač"
},
"fridge_door": {
"name": "Vrata su otvorena Frižider"
},
"filter_replacement": {
"name": "Zamena filtera"
} }
}, },
"number": { "number": {
@ -1214,12 +1290,23 @@
}, },
"steam_level": { "steam_level": {
"name": "Nivo pare" "name": "Nivo pare"
},
"freezer_temp_sel": {
"name": "Željena temperatura Zamrzivač"
},
"fridge_temp_sel": {
"name": "Željena temperatura Frižider"
} }
}, },
"button": { "button": {
"induction_hob": { "induction_hob": {
"name": "Indukciona ploča" "name": "Indukciona ploča"
} }
},
"climate": {
"air_conditioner": {
"name": "Klima uređaj"
}
} }
}, },
"config": { "config": {

View File

@ -307,6 +307,18 @@
"xxl_load": "XXL Çamaşır", "xxl_load": "XXL Çamaşır",
"zoom_59": "Yakınlaştır 59" "zoom_59": "Yakınlaştır 59"
} }
},
"room_temperature": {
"name": "Oda sıcaklığı"
},
"humidity": {
"name": "Nem"
},
"freezer_temp": {
"name": "Dondurucu sıcaklığı"
},
"fridge_temp": {
"name": "Buzdolabı sıcaklığı"
} }
}, },
"select": { "select": {
@ -1013,6 +1025,31 @@
"iot_uv_and_fan": "UV + Fan", "iot_uv_and_fan": "UV + Fan",
"iot_uv_and_heat": "UV + Isıtma" "iot_uv_and_heat": "UV + Isıtma"
} }
},
"programs_ref": {
"state": {
"auto_set": "OTOMATİK AYAR",
"cheese": "Peynir",
"chiller": "Quick cool",
"cold_drinks": "Soft chill",
"eco": "Eco",
"eco_mode": "Eco modu",
"fruits_and_veg": "Meyve Ve Sebze",
"fruit_and_veg": "Fruit & Veg",
"holiday": "TATİL ",
"keep_fresh": "0° Fresh",
"no_mode_selected": "Hiç mod seçilmedi",
"quick_cool": "HIZLI SOĞUTMA",
"sea_food": "Ready to cook meal",
"soft_frozen": "Soft freezing",
"super_cool": "SUPER COOL",
"super_freeze": "SUPER FREEZE",
"tea": "Cold drinks or Beverages",
"zero_fresh": "0° Fresh"
}
},
"remaining_time": {
"name": "Kalan süre"
} }
}, },
"switch": { "switch": {
@ -1105,6 +1142,21 @@
}, },
"good_night": { "good_night": {
"name": "İyi Geceler" "name": "İyi Geceler"
},
"auto_dose_softener": {
"name": "Otomatik doz Yumuşatıcı"
},
"auto_dose_detergent": {
"name": "Otomatik doz Deterjan"
},
"auto_set": {
"name": "Otomatik Ayarla"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
} }
}, },
"binary_sensor": { "binary_sensor": {
@ -1182,6 +1234,30 @@
}, },
"auto_dose": { "auto_dose": {
"name": "Otomatik doz" "name": "Otomatik doz"
},
"buzzer": {
"name": "Program sonu zili"
},
"holiday_mode": {
"name": "Holiday Modu"
},
"auto_set": {
"name": "Otomatik Ayarla"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
},
"freezer_door": {
"name": "Kapıık Dondurucu"
},
"fridge_door": {
"name": "Kapıık Buzdolabı"
},
"filter_replacement": {
"name": "Filtre değişimi"
} }
}, },
"number": { "number": {
@ -1214,12 +1290,23 @@
}, },
"steam_level": { "steam_level": {
"name": "Buhar Seviyesi" "name": "Buhar Seviyesi"
},
"freezer_temp_sel": {
"name": "Hedef sıcaklık Dondurucu"
},
"fridge_temp_sel": {
"name": "Hedef sıcaklık Buzdolabı"
} }
}, },
"button": { "button": {
"induction_hob": { "induction_hob": {
"name": "İndüksiyonlu Ocak" "name": "İndüksiyonlu Ocak"
} }
},
"climate": {
"air_conditioner": {
"name": "Klima"
}
} }
}, },
"config": { "config": {

View File

@ -307,6 +307,18 @@
"xxl_load": "XXL Load", "xxl_load": "XXL Load",
"zoom_59": "缩放 59" "zoom_59": "缩放 59"
} }
},
"room_temperature": {
"name": "室温"
},
"humidity": {
"name": "湿度"
},
"freezer_temp": {
"name": "冷藏室温度"
},
"fridge_temp": {
"name": "冰箱温度"
} }
}, },
"select": { "select": {
@ -1013,6 +1025,31 @@
"iot_uv_and_fan": "UV + 风扇", "iot_uv_and_fan": "UV + 风扇",
"iot_uv_and_heat": "UV + 加热" "iot_uv_and_heat": "UV + 加热"
} }
},
"programs_ref": {
"state": {
"auto_set": "AUTO-SET自动设置",
"cheese": "奶酪",
"chiller": "Quick cool",
"cold_drinks": "Soft chill",
"eco": "Eco",
"eco_mode": "Eco 模式",
"fruits_and_veg": "Fruit&Veg水果和蔬菜",
"fruit_and_veg": "Fruit & Veg",
"holiday": "HOLIDAY假日模式",
"keep_fresh": "0° Fresh",
"no_mode_selected": "未选择模式",
"quick_cool": "QUICK COOL快速冷却",
"sea_food": "Ready to cook meal",
"soft_frozen": "Soft freezing",
"super_cool": "SUPER COOL超级冷却",
"super_freeze": "SUPER FREEZE超级冷冻",
"tea": "Cold drinks or Beverages",
"zero_fresh": "0° Fresh"
}
},
"remaining_time": {
"name": "剩余时间"
} }
}, },
"switch": { "switch": {
@ -1105,6 +1142,21 @@
}, },
"good_night": { "good_night": {
"name": "晚安" "name": "晚安"
},
"auto_dose_softener": {
"name": "自动定量 柔软剂"
},
"auto_dose_detergent": {
"name": "自动定量 洗涤剂"
},
"auto_set": {
"name": "自动设置"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
} }
}, },
"binary_sensor": { "binary_sensor": {
@ -1182,6 +1234,30 @@
}, },
"auto_dose": { "auto_dose": {
"name": "自动定量" "name": "自动定量"
},
"buzzer": {
"name": "循环结束提示音"
},
"holiday_mode": {
"name": "Holiday 模式"
},
"auto_set": {
"name": "自动设置"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
},
"freezer_door": {
"name": "门打开 冷藏箱"
},
"fridge_door": {
"name": "门打开 冰箱"
},
"filter_replacement": {
"name": "更换过滤器"
} }
}, },
"number": { "number": {
@ -1214,12 +1290,23 @@
}, },
"steam_level": { "steam_level": {
"name": "蒸汽档位" "name": "蒸汽档位"
},
"freezer_temp_sel": {
"name": "目标温度 冷藏箱"
},
"fridge_temp_sel": {
"name": "目标温度 冰箱"
} }
}, },
"button": { "button": {
"induction_hob": { "induction_hob": {
"name": "电磁炉" "name": "电磁炉"
} }
},
"climate": {
"air_conditioner": {
"name": "空调"
}
} }
}, },
"config": { "config": {

46
info.md
View File

@ -12,6 +12,7 @@ Support for home appliances of Haier's mobile app hOn.
- [Hob](https://github.com/Andre0512/hon#hob) - [Hob](https://github.com/Andre0512/hon#hob)
- [Dish Washer](https://github.com/Andre0512/hon#dish-washer) - [Dish Washer](https://github.com/Andre0512/hon#dish-washer)
- [Air conditioner](https://github.com/Andre0512/hon#air-conditioner) [BETA] - [Air conditioner](https://github.com/Andre0512/hon#air-conditioner) [BETA]
- [Fridge](https://github.com/Andre0512/hon#fridge) [BETA]
## Configuration ## Configuration
@ -20,16 +21,6 @@ Support for home appliances of Haier's mobile app hOn.
**Method 2**: Settings > Devices & Services > Add Integration > **Haier 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._ _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 ## Supported Languages
Translation of internal names like programs are available for all languages which are official supported by the hOn app: Translation of internal names like programs are available for all languages which are official supported by the hOn app:
* 🇨🇳 Chinese * 🇨🇳 Chinese
@ -52,6 +43,41 @@ Translation of internal names like programs are available for all languages whic
* 🇪🇸 Spanish * 🇪🇸 Spanish
* 🇹🇷 Turkish * 🇹🇷 Turkish
## Examples
### Washing Machine
![washing_machine.png](assets/washing_machine.png)
## Supported Models
Support has been confirmed for these models, but many more will work. Please add already supported devices [with this form to complete the list](https://forms.gle/bTSD8qFotdZFytbf8).
- Haier AD105S2SM3FA
- Haier AS25PBAHRA
- Haier AS25TADHRA-2
- Haier AS35TADHRA-2
- Haier EG9012B19SU1JD
- Haier HD80-A3959
- Haier HW90-B14TEAM5
- Haier HW100-B14959U1
- Haier HWD100-B14979
- Haier HWO60SM2F3XH
- Haier XIB 3B2SFS-80
- Haier XIB 6B2D3FB
- Candy CIS633SCTTWIFI
- Candy CSOE C10DE-80
- Candy ROE H9A3TCEX-S
- Candy RPW41066BWMR/1-S
- Hoover H-WASH 500
- Hoover H-DRY 500
- Hoover H7W4 48MBC-S
- Hoover H9A3TCBEXS-S
- Hoover HFB 6B2S3FX
- Hoover HLE C10DCE-80
- Hoover HSOT3161WG
- Hoover HWPD 69AMBC/1-S
- Hoover HWPS4954DAMR-11
- Hoover NDE H10A2TCE-80
- Hoover NDE H9A2TSBEXS-S
- Hoover NDPHY10A2TCBEXSS
## Contribute ## Contribute
Want to help us to support more appliances? Or add more sensors? Or help with translating? Or beautify some icons or captions? 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! Check out the [project on GitHub](https://github.com/Andre0512/hon), every contribution is welcome!

View File

@ -36,6 +36,7 @@ PROGRAMS = {
"programs_ov": "PROGRAMS.OV", "programs_ov": "PROGRAMS.OV",
"programs_td": "PROGRAMS.TD", "programs_td": "PROGRAMS.TD",
"programs_wm": "PROGRAMS.WM_WD", "programs_wm": "PROGRAMS.WM_WD",
"programs_ref": "PROGRAMS.REF",
}, },
"sensor": { "sensor": {
"programs_td": "PROGRAMS.TD", "programs_td": "PROGRAMS.TD",
@ -72,8 +73,18 @@ NAMES = {
"extra_rinse_2": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.EXTRARINSE2", "extra_rinse_2": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.EXTRARINSE2",
"extra_rinse_3": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.EXTRARINSE3", "extra_rinse_3": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.EXTRARINSE3",
"acqua_plus": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.ACQUAPLUS", "acqua_plus": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.ACQUAPLUS",
"auto_dose": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.AUTODOSE", "auto_dose_softener": [
"WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.AUTODOSE",
"WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.SOFTENER",
],
"auto_dose_detergent": [
"WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.AUTODOSE",
"WASHING_CMD&CTRL.DASHBOARD_MENU_MORE_SETTINGS_WATER.DETERGENT",
],
"good_night": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.GOODNIGHT", "good_night": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.GOODNIGHT",
"auto_set": "REF_CMD&CTRL.MODALITIES.ECO",
"super_cool": "REF_CMD&CTRL.MODALITIES.SUPER_COOL",
"super_freeze": "REF_CMD&CTRL.MODALITIES.SUPER_FREEZE",
}, },
"binary_sensor": { "binary_sensor": {
"door_lock": "WASHING_CMD&CTRL.CHECK_UP_RESULTS.DOOR_LOCK", "door_lock": "WASHING_CMD&CTRL.CHECK_UP_RESULTS.DOOR_LOCK",
@ -83,7 +94,6 @@ NAMES = {
"good_night": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.GOODNIGHT", "good_night": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.GOODNIGHT",
"anti_crease": "HDRY_CMD&CTRL.PROGRAM_CYCLE_DETAIL.ANTICREASE_TITLE", "anti_crease": "HDRY_CMD&CTRL.PROGRAM_CYCLE_DETAIL.ANTICREASE_TITLE",
"acqua_plus": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.ACQUAPLUS", "acqua_plus": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.ACQUAPLUS",
"auto_dose": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.AUTODOSE",
"spin_speed": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_MAIN_OPTIONS.SPINSPEED", "spin_speed": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_MAIN_OPTIONS.SPINSPEED",
"still_hot": "IH.COILS_STATUS.STILL_HOT", "still_hot": "IH.COILS_STATUS.STILL_HOT",
"pan_status": "IH.COILS_STATUS.PAN", "pan_status": "IH.COILS_STATUS.PAN",
@ -95,6 +105,14 @@ NAMES = {
"child_lock": "AP.FOOTER_MENU_MORE.SECURITY_LOCK_TITLE", "child_lock": "AP.FOOTER_MENU_MORE.SECURITY_LOCK_TITLE",
"on": "GLOBALS.GENERAL.ON", "on": "GLOBALS.GENERAL.ON",
"prewash": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.PREWASH", "prewash": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_OTHER_OPTIONS.PREWASH",
"buzzer": "DW_CMD&CTRL.SETTINGS.END_CYCLE_BUZZER",
"holiday_mode": "REF.DASHBOARD_MENU_MORE_NOTIFICATIONS.HOLIDAY_MODE",
"auto_set": "REF_CMD&CTRL.MODALITIES.ECO",
"super_cool": "REF_CMD&CTRL.MODALITIES.SUPER_COOL",
"super_freeze": "REF_CMD&CTRL.MODALITIES.SUPER_FREEZE",
"freezer_door": ["GLOBALS.APPLIANCE_STATUS.DOOR_OPEN", "REF.ZONES.FREEZER"],
"fridge_door": ["GLOBALS.APPLIANCE_STATUS.DOOR_OPEN", "REF.ZONES.FRIDGE"],
"filter_replacement": "AP.MAINTENANCE.FILTER_REPLACEMENT",
}, },
"button": { "button": {
"induction_hob": "GLOBALS.APPLIANCES_NAME.IH", "induction_hob": "GLOBALS.APPLIANCES_NAME.IH",
@ -110,6 +128,7 @@ NAMES = {
"programs_td": "WC.SET_PROGRAM.PROGRAM", "programs_td": "WC.SET_PROGRAM.PROGRAM",
"programs_wm": "WC.SET_PROGRAM.PROGRAM", "programs_wm": "WC.SET_PROGRAM.PROGRAM",
"eco_pilot": "AC.PROGRAM_DETAIL.ECO_PILOT", "eco_pilot": "AC.PROGRAM_DETAIL.ECO_PILOT",
"remaining_time": "ENROLLMENT_COMMON.GENERAL.REMAINING_TIME",
}, },
"sensor": { "sensor": {
"dry_levels": "WASHING_CMD&CTRL.DRAWER_CYCLE_DRYING.TAB_LEVEL", "dry_levels": "WASHING_CMD&CTRL.DRAWER_CYCLE_DRYING.TAB_LEVEL",
@ -134,6 +153,8 @@ NAMES = {
"det_liquid": "HUBS.WIDGET.STAINS_WIDGET.STAINS.SUGGESTED_DET_LIQUID", "det_liquid": "HUBS.WIDGET.STAINS_WIDGET.STAINS.SUGGESTED_DET_LIQUID",
"errors": "ROBOT_CMD&CTRL.PHASE_ERROR.TITLE", "errors": "ROBOT_CMD&CTRL.PHASE_ERROR.TITLE",
"programs": "OV.TABS.CURRENT_PROGRAM", "programs": "OV.TABS.CURRENT_PROGRAM",
"room_temperature": "REF.SMART_DRINK_ASSISTANT.AMBIENT",
"humidity": "AP.TITLES.HUMIDITY",
"cycles_total": [ "cycles_total": [
"WASHING_CMD&CTRL.GENERAL.CYCLES", "WASHING_CMD&CTRL.GENERAL.CYCLES",
"WC.VIRTUAL_WINE_STATS_COUNTRY.TOTAL", "WC.VIRTUAL_WINE_STATS_COUNTRY.TOTAL",
@ -154,6 +175,8 @@ NAMES = {
"WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_RESULT.WATER_EFFICIENCY", "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_RESULT.WATER_EFFICIENCY",
"CUBE90_GLOBAL.GENERAL.CURRENT", "CUBE90_GLOBAL.GENERAL.CURRENT",
], ],
"freezer_temp": "REF_CMD&CTRL.TEMPERATURE_DRAWER_FREEZER.FREEZER_TEMPERATURE_TITLE",
"fridge_temp": "REF_CMD&CTRL.TEMPERATURE_DRAWER_FRIDGE.FRIDGE_TEMPERATURE_TITLE",
}, },
"number": { "number": {
"power_management": "HINTS.COOKING_WITH_INDUCTION.POWER_MANAGEMENT", "power_management": "HINTS.COOKING_WITH_INDUCTION.POWER_MANAGEMENT",
@ -166,7 +189,10 @@ NAMES = {
"wash_time": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL.WASHING_TIME", "wash_time": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL.WASHING_TIME",
"dry_time": "WASHING_CMD&CTRL.DRAWER_CYCLE_DRYING.TAB_TIME", "dry_time": "WASHING_CMD&CTRL.DRAWER_CYCLE_DRYING.TAB_TIME",
"steam_level": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_MAIN_OPTIONS.STEAM_LEVEL", "steam_level": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_MAIN_OPTIONS.STEAM_LEVEL",
"freezer_temp_sel": ["OV.COMMON.GOAL_TEMPERATURE", "REF.ZONES.FREEZER"],
"fridge_temp_sel": ["OV.COMMON.GOAL_TEMPERATURE", "REF.ZONES.FRIDGE"],
}, },
"climate": {"air_conditioner": "GLOBALS.APPLIANCES_NAME.AC"},
} }

View File

@ -4,11 +4,13 @@ import re
import sys import sys
from pathlib import Path from pathlib import Path
if __name__ == "__main__": if __name__ == "__main__":
sys.path.insert(0, str(Path(__file__).parent.parent)) sys.path.insert(0, str(Path(__file__).parent.parent))
from custom_components.hon.binary_sensor import BINARY_SENSORS from custom_components.hon.binary_sensor import BINARY_SENSORS
from custom_components.hon.button import BUTTONS from custom_components.hon.button import BUTTONS
from custom_components.hon.climate import CLIMATES
from custom_components.hon.number import NUMBERS from custom_components.hon.number import NUMBERS
from custom_components.hon.select import SELECTS from custom_components.hon.select import SELECTS
from custom_components.hon.sensor import SENSORS from custom_components.hon.sensor import SENSORS
@ -41,6 +43,7 @@ entities = {
"select": SELECTS, "select": SELECTS,
"sensor": SENSORS, "sensor": SENSORS,
"switch": SWITCHES, "switch": SWITCHES,
"climate": CLIMATES,
} }
result = {} result = {}
@ -50,12 +53,19 @@ for entity_type, appliances in entities.items():
if ( if (
isinstance(entity, HonSwitchEntityDescription) isinstance(entity, HonSwitchEntityDescription)
and entity.entity_category != "config" and entity.entity_category != "config"
and "settings." not in entity.key
): ):
key = f"{entity.turn_on_key}` / `{entity.turn_off_key}" key = f"{entity.turn_on_key}` / `{entity.turn_off_key}"
else: else:
key = entity.key key = entity.key
attributes = (key, entity.name, entity.icon, entity_type) attributes = (key, entity.name, entity.icon, entity_type)
category = "control" if entity_type in ["switch", "button"] else "sensor" category = (
"control"
if entity.key.startswith("settings")
or hasattr(entity, "turn_on_key")
or entity_type in ["button", "climate"]
else "sensor"
)
result.setdefault(appliance, {}).setdefault( result.setdefault(appliance, {}).setdefault(
entity.entity_category or category, [] entity.entity_category or category, []
).append(attributes) ).append(attributes)