You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using this library to control my washing machine programmatically. While I can successfully pause the running machine, I encounter an issue when trying to start a specific program.
When I attempt to launch the program (All in One 59’), which is already configured on the machine, the machine starts successfully. However, it selects a different program (iot_checkup) instead of the one I configured.
Code:
Below is the code snippet I used to start the program:
importasyncioimportsslfrompyhonimportHonssl._create_default_https_context=ssl._create_unverified_contextUSER=input("Username for the machine: ")
PASSWORD=input("Password: ")
asyncdefstart_program():
asyncwithHon(USER, PASSWORD) ashon:
washing_machine=hon.appliances[0]
start_command=washing_machine.commands["startProgram"]
start_command.parameters["program"].value="All in One 59'"awaitstart_command.send()
asyncio.run(start_program())
Note: I am new to Python.
Request:
Could someone provide an example or guidance on how to correctly launch an existing program on the washing machine using this library? Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
I am using this library to control my washing machine programmatically. While I can successfully pause the running machine, I encounter an issue when trying to start a specific program.
When I attempt to launch the program (All in One 59’), which is already configured on the machine, the machine starts successfully. However, it selects a different program (iot_checkup) instead of the one I configured.
Code:
Below is the code snippet I used to start the program:
Note: I am new to Python.
Request:
Could someone provide an example or guidance on how to correctly launch an existing program on the washing machine using this library? Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: