Skip to content

Commit 1ce32ed

Browse files
ispysoftwareclaude
andcommitted
createwatch: scope (system, all, group, location); devices optional
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent 2157b7a commit 1ce32ed

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎swagger.yaml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ definitions:
4949
type: string
5050
WatchRequest:
5151
type: object
52+
description: Give devices, or scope.
5253
required:
53-
- devices
5454
- what
5555
- then
5656
properties:
@@ -60,6 +60,9 @@ definitions:
6060
origin:
6161
type: string
6262
description: Who made the rule, e.g. "assistant" or "api". Shown on the rule's badge.
63+
scope:
64+
type: string
65+
description: 'Instead of devices: "all", "group:<name>" or "location:<name>" make ONE rule that follows the group - it is matched to devices when their events fire, so a device added later is covered, and the tasks run for whichever device raised the event. "system" is a rule of the server itself: it runs on a system event (armed, disarmed, profileapplied, uiconnected, uidisconnected, uinosessions) or at when.at, needs no device, cannot have a gate, and its tasks must name any device they act on. Such rules are stored as actions with objecttypeid 0 and objectid 0 and timed by the server schedule.'
6366
devices:
6467
type: array
6568
description: 'Devices to watch. Each entry is {"ot":2,"oid":1}, an "ot:oid" string ("2:1") or a device name.'

0 commit comments

Comments
 (0)