deploy: change method to get status from device

This commit is contained in:
2025-10-21 12:43:14 +07:00
parent c167f4ec43
commit a0687d26cc
3 changed files with 37 additions and 3 deletions
+1 -2
View File
@@ -13,8 +13,7 @@ export const deviceCommandBody = z.object({
timestamp: z.string().datetime(), // ISO8601
nonce: z.string(),
payload: z.object({
action: z.enum(['on', 'off', 'set']),
temp: z.number().optional(),
action: z.string(),
}),
signature: z.string(),
})