Andre0512 / Andre0512/pyhOn

Incorrect Program Selection When Starting Washing Machine

未关闭
#27 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
499
派生
1.7k
PR 合并指标
30 天内没有已合并 PR

描述

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:
```python
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.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。