Triggers
Triggers are entities comparable with messages received from the knx bus.
If the comparison, made through the is_triggered method, returns True than the entity is considered to be triggered.
When the entity is triggered
if it is used by a Scheduler Trigger than its events are notified to Appliances
if it is used by a Performer its events are used to directly update an Appliance
- class knx_plugin.trigger.Trigger(description: Any, events: List[home.Event] = None)
A generic KNX trigger triggered when it has some ASAPs in common with the compared Description
- classmethod make(addresses: List[knx_stack.address.Address], events: home.Event = None) knx_plugin.Trigger
Make a protocol message Description given the arguments.
- Parameters
args –
kwargs –
- Returns
a protocol message Description
- classmethod make_from_yaml(addresses: List[int], events: home.Event = None) knx_plugin.Trigger
Make a protocol message Description given the yaml arguments.
- Parameters
args –
kwargs –
- Returns
a protocol message Description
- is_triggered(another_description: knx_plugin.message.Description) bool
This trigger is triggered by the given protocol message Description?
- Parameters
another_description – a protocol message description
- Returns
bool