extend webhook per site
Some checks failed
CI and deploy / migration-check (push) Failing after 14s
CI and deploy / deploy (push) Has been skipped

This commit is contained in:
Dusan Vojacek
2026-04-26 22:04:48 +02:00
parent 5f96a4cf01
commit 1d04790f28
6 changed files with 100 additions and 10 deletions

View File

@@ -698,6 +698,8 @@ async def _verify_deye_clock_written_bundle(
attempts = max(attempts, ac)
await notify_modbus_mismatch(
db,
site_id,
ac0,
62,
"system_time_62_64",
@@ -726,6 +728,8 @@ async def _verify_deye_clock_written_bundle(
)
site = await db.fetchrow("SELECT code FROM ems.site WHERE id=$1", site_id)
await notify_modbus_clock_verify_exhausted(
db,
site_id,
site["code"] if site else str(site_id),
ac0,
(w62, w63, w64),
@@ -858,6 +862,8 @@ async def verify_modbus_commands(
)
attempts = int(row_ac["attempt_count"] or 0) if row_ac else 0
await notify_modbus_mismatch(
db,
site_id,
cmd["asset_code"],
reg,
cmd["register_name"] or "",