Andre0512 / Andre0512/hon

Action select/select_option could not be performed. Allowed values: ['2', '4', '5', '6', '7', '8'] But was: 0

Open
#282 11 comments 0 reactions 1 assignee Claimed by @Andre0512 View on GitHub
bug
Dominant language
Python
Stars
1.5k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

**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

![Image](https://github.com/user-attachments/assets/b3952a9b-d7e8-47cb-9938-597e17633fdf)

**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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.