In Between

class knx_plugin.trigger.InBetween(description: knx_plugin.message.Description, events: home.Event = None, value: int = None, range: int = None)

A trigger triggered when

  1. it has some ASAPs in common with the compared Description and

  2. the knx_stack.datapointtypes.DPT int value contained in the compared Description received from bus is greater than the knx_stack.datapointtypes.DPT int value contained into the trigger and lesser than this last value plus a range

DPT Value Temp

class knx_plugin.trigger.dpt_value_temp.Warm
>>> import io
>>> import json
>>> import knx_stack
>>> import knx_plugin
>>> warm = knx_plugin.trigger.dpt_value_temp.Warm.make_from_yaml(addresses=[1234])
>>> address_table = knx_stack.AddressTable(knx_stack.Address(4098), [], 255)
>>> association_table = knx_stack.AssociationTable(address_table, [])
>>> groupobject_table = knx_stack.GroupObjectTable()
>>> warm.associate(association_table, groupobject_table)
>>> bus_event = '''
...        {"name": "DPT_Value_Temp",
...         "addresses": [1234],
...         "fields": {"decoded_value": 15.5}}
... '''
>>> another_description = knx_plugin.Description(json.loads(bus_event))
>>> another_description.associate_with(association_table)
>>> warm.is_triggered(another_description)
True
DPT = {'addresses': [], 'fields': {'decoded_value': 5.0}, 'name': 'DPT_Value_Temp', 'type': 'knx'}
DEFAULT_EVENTS = [<Event.Warm: 'Warm'>]
RANGE = 20.0