Creating a DeviceObject #365
Unanswered
nsnyder1992
asked this question in
Q&A
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
The async version of BAC0 now depends on bacpypes3 and the device object is way more complete. You will be able to add localTime, etc... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to add a DeviceObject (bacpypes.object.DeviceObject) to my BAC0 app, with the localDate and localTime properties. I need these properties to recreate devices that have these attributes, to test against my bacnet driver I am writing in java.
I tried to use the ObjectFactory like so:
localDate = ObjectFactory( DeviceObject, 56, "localDate", presentValue=now.strftime("%x"), description="Local Date", )
But of course get a KeyError("Unknown"), because there is no presentValue property for the DeviceObject type.
Is DeviceObject type a multistate value? If so, should I create my own version of the multistate(**kwargs) function in BAC0.core.devices.local.models?
It would be greatly appreciated if someone could point me in the right direction. :)
Beta Was this translation helpful? Give feedback.
All reactions