Andre0512 / Andre0512/hon

ValueError: Value [0] - Allowed: min 1 max 4 step 1 - with none of the values being outside of required scope

Đang mở
#283 1 bình luận 0 reaction 1 người được giao Được @Andre0512 nhận Xem trên GitHub
bug
Ngôn ngữ chính
Python
Star
1.5k
Fork
2.4k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Describe the bug**
I can not start most programs on a candy washer/dryer

**To Reproduce**
hon.start_program

program: iot_wash_100_custom_wash / iot_wash_resistant_whites / iot_wash_cotton / most programs that i've set spin speed and dry level in the parameters

params:
{'delayTime':0,'dirtyLevel':3,'dryLevel':4,'dryTime':4,'lang':1,'prewash':1,'hygiene':1,'anticrease':1,'goodNight':1,'extraRinse1':0,'extraRinse2':0,'extraRinse3':0,'acquaplus':0,'spinSpeed':1600,'temp':60}"

**Expected behavior**
washer-dryer machine starting

**Screenshots**

![Image](https://github.com/user-attachments/assets/ec926d70-d230-424c-826b-96e67e92afe0)

**Environment (please complete the following information):**
- Home Assistant Version: [2025.1.2]
- hOn Integration Version [0.7.10]
- pyhOn Version [can't find]

**Additional context**
i managed to start one program only [perfect_cotton_59] with no parameters

**Home Assistant Logs**

> > Logger: homeassistant.components.websocket_api.http.connection
> > Source: components/websocket_api/commands.py:245
> > integration: Home Assistant WebSocket API ([documentation](https://www.home-assistant.io/integrations/websocket_api), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+websocket_api%22))
> > First occurred: 5:20:09 PM (2 occurrences)
> > Last logged: 5:26:57 PM
>
> [547454832928] 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 "/config/custom_components/hon/__init__.py", line 371, in handle_start_program
> await device.start_command(program, parameters).send()
> ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
> File "/config/custom_components/hon/device.py", line 179, in start_command
> self.update_command(command, self.attributes["parameters"])
> ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/config/custom_components/hon/device.py", line 157, in update_command
> command.parameters.get(key).value = parameters.get(key)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/config/custom_components/hon/parameter.py", line 105, in value
> raise ValueError(f"Value [{value}] - Allowed: min {self._min} max {self._max} step {self._step}")
> ValueError: Value [0] - Allowed: min 1 max 4 step 1

**Device Log**
Post your device info here (if available)
Device info
ROW61064DWMCT-S
by candy
Firmware: 5.14.0

**Data Archive**
For further analysis, please add your appliance data archive here (if available)
Navigate to `Settings` -> `Device & Services` -> `Haier hOn` -> _your device_ and press the _Create Data Archive_ button.
Then open notifications to download the data zip archive.
To attach the file:
* GitHub Web: Use the "Attach files by dragging & dropping, selecting or pasting them." function
* GitHub Mobile: Upload the zip archive as image
Could not see the Create Data Archive button

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.