Expand description
Object/property shorthand parsing for integrators.
Handles full names (kebab-case), common abbreviations, and numeric values
for BACnet object types, property identifiers, and write values.
A write value typed for a known property (parse_value_for) also
takes its enumeration and bit names, and dates, times and timestamps
in the forms the formatter prints, so what a read shows can be typed
back.
Functions§
- parse_
date - A date with no time after it:
2026-10-19,2026-10-19 Mon,*-*-* Fri,any date. - parse_
date_ time - A date and maybe a time after it, as the formatter writes them:
2026-10-19,2026-10-19 Mon 07:00,any date 07:00, orunspecifiedfor neither. The time isNonewhen none was typed. - parse_
object_ specifier - Parse an object specifier like
analog-input:1orai:1into (ObjectType, instance). - parse_
object_ type - Parse an object type from a string.
- parse_
property - Parse a property identifier from a string.
- parse_
time - A time:
HH:MM,HH:MM:SSorHH:MM:SS.hh,*for any field, orany time. Fields left off are 0. - parse_
timestamp - A BACnetTimeStamp as the formatter prints one:
seq 42, a time (14:30:05,any time), or a date and time (2026-10-25 Sun 14:30:05; a date alone leaves the time unspecified). - parse_
value - Parse a write value from a string, with no property to say its
datatype.
parse_value_forreads names and named bits for a known property. - parse_
value_ for - Parse a value typed for
propertyof an object ofobject_type, atindexwhen the write names one, knowing the property’s datatype: - parse_
value_ for_ with_ priority parse_value_forwith an optional@prioritysuffix, asparse_value_with_prioritysplits it.- parse_
value_ with_ priority - Parse a value with optional
@prioritysuffix.