Read proprietary property #531
Replies: 3 comments 1 reply
|
Dealing with Proprietary objects in BAC0 (in fact, with BACpypes3) requires some work. The library needs to know in advance, what kind of "type" the property is. Some guess work can be done when reading... but to write to those properties, you got to be certain. For now, the way I understood BACpypes3, I haven't looked too deep in the "guess the type path" and I adopted the explicit way of defining proprietary objects and properties. This way, we can safely read and write those. For your convenience, I added one attempt to define the proprietary objects for priva blue contollers here : Here is an example on how I use this principle with Johnson Controls devices I need to import the file so BAC0 "knows" about the proprietary objects and properties I may or not provide the vendor ID By using this file, BAC0 knows the type, so it's also possible to write to the properties when allowed. |
|
excellent! It works at the first trial. Many thanks! |
|
Hi, However, I still get the ‘-no property type-’ error when trying to read my property: So I'm wondering whether I need to do something else for BAC0 to take it into account? I read in the lib documentation (https://bac0.readthedocs.io/en/latest/proprietary_objects.html) something about a create_proprietaryobject function to call but it doesn't seem to exist in BAC0 2025.2.post18... Thanks in advance ! |

Dealing with Proprietary objects in BAC0 (in fact, with BACpypes3) requires some work. The library needs to know in advance, what kind of "type" the property is.
Some guess work can be done when reading... but to write to those properties, you got to be certain.
For now, the way I understood BACpypes3, I haven't looked too deep in the "guess the type path" and I adopted the explicit way of defining proprietary objects and properties. This way, we can safely read and write those.
For your convenience, I added one attempt to define the proprietary objects for priva blue contollers here :
https://github.com/ChristianTremblay/BAC0/blob/develop/BAC0/core/proprietary_objects/privablue_105.py
He…