BAC0.core.devices.local package

Submodules

BAC0.core.devices.local.decorator module

BAC0.core.devices.local.decorator.add_feature(cls)[source]
BAC0.core.devices.local.decorator.bacnet_properties(properties)[source]

Given a dict of properties, add them to the object

BAC0.core.devices.local.decorator.bacnet_property(property_name, value, *, force_mutable=None)[source]

Given a property, add it to the object

BAC0.core.devices.local.decorator.create(object_type, instance, objectName, value, description)[source]
BAC0.core.devices.local.decorator.make_commandable()[source]

BAC0.core.devices.local.object module

class BAC0.core.devices.local.object.ObjectFactory(objectType, instance, objectName, properties=None, description='', presentValue=None, is_commandable=False, relinquish_default=None)[source]

Bases: object

This is an exploration of a method to create local objects in BAC0 instance.

First you need to know what bacpypes class of object you want to create ex. AnalogValueObject This class must be imported from bacpypes ex. from bacpypes.object import AnalogValueObject

You must also define supplemental properties for the object in a dict. ex. :

properties = {“outOfService” : False,
“relinquishDefault” : 0, “units”: “degreesCelsius”, “highLimit”: 98}

Then you can use the factory to create your object ex. :

av0 = ObjectFactory(AnalogValueObject, 1, ‘av0’, )
add_objects_to_application(app)[source]
clear_notes()

Clear notes object

static clear_objects()[source]
static default_properties(objectType, properties, is_commandable=False, relinquish_default=None)[source]
definition

alias of Definition

classmethod from_dict(definition)[source]
static get_pv_datatype(objectType)[source]
static inspect(bacnet_object)[source]

A fun little snippet to inspect the properties of a BACnet object.

instances = {}
log(note, *, level=10)

Add a log entry…no note

log_subtitle(subtitle, args=None, width=35)
log_title(title, args=None, width=35)
logname = 'BAC0.core.devices.local.object | ObjectFactory'
note(note, *, level=20, log=True)

Add note to the object. By default, the note will also be logged :param note: (str) The note itself :param level: (logging.level) :param log: (boolean) Enable or disable logging of note

notes

Retrieve notes list as a Pandas Series

objects = {}
static properties_for(objectType)[source]
static relinquish_default_value(objectType, value)[source]
validate_instance(objectType, instance)[source]
validate_name_and_instance(objectType, objectName, instance)[source]

Module contents