Module homey.flow_card_trigger_device
Classes
class FlowCardTriggerDevice-
A flow card with type trigger and an argument with type
devicewith a filter withdriver_id, as defined in an app'sapp.json.Ancestors
- FlowCard
- SimpleClass
- EventEmitter
- typing.Generic
- abc.ABC
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
Deviceto 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