Skip to content

Instantly share code, notes, and snippets.

@t-wolfeadam
Created July 23, 2024 16:33
Show Gist options
  • Save t-wolfeadam/d4f34dd4ddcdd1c68e3948ae931eb6f6 to your computer and use it in GitHub Desktop.
Save t-wolfeadam/d4f34dd4ddcdd1c68e3948ae931eb6f6 to your computer and use it in GitHub Desktop.
DTDL: Basic House HVAC (Implementation)
{
"house": {
"houseName": "My Smart Home",
"hvac": {
"currentTemperature": 22.5,
"targetTemperature": 24.0,
"mode": "COOL"
},
"rooms": [
{
"roomName": "kitchen",
"location": {"x": 10, "y": 20, "z": 0}
},
{
"roomName": "dining",
"location": {"x": 0, "y": 20, "z": 0}
},
{
"roomName": "living",
"location": {"x": 0, "y": 10, "z": 0}
},
{
"roomName": "bedroom",
"location": {"x": 8, "y": 8, "z": 20}
},
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment