Incorrect Program Selection When Starting Washing Machine
- 主要语言
- 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 还没有评估数据。