Skip to content

Commit

Permalink
Add areas to location (#107)
Browse files Browse the repository at this point in the history
This key can be used to specify a list of areas that make up your
physical location. Each area has a required size (in square meters), and
an optional name and description.
  • Loading branch information
dbrgn authored Apr 26, 2024
1 parent cf6a350 commit f501edb
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
38 changes: 38 additions & 0 deletions 15-draft.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,44 @@
"Ring the doorbell marked with HACKSPACE",
"Knock three times, say Shibboleet and follow the white rabbit"
]
},
"areas": {
"description": "A list of areas in your space. Must include at least 1 area if defined.",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of this area",
"examples": [
"Hackerspace",
"Kitchen",
"Workshop"
]
},
"description": {
"type": "string",
"description": "A description of this area",
"examples": [
"Our hackerspace area",
"Woodworking machines and power tools"
]
},
"square_meters": {
"type": "number",
"description": "The size of this area in square meters",
"examples": [
23.23,
42
]
}
},
"required": [
"square_meters"
]
},
"minItems": 1
}
},
"required": [
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ Root level:

`location`:

- [added] The `hint` field was added ([#102])
- [added] The `country_code` field was added ([#108])
- [added] The `areas` field was added ([#107])
- [added] The `hint` field was added ([#102])
- [changed] Make entire `location` field optional to enable the inclusion of groups without physical location ([#106])

`sensors`:
Expand Down Expand Up @@ -109,3 +110,4 @@ Root level:
[#105]: https://github.com/SpaceApi/schema/pull/105
[#106]: https://github.com/SpaceApi/schema/pull/106
[#108]: https://github.com/SpaceApi/schema/pull/108
[#107]: https://github.com/SpaceApi/schema/pull/107

0 comments on commit f501edb

Please sign in to comment.