Improve sched

This commit is contained in:
Артём Кокос
2026-02-21 11:45:15 +07:00
parent ff0add2f58
commit 3fe2be5514
2 changed files with 109 additions and 1 deletions

View File

@@ -19,7 +19,10 @@ scheduler = AsyncIOScheduler(jobstores=jobstores, timezone=app_tz)
async def execute_lamp_command(ip: str, params: dict):
"""Выполнение команды по расписанию"""
"""
Универсальное выполнение команды.
params может содержать: state, dimming, temp, sceneId, r, g, b
"""
driver = WizDriver()
await driver.set_pilot(ip, params)
logger.info(f"⏰ Сработало расписание для {ip}: {params}")