Action select/select_option could not be performed. Allowed values: ['2', '4', '5', '6', '7', '8'] But was: 0
Describe the bug When changing programm i get the error "Actie select/select_option kon niet worden uitgevoerd. Allowed values: ['2', '4', '5', '6', '7', '8'] But was: 0"
To Reproduce go to the thermostat of the air conditioner, click on the hvac programs and select a favorite program
or go to the module Haier HON, select the air conditioner and change the vaforiet to another option
Expected behavior Activate the desired program
Environment (please complete the following information): Core 2025.1.1 Supervisor 2024.12.3 Operating System 14.1 Frontend 20250106.0
- hOn Integration Version 0.14.0 (latets version)
Home Assistant Logs
Logger: homeassistant.helpers.frame Bron: helpers/frame.py:324 Eerst voorgekomen: 10:59:42 (31 gebeurtenissen) Laatst gelogd: 12:49:48
Detected that custom integration 'hon' calls async_forward_entry_setup for integration, hon with title: Mail@***** and entry_id: 01JHG31V1X1KS22JZ276V5NDGK, which is deprecated, await async_forward_entry_setups instead at custom_components/hon/init.py, line 57: hass.async_create_task(. This will stop working in Home Assistant 2025.6, please create a bug report at https://github.com/Andre0512/hon/issues
Detected that integration 'zha' calls device_registry.async_get_or_create referencing a non existing via_device ('zha', 00:21:2e:ff:ff:09:eb:f4), with device info: {'connections': {('zigbee', '00:0d:6f:00:18:4c:e5:74')}, 'identifiers': {('zha', '00:0d:6f:00:18:4c:e5:74')}, 'manufacturer': 'Trust', 'model': 'SmokeSensor-EM', 'name': 'Trust SmokeSensor-EM', 'via_device': ('zha', 00:21:2e:ff:ff:09:eb:f4)} at homeassistant/components/zha/helpers.py, line 1177: _async_add_entities(entities_to_add, update_before_add=False). This will stop working in Home Assistant 2025.12.0, please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+zha%22
Detected that custom integration 'hon' calls async_write_ha_state from a thread other than the event loop, which may cause Home Assistant to crash or data to corrupt. For more information, see https://developers.home-assistant.io/docs/asyncio_thread_safety/#async_write_ha_state at custom_components/hon/sensor.py, line 849: self.async_write_ha_state(). Please report it to the author of the 'hon' custom integration
Logger: homeassistant.components.websocket_api.http.connection Bron: components/websocket_api/commands.py:245 integratie: Home Assistant WebSocket API (documentatie, problemen) Eerst voorgekomen: 11:06:43 (3 gebeurtenissen) Laatst gelogd: 12:52:04
[281473349531920] Unexpected exception [281472573770624] Unexpected exception Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<7 lines>... ) ^ File "/usr/src/homeassistant/homeassistant/core.py", line 2795, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2838, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1006, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ hass, entity, func, data, call.context ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1078, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/select/init.py", line 188, in async_handle_select_option await self.async_select_option(option) File "/config/custom_components/hon/select.py", line 319, in async_select_option self._device.sync_command(command, "settings") ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/pyhon/appliance.py", line 311, in sync_command self.sync_parameter(base_param, target_param) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/pyhon/appliance.py", line 326, in sync_parameter target.value = main.value ^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/pyhon/parameter/enum.py", line 51, in value raise ValueError(f"Allowed values: {self._values} But was: {value}") ValueError: Allowed values: ['2', '4', '5', '6', '8'] But was: 0
I'm experiencing the same exact issue:
It shows everytime I use off button.
It seems to be the same issue as in #265
The same issue on trying to press turn off or any other mode button on thermostat card. If this could help, the model of air pump is HAIER GEOS R 35
There is any news for this?
There is any news for this?
Actually the solution from the neighbor issue works well for my air pump
I have merged the fix in my own fork: https://github.com/paroque28/hon/pull/4 Although I see that there is a second maintainer: https://github.com/galvani/hon/
I have merged the fix in my own fork: paroque28#4 Although I see that there is a second maintainer: https://github.com/galvani/hon/
Excuse my ignorance, how can I make the integration I have installed update automatically with the Galvani version(https://github.com/galvani/hon/)?
I have merged the fix in my own fork: paroque28#4 Although I see that there is a second maintainer: https://github.com/galvani/hon/
Excuse my ignorance, how can I make the integration I have installed update automatically with the Galvani version(https://github.com/galvani/hon/)?
Thanks for the link. Installed it (after adding the additional_ca crt files needed) and works flawlessly. Even updates without any issues.
Just add this link as an additional repository in HACS and install.
https://github.com/matemijolovic/hon/pull/1
I delete : self._device.sync_command("stopProgram", "settings") and add: self._device.settings["settings.onOffStatus"].value = "0"
but see this:
[140361420644544] Unexpected exception Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 250, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<7 lines>... ) ^ File "/usr/src/homeassistant/homeassistant/core.py", line 2802, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2845, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1007, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ hass, entity, func, data, call.context ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1079, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 725, in async_handle_set_preset_mode_service await self.async_set_preset_mode(preset_mode) File "/config/custom_components/hon/climate.py", line 232, in async_set_preset_mode self._device.sync_command("startProgram", "settings") ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/pyhon/appliance.py", line 311, in sync_command self.sync_parameter(base_param, target_param) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/pyhon/appliance.py", line 326, in sync_parameter target.value = main.value ^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/pyhon/parameter/enum.py", line 51, in value raise ValueError(f"Allowed values: {self._values} But was: {value}") ValueError: Allowed values: ['2', '4', '5', '6', '8'] But was: 0