Skip to content

Commit

Permalink
Merge pull request #1264 from google/iv-cdid-update
Browse files Browse the repository at this point in the history
Update cloud device id definition.
  • Loading branch information
trav3711 authored Feb 2, 2024
2 parents 9e6f7f6 + 1ecb6f2 commit d66bbdb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ontology/docs/building_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ ENTITY-CODE:
represents this entity.
* **Code:** The human readable identifier for the entity. This should
be unique in document scope.
* **cloud_device_id:** the cloud device id from the cloud iot registry.
This field is mandatory when a translation exists.
* **cloud_device_id:** the numeric device id from cloud iot registry.
This field is mandatory when a translation exists. Must be a numeric string.
* **Connections:** Used to specify connections from other entities (sources)
pointing to this entity, with connection types. Entities are keys and cannot
be repeated. Values are one or more connections, specified as a single
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
DMP_EDM-17-GUID:
type: HVAC/DMP_EDM
code: DMP_EDM-17
cloud_device_id: "1234567890123456"
cloud_device_id: "123456"
translation:
exhaust_air_damper_command:
present_value: "points.exhaust_air_damper_command.present_value"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
)
_UDMI_UNIT_FIELD_PATTERN = re.compile(_UDMI_UNIT_FIELD_REGEX)

_DEVICE_NUMERIC_ID_REGEX = r'[0-9]{16}'
_DEVICE_NUMERIC_ID_REGEX = r'[0-9]+'
_DEVICE_NUMERIC_ID_PATTERN = re.compile(_DEVICE_NUMERIC_ID_REGEX)

# Faciltities naming patterns
Expand Down

0 comments on commit d66bbdb

Please sign in to comment.