Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bisebi opened this issue Jan 20, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@bisebi
Copy link

bisebi commented Jan 20, 2025

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

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, issues)
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
@bisebi bisebi added the bug Something isn't working label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants