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

Incorrect Program Selection When Starting Washing Machine #27

Open
gowthamraj07 opened this issue Jun 21, 2024 · 0 comments
Open

Incorrect Program Selection When Starting Washing Machine #27

gowthamraj07 opened this issue Jun 21, 2024 · 0 comments

Comments

@gowthamraj07
Copy link

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:

import asyncio
import ssl
from pyhon import Hon

ssl._create_default_https_context = ssl._create_unverified_context
USER = input("Username for the machine: ")
PASSWORD = input("Password: ")


async def start_program():
    async with Hon(USER, PASSWORD) as hon:
        washing_machine = hon.appliances[0]

        start_command = washing_machine.commands["startProgram"]
        start_command.parameters["program"].value = "All in One 59'"
        await start_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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant