Haier sent a takedown notice and threatened legal action. The community started a big riot and called for a Haier boycott, the repository was forked over 2000+ times to make the code undeletable. Haier starts a dialog to find a joint solution. Read all about it here:
Method 3: Manually copy hon folder from latest release to config/custom_components folder.
Restart Home Assistant
Configuration
Method 1:
Method 2: Settings > Devices & Services > Add Integration > Haier hOn If the integration is not in the list, you need to clear the browser cache.
Supported Languages
Translation of internal names like programs are available for all languages which are official supported by the hOn app:
🇸🇦 Arabic
🇧🇬 Bulgarian
🇨🇳 Chinese
🇭🇷 Croatian
🇨🇿 Czech
🇩🇰 Danish
🇳🇱 Dutch
🇬🇧 English
🇫🇮 Finnish
🇫🇷 French
🇩🇪 German
🇬🇷 Greek
🇮🇱 Hebrew
🇭🇺 Hungarian
🇮🇹 Italian
🇳🇴 Norwegian
🇵🇱 Polish
🇵🇹 Portuguese
🇷🇴 Romanian
🇷🇺 Russian
🇷🇸 Serbian
🇸🇰 Slovak
🇸🇮 Slovenian
🇿🇦 Southern Ndebele
🇪🇸 Spanish
🇸🇪 Swedish
🇹🇷 Turkish
🇺🇦 Ukrainian
Compatibility
Haier offers different apps for different markets. Some appliances are compatible with more than one app. This integration only supports appliances that can be controlled via hOn. Please download the hOn app and check compatibility before you open an issue.
The apps on this (incomplete) list have been requested so far:
Please add your appliances data to our hon-test-data collection. This helps us to develop new features and not to break compatibility in newer versions.
Read out device data
If you want to make a request for adding new appliances or additional attributes and don't want to use the command line, here is how you can read out your device data.
For every device exists a button under diagnostics which can be used to log all info of your appliance.
Press the button to create a notification
Open home assistant notifications and copy the message (Crtl+A, Ctrl+C)
Use the command line tool to read out all appliance data from your account
$ pyhOn
User for hOn account: [email protected]
Password for hOn account: ********
========== WM - Washing Machine ==========
commands:
pauseProgram: pauseProgram command
resumeProgram: resumeProgram command
startProgram: startProgram command
stopProgram: stopProgram command
data:
actualWeight: 0
airWashTempLevel: 0
airWashTime: 0
antiAllergyStatus: 0
...
Fork this repository and clone it to your local machine
Add the keys of the attributes you'd like to have as EntityDescription into this Repository Example: Add pause button
BUTTONS: dict[str, tuple[ButtonEntityDescription, ...]] = {
"WM": ( # WM is the applianceTypeNameButtonEntityDescription(
key="pauseProgram", # key from pyhOnname="Pause Program", # name in home assistanticon="mdi:pause", # icon in home assistant
...
),
...
If you want to have some states humanreadable, have a look at the translation_key parameter of the EntityDescription.
If you need to implement some more logic, create a pull request to the underlying library. There we collect special requirements in the appliances directory.
I receive this error every time I try to set up the integration.
This error originated from a custom integration.
Logger: homeassistant.config_entries
Source: custom_components/hon/__init__.py:32
Integration: Haier hOn (documentation, issues)
First occurred: 07:45:15 (3 occurrences)
Last logged: 07:48:18
Error setting up entry [email protected] for hon
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/hon/__init__.py", line 32, in async_setup_entry
await hon.setup()
File "/usr/local/lib/python3.10/site-packages/pyhon/api.py", line 54, in setup
headers=await self._headers) as resp:
File "/usr/local/lib/python3.10/site-packages/pyhon/api.py", line 44, in _headers
if await auth.authorize(self._email, self._password, self._mobile_id):
File "/usr/local/lib/python3.10/site-packages/pyhon/auth.py", line 144, in authorize
if not await self._get_token(session, url):
File "/usr/local/lib/python3.10/site-packages/pyhon/auth.py", line 116, in _get_token
async with session.get(url[0]) as resp:
File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 1141, in __aenter__
self._resp = await self._coro
File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 508, in _request
req = self._request_class(
File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 305, in __init__
self.update_host(url)
File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 364, in update_host
raise InvalidURL(url)
aiohttp.client_exceptions.InvalidURL: /SmartHome/_ui/system/security/ChangePassword?retURL=/SmartHome/setup/secur/RemoteAccessAuthorizationPage.apexp?source%3DCAAAAYdF3NxSMDAwMDAwMDAwMDAwMDAwAAAA8sbnEX8dpUqQX_4LLtIz8sY-PYEWuUNbA3FBywvLwODN1VBKZeyocPhtGmQg8nqwh13R0gNRNkWwfjETjavXdS4jzomsiVBxk5FYTymhGCPJ5r58wi7S2zKL-QbEIZmnRk3YPjx9NgxKtNCEKwJxFsjPtmUA9o66MXCOjTaBtPsSxlCVpCy1hOhll8YzFztNyPIk-0P2ARHhnecbF8vbr87UWC6STm4T7HAf9vUSV7g6db4aF0tJ_Bz6eRiHrF-SLKTbImHonDzZ_I8i0kLBgRPiwnJ4kspqMUqbMNVwtC_mvQpAcW0UHNtYfMnxo2LLKbl6H33cy2NZaahBO4_KxYBtlnkeL186bwBtRw5oNZT_OH5LwLI9B38TvA95u5UD10-aABP0nCE5lv8P2IIGtAhiyhXq4J5nk5MkE6bDVrPxezun71eWniUaR-VyxwSr7NXGNC2ealm7sV3eyGyQP8WdQOLI5bjkGWUe8UJAbTrmo5yXPfSJIgsU-DkzB-4yetUbrrBbTRIKjOnb9CXlhSn7XhvapaO2XTx15rVymeQw_S7MdKce51nqDSVxaZqgApn-u-04M76j6D67VJAyk5QS6K-6n_8zdSV38vLgWvA72M4WA5x-oBCSfAfzGUG2MgBWx7JLZj5YCc6Or9hCROctmHuqaJ2PoyScLgkw-CGRElEisHglBmZbvzX7DoeBEfRPjLw2jGC0ntlcNJ6Oxf8&fromFrontdoor=1&setupid=ChangePassword
Temperature selection works fine after the last update. Now there is a problem with program buttons. Their entities are not available. Nothing can be selected. Tell me how to send the logs and I'll send them to you. Regards
Hello!
I would like to get full support for this washing machine.In versions v0.8.0-beta.3 and v0.8.0-beta.4 the input works, but only 7 sensors are visible and there is no control.
Here is the output of "Show Device Info":
I used old version of HON integration ( before HACS including and with GitHub script installation) with my AS35S2SF1FA-MW3 climate and all worked .
Now I updated with HACS and It find my climate machine but it reports only FW version and it doesn't give me any control!!!
2023-06-09 09:54:03.753 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform hon
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 471, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 749, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 850, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 590, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 654, in _async_write_ha_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 596, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 563, in state
raise ValueError(
ValueError: Sensor sensor.tumble_dryer_phase provides state value '8', which is not in the list of options provided
2023-06-09 09:54:03.756 ERROR (MainThread) [homeassistant.components.select] Error while setting up hon platform for select
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 320, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/hon/select.py", line 150, in async_setup_entry
await entity.coordinator.async_config_entry_first_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 251, in async_config_entry_first_refresh
await self._async_refresh(
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 374, in _async_refresh
self.async_update_listeners()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 164, in async_update_listeners
update_callback()
File "/config/custom_components/hon/sensor.py", line 643, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 590, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 654, in _async_write_ha_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 596, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 563, in state
raise ValueError(
ValueError: Sensor sensor.tumble_dryer_phase provides state value '8', which is not in the list of options provided
I tried to set an automation that fired when the machine was Finished but it didn't fire, and I realised it was because it was actually an enum under the hood, that HA hides very well.
By declaring the device class as an enum, and including the available values in options, HA displays the values in the dropdown and automations can be set against the translated label
I would like to create a request to add my fridge to the app, but I'm not able to use the "Log Device Info" button. In the past (up to 0.7.2) the attribute was unavailable, with the 0.7.3 beta its available but the click of the button leads to an error.
2023-05-09 10:55:29.772 ERROR (MainThread) [custom_components.hon.button] Device Info: <bound method HonAppliance.diagnose of <pyhon.appliance.HonAppliance object at 0x7f98905090>>pyhOnVersion: 0.10.6
Hi, the integration is great but I have a strange issue where I am displaying the machine status in a banner-card and it's showing as the value 7 but when I click that entity it is correctly showing as Finished. Is this a bug? I think I could potentially get around it by using templating in HA but I use banner-cards everywhere and these are the only sensors that do this. Same applies to Program Phase and Tumble program. Here's a screenshot.
Thanks for taking the time to create this integration.
I set this up today and while initially it found all 4 of my devices (two of which were supported) after a few mins 'Failed to set up' error showed up on the HA intergation page.
I removed and readded the integration and now it wont set up correctly. Logs are too large to paste here so I have put them on Pastebin: https://pastebin.com/160q9Fb0
Please let me know what steps I can take to help you resolve this as I would really love to help you support my other two devices (a fride and a dishwasher).
Questo errore ha avuto origine da un'integrazione personalizzata.
Logger: homeassistant.config_entries
Source: custom_components/hon/init.py:31
Integration: Haier hOn (documentation, issues)
First occurred: 21:10:08 (1 occurrences)
Last logged: 21:10:08
Error setting up entry [email protected] for hon
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/hon/init.py", line 31, in async_setup_entry
hon = await Hon(
File "/usr/local/lib/python3.10/site-packages/pyhon/hon.py", line 61, in create
await self.setup()
File "/usr/local/lib/python3.10/site-packages/pyhon/hon.py", line 91, in setup
for appliance in (await self.api.load_appliances())["payload"]["appliances"]:
File "/usr/local/lib/python3.10/site-packages/pyhon/connection/api.py", line 69, in load_appliances
async with self._hon.get(f"{const.API_URL}/commands/v1/appliance") as resp:
File "/usr/local/lib/python3.10/contextlib.py", line 199, in aenter
return await anext(self.gen)
File "/usr/local/lib/python3.10/site-packages/pyhon/connection/handler/base.py", line 44, in get
async with self._intercept(self._session.get, *args, **kwargs) as response:
File "/usr/local/lib/python3.10/contextlib.py", line 199, in aenter
return await anext(self.gen)
File "/usr/local/lib/python3.10/site-packages/pyhon/connection/handler/hon.py", line 58, in _intercept
kwargs["headers"] = await self._check_headers(kwargs.get("headers", {}))
File "/usr/local/lib/python3.10/site-packages/pyhon/connection/handler/hon.py", line 49, in _check_headers
await self.auth.authenticate()
File "/usr/local/lib/python3.10/site-packages/pyhon/connection/auth.py", line 245, in authenticate
if not (url := await self._login()):
File "/usr/local/lib/python3.10/site-packages/pyhon/connection/auth.py", line 182, in _login
await self._error_logger(response)
File "/usr/local/lib/python3.10/site-packages/pyhon/connection/auth.py", line 83, in _error_logger
raise exceptions.HonAuthenticationError("Can't login")
pyhon.exceptions.HonAuthenticationError: Can't login
Logger: pyhon.connection.auth
Source: custom_components/hon/init.py:31
Integration: Haier hOn (documentation, issues)
First occurred: 21:10:08 (1 occurrences)
Last logged: 21:10:08
Hi I've just connected a dishwasher for fun an giggles, here's the stack trace I'm getting.
I'm guessing one of the sensors is expecting an int when the server is returning a float
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/hon/__init__.py", line 32, in async_setup_entry
await hon.setup()
File "/usr/local/lib/python3.10/site-packages/pyhon/api.py", line 61, in setup
await asyncio.gather(*[
File "/usr/local/lib/python3.10/site-packages/pyhon/device.py", line 115, in load_commands
cmd = HonCommand(command, attr2, self._connector, self, multi=multi, program=program)
File "/usr/local/lib/python3.10/site-packages/pyhon/commands.py", line 13, in __init__
self._ancillary_parameters = self._create_parameters(attributes.get("ancillaryParameters", {}))
File "/usr/local/lib/python3.10/site-packages/pyhon/commands.py", line 23, in _create_parameters
result[parameter] = HonParameterRange(parameter, attributes)
File "/usr/local/lib/python3.10/site-packages/pyhon/parameter.py", line 51, in __init__
self._min = int(attributes["minimumValue"])
ValueError: invalid literal for int() with base 10: '0,5'
I'm italian and the default language is IT, but when I added the integration it seems that there is no default language in case the HA one is missing in the translations folder and all the sensor appear like number, eg machine mode was 0 instead of disconnected.
I added a file it.json with the same value of en.json and now machine mode is Disconnected.
I'll provide a it translation but i think is better to set en as default if HA lang is not found in translations.
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/haier_hon/__init__.py", line 31, in async_setup_entry
hon = await Hon(
File "/usr/local/lib/python3.10/site-packages/pyhon/hon.py", line 61, in create
await self.setup()
File "/usr/local/lib/python3.10/site-packages/pyhon/hon.py", line 95, in setup
await self._create_appliance(appliance)
File "/usr/local/lib/python3.10/site-packages/pyhon/hon.py", line 77, in _create_appliance
await asyncio.gather(
File "/usr/local/lib/python3.10/site-packages/pyhon/appliance.py", line 218, in load_commands
await self._add_favourites()
File "/usr/local/lib/python3.10/site-packages/pyhon/appliance.py", line 235, in _add_favourites
parameter.value = value
File "/usr/local/lib/python3.10/site-packages/pyhon/parameter/range.py", line 58, in value
if self._min <= value <= self._max and not (value - self._min) % self._step:
ZeroDivisionError: float modulo
I've installed v0.8.0-beta.5 and now when a program has finished running or HA has been restarted I need to reload the integration to get my remote control sensors to update and for my start and pause switches to become available again.
I did try downgrading back to the current release version but the issue remains.
Just installed this and it looks brilliant. I have a tumble dryer that shows up fine but the controls dont seem to work. If I start a program from the hOn app the the switch changes state in HA but if I click the switch in HA then the program doesnt run and the switch will flip back afte a couple of seconds. Here is the data from the Log Device Info button.
Logger: homeassistant.config_entries
Source: custom_components/hon/init.py:31
Integration: Haier hOn (documentation, issues)
First occurred: 22:31:35 (1 occurrences)
Last logged: 22:31:35
Error setting up entry 18664629847 for hon
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/hon/init.py", line 31, in async_setup_entry
hon = await Hon(
File "/usr/local/lib/python3.10/site-packages/pyhon/hon.py", line 41, in create
await self.setup()
File "/usr/local/lib/python3.10/site-packages/pyhon/hon.py", line 63, in setup
for appliance in (await self.api.load_appliances())["payload"]["appliances"]:
File "/usr/local/lib/python3.10/site-packages/pyhon/connection/api.py", line 69, in load_appliances
async with self._hon.get(f"{const.API_URL}/commands/v1/appliance") as resp:
File "/usr/local/lib/python3.10/contextlib.py", line 199, in aenter
return await anext(self.gen)
File "/usr/local/lib/python3.10/site-packages/pyhon/connection/handler/base.py", line 44, in get
async with self._intercept(self._session.get, *args, **kwargs) as response:
File "/usr/local/lib/python3.10/contextlib.py", line 199, in aenter
return await anext(self.gen)
File "/usr/local/lib/python3.10/site-packages/pyhon/connection/handler/hon.py", line 58, in _intercept
kwargs["headers"] = await self._check_headers(kwargs.get("headers", {}))
File "/usr/local/lib/python3.10/site-packages/pyhon/connection/handler/hon.py", line 49, in _check_headers
await self.auth.authenticate()
File "/usr/local/lib/python3.10/site-packages/pyhon/connection/auth.py", line 245, in authenticate
if not (url := await self._login()):
File "/usr/local/lib/python3.10/site-packages/pyhon/connection/auth.py", line 182, in _login
await self._error_logger(response)
File "/usr/local/lib/python3.10/site-packages/pyhon/connection/auth.py", line 83, in _error_logger
raise exceptions.HonAuthenticationError("Can't login")
pyhon.exceptions.HonAuthenticationError: Can't login
Getting a blocking error on this integration causing it to fail.
I'm curious if using a gmail alias is something your codebase supports? Bolded below is the correct email that I signed up with and use in the Haier app, but I know it sometimes freaks out other things
This error originated from a custom integration.
Logger: homeassistant.config_entries
Source: custom_components/hon/init.py:32
Integration: Haier hOn (documentation, issues)
First occurred: 2:03:07 PM (2 occurrences)
Last logged: 2:03:28 PM
Error setting up entry [email protected] for hon
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/hon/init.py", line 32, in async_setup_entry
await hon.setup()
File "/usr/local/lib/python3.10/site-packages/pyhon/api.py", line 54, in setup
headers=await self._headers) as resp:
File "/usr/local/lib/python3.10/site-packages/pyhon/api.py", line 44, in _headers
if await auth.authorize(self._email, self._password, self._mobile_id):
File "/usr/local/lib/python3.10/site-packages/pyhon/auth.py", line 142, in authorize
if not (url := await self._login(session, email, password, fw_uid, loaded, login_url)):
File "/usr/local/lib/python3.10/site-packages/pyhon/auth.py", line 104, in _login
return (await response.json())["events"][0]["attributes"]["values"]["url"]
KeyError: 'events'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/hon/__init__.py", line 31, in async_setup_entry
hon = await Hon(
File "/usr/local/lib/python3.10/site-packages/pyhon/hon.py", line 41, in create
await self.setup()
File "/usr/local/lib/python3.10/site-packages/pyhon/hon.py", line 67, in setup
await self._create_appliance(appliance)
File "/usr/local/lib/python3.10/site-packages/pyhon/hon.py", line 52, in _create_appliance
await asyncio.gather(
File "/usr/local/lib/python3.10/site-packages/pyhon/appliance.py", line 139, in load_commands
raw = await self._api.load_commands(self)
File "/usr/local/lib/python3.10/site-packages/pyhon/connection/api.py", line 77, in load_commands
"firmwareId": appliance.info["eepromId"],
KeyError: 'eepromId'
Device is a Hoover HLE C10DCE-80 Tumble Dryer and I'm using version 0.6.1.
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 193, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 341, in _async_refresh
self.async_update_listeners()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 142, in async_update_listeners
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 401, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 568, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 632, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 574, in _stringify_state
if (state := self.state) is None:
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1016, in state
if (is_on := self.is_on) is None:
File "/config/custom_components/hon/switch.py", line 360, in is_on
setting = self._device.settings[self.entity_description.key]
KeyError: 'extraRinse1'
This avoid the component to load the other appliance attributes and all the attributes appear unavailable.
Sorry to bother you. I am confused about the hOn account.
Because the account in the app is a telephone number rather email address.
I get an error if I enter my telephone and password.
So I wonder how to get the hOn account. Thanks
Hi I have a Haier HWS247FDU1 Wine Fridge. In previous versions it showed all kinds of information, like temperature and whether the light was on or not. However, since version 0.8.0.-beta9 it only shows a button where I can get information when I press it, and the information only shows op in notifications. It seems that a few entities are missing, I get only 1 entity. No error messages in the log. Please assist. Thank you.
Hi, short question, within the Handy App you can define User Favorite programms and Names.
If i configure something on my Phone (apple), my wife can also see this on her Phone (Andoid).
Do you know if it's also possible to make this available here ?
EDIT
This question is regarding Washing Programs .....
I have this problem: the integration is there, but it doesn't let me see the 3 conditioners I have (now I use HASSIO, on the old docker installation I see them correctly..)
Hi, I don't have the skills to add this myself but thought this might be useful if someone was able to use the information from my Tumble Dryer to add to this integration.
This error originated from a custom integration.
Logger: custom_components.hon.hon
Source: custom_components/hon/hon.py:52
Integration: Haier hOn (documentation, issues)
First occurred: 03:50:02 (1354 occurrences)
Last logged: 09:28:15
Unexpected error fetching a8-48-fa-18-ef-e4 data: object _AsyncGeneratorContextManager can't be used in 'await' expression
Unexpected error fetching 78-e3-6d-8d-cc-68 data: object _AsyncGeneratorContextManager can't be used in 'await' expression
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 250, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/hon/hon.py", line 52, in _async_update_data
await self._device.update()
File "/usr/local/lib/python3.10/site-packages/pyhon/appliance.py", line 162, in update
await self.load_attributes()
File "/usr/local/lib/python3.10/site-packages/pyhon/appliance.py", line 154, in load_attributes
self._attributes = await self._api.load_attributes(self)
File "/usr/local/lib/python3.10/site-packages/pyhon/connection/api.py", line 85, in load_attributes
async with self._hon.get(url, params=params) as response:
File "/usr/local/lib/python3.10/contextlib.py", line 199, in __aenter__
return await anext(self.gen)
File "/usr/local/lib/python3.10/site-packages/pyhon/connection/handler.py", line 34, in get
async with self._intercept(self._session.get, *args, **kwargs) as response:
File "/usr/local/lib/python3.10/contextlib.py", line 199, in __aenter__
return await anext(self.gen)
File "/usr/local/lib/python3.10/site-packages/pyhon/connection/handler.py", line 86, in _intercept
yield await self._intercept(method, *args, loop=loop + 1, **kwargs)
TypeError: object _AsyncGeneratorContextManager can't be used in 'await' expression
Hello
I have your integration installed and it looks promising. I use it with air conditioning. At the moment I have a problem with setting the target temperature and the program buttons do not seem to do anything. I am posting the messages I get when trying to select the temperature. I keep my fingers crossed for further work and recommend myself for any tests on the equipment. Regards
"Nie udało się wywołać usługi climate/set_temperature. 'settings.selTemp'"
Hi,
Installation with HACS worked fine all the sensors seem to be there, but when i try and select them nothing works:
The only thing that will work is the on and off switch and the heat and cool buttons on the bottem, the buttons and switches of the other sensors dont do anything.
When i try to change the temprature on the wheel i get the following error(on both models): Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 199, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1849, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1889, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 226, in handle_service await service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 798, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 980, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 838, in _handle_entity_call await result File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 613, in async_service_temperature_set await entity.async_set_temperature(**kwargs) File "/config/custom_components/hon/climate.py", line 128, in async_set_temperature self._device.settings["settings.selTemp"].value = temperature KeyError: 'settings.selTemp'
The integration does not show any device and does not show any error, I think it is not able to extract the data from the device or the pyhOn data does not match what is searched for in the integration.
I have checked the hon.py file and mac_address on my device with pyhOn shows macAddress.
I think that the Candy devices do not show the data in the same way as the Haier ones