Skip to content

Digital Twin Graph creation error from guide #218

@WesVerhagen

Description

@WesVerhagen

Problem:
DTDL graph model is not generating in Azure due to an incomplete JSON file and semantic type error.

Explenation:
I try to generate a Azure Digital Twin graph from the guide on the website.
https://dev.realestatecore.io/docs/guides/sensor/#azure-digital-twins-json-representation-dtdl-models

I get a lot of errors and managed to fix some of them like on twin 120 if i add a emty components for the "area" and "capacity" as followed
{
"$dtId": "120",
"$etag": "W/"d1db10f1-a098-4c5d-8e2f-092e8c11f418"",
"geometry": "[[4.0, 2.5], ... , [4.0, 2.5]]",
"area": { "$metadata": {} },
"capacity": { "$metadata": {} },

"$metadata": {
"$model": "dtmi:org:w3id:rec:Room;1"
}
The error is gone for 120

but when i look at the temperature twin like 120_Tmp there is a component "LastKnownValue.Value" in the json from the site but Value is not part of LastKnownValue inside the twin explorer (it is defined in the temperature observation model but it is not showing in the explorer ).

I think it is weird that i have to add emty components for the rooms. Am i doing something wrong?
For the temp problem when i delete the semantic type temperature and only use type property the value is visable.

Steps to reproduce:
Upload the JSON file containing the DTDL model data to Azure.
Attempt to generate the DTDL graph model using the uploaded JSON file.

Expected result: The DTDL graph model is generated successfully in Azure.

Actual result: The DTDL graph model generation fails due to an incomplete JSON file.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions