File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -261,6 +261,8 @@ history = await client.get_execution_history()
261261Action groups can be stored on the server (like saved scenes). Use these methods to list and execute them:
262262
263263``` python
264+ import time
265+
264266# List all persisted action groups
265267action_groups = await client.get_action_groups()
266268
@@ -270,8 +272,10 @@ for ag in action_groups:
270272# Execute a persisted action group by OID
271273exec_id = await client.execute_persisted_action_group(ag.oid)
272274
273- # Schedule for future execution (Unix timestamp)
274- trigger_id = await client.schedule_persisted_action_group(ag.oid, timestamp = 1735689600 )
275+ # Schedule for future execution (e.g. 1 hour from now)
276+ trigger_id = await client.schedule_persisted_action_group(
277+ ag.oid, timestamp = int (time.time()) + 3600
278+ )
275279```
276280
277281## Limitations and rate limits
You can’t perform that action at this time.
0 commit comments