Module homey.flow_card_trigger_device

Classes

class FlowCardTriggerDevice

A flow card with type trigger and an argument with type device with a filter with driver_id, as defined in an app's app.json.

Ancestors

Methods

async def trigger(self, device: Device, tokens: dict[str, Any] = {}, **trigger_kwargs) ‑> None

Activate the flow card, and thereby any flows it is used in.

Args

device
The Device to trigger the flow card for.
tokens
A mapping from tokens to their values in the flow, as defined in app.json.
trigger_kwargs
Arguments that will be passed to the card's run listener.

Inherited members