Messages

Every message from/to the knx bus is represented as a knx_plugin.message.Description() entity.

Both triggers and commands are knx_plugin.message.Description() entities.

class knx_plugin.message.Description(data: dict)
PROTOCOL = 'knx'
DPT = {'fields': {}, 'name': 'Fake'}
property dpt: Type[knx_stack.datapointtypes.DPT]
property asaps: List[knx_stack.definition.layer.transport.association_table.ASAP]
property addresses: List[knx_stack.address.Address]
classmethod make(addresses: List[knx_stack.address.Address]) knx_plugin.message.Description

Make a protocol message Description given the arguments.

Parameters
  • args

  • kwargs

Returns

a protocol message Description

classmethod make_from_yaml(addresses: List[int]) knx_plugin.message.Description

Make a protocol message Description given the yaml arguments.

Parameters
  • args

  • kwargs

Returns

a protocol message Description

classmethod make_from(msg: Union[knx_stack.definition.layer.application.a_group_value_read.ind.Msg, knx_stack.definition.layer.application.a_group_value_write.ind.Msg]) knx_plugin.message.Description

Make a protocol message Description given the protocol message

Parameters

msg – a protocol message

Returns

a protocol message Description

associate_with(association_table: knx_stack.definition.layer.transport.association_table.AssociationTable) None
associate(association_table: knx_stack.definition.layer.transport.association_table.AssociationTable, groupobject_table: knx_stack.definition.layer.application.groupobject_table.GroupObjectTable)