Skip to content

Activity

Not a device. An Activity is a one-tap scene or macro — “Watch Apple TV”, “Listen to Music”. The driver itself is deliberately dumb: it just tracks an active flag and fires events. The real work of turning gear on in the right order happens in the hub.

None. There’s no transport and no device to reach — the Activity driver runs entirely inside the hub.

  • icon — the icon shown for the activity.
  • description — a short description.
CommandWhat it does
startMark the activity active and raise activity.started
stopMark it inactive and raise activity.stopped

start and stop set the active flag and emit activity.started / activity.stopped with arguments — values like streamUrl, title, and positionSeconds ride along on the event, so generated rules can resolve ${event.data.<key>} and hand them to the right device.