Skip to content

Commit 8b6c16b

Browse files
committed
docs: select-entity API definitions
1 parent f1037b7 commit 8b6c16b

7 files changed

Lines changed: 53 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ _Changes in the next release_
2323
- Media-player entity: new attribute `media_position_updated_at`.
2424
- Dock 3 external port configuration.
2525
- Voice Assistant support.
26+
- Select Entity support.
2627

2728
---
2829

core-api/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ in YAML format.
2727

2828
| UCR Firmware | Core Simulator | REST API | WS API |
2929
|---------------|----------------|----------|--------|
30+
| | 0.68.0 | 0.44.0 | 0.34.0 |
3031
| 2.8.0-beta | 0.66.4 | 0.43.1 | 0.33.0 |
3132
| 2.7.2-beta | 0.65.1 | 0.42.0 | 0.32.0 |
3233
| 2.6.2-beta | 0.62.0 | 0.40.0 | 0.31.0 |

core-api/rest/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ This section contains unreleased changes which will be part of an upcoming relea
1010

1111
---
1212

13+
## 0.44.0
14+
### Added
15+
- New entity type `select`.
16+
1317
## 0.43.1
1418
### Added
1519
- Touch slider configuration in an activity.

core-api/rest/UCR-core-openapi.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
openapi: 3.0.3
22
info:
33
title: Remote Two/3 REST Core-API
4-
version: 0.43.0
4+
version: 0.44.0
55
contact:
66
name: API Support
77
url: 'https://github.com/unfoldedcircle/core-api/issues'
@@ -13245,6 +13245,7 @@ components:
1324513245
- macro
1324613246
- remote
1324713247
- ir_emitter
13248+
- select
1324813249
- voice_assistant
1324913250
ExternalSystems:
1325013251
type: array
@@ -15929,6 +15930,10 @@ components:
1592915930
properties:
1593015931
entity_id:
1593115932
$ref: '#/components/schemas/EntityId'
15933+
available:
15934+
description: |
15935+
Flag indicating if the referenced `entity_id` is still available or is a dangling reference.
15936+
type: boolean
1593215937
profile_id:
1593315938
$ref: '#/components/schemas/SimpleId'
1593415939
required:

core-api/websocket/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ This section contains unreleased changes which will be part of an upcoming relea
1010

1111
---
1212

13+
## 0.34.0-beta
14+
### Added
15+
- New entity type `select`.
16+
1317
## 0.33.0-beta
1418
### Changed
1519
- Voice assistant configuration refactoring.

core-api/websocket/UCR-core-asyncapi.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ asyncapi: 2.2.0
88
id: 'urn:com:unfoldedcircle:core'
99
info:
1010
title: Remote Two/3 WebSocket Core-API
11-
version: '0.33.0-beta'
11+
version: '0.34.0-beta'
1212
contact:
1313
name: API Support
1414
url: https://github.com/unfoldedcircle/core-api/issues
@@ -6730,6 +6730,7 @@ components:
67306730
- entity_activity
67316731
- entity_macro
67326732
- entity_remote
6733+
- entity_select
67336734
- activity_groups
67346735
- integrations
67356736
- profiles
@@ -7462,6 +7463,7 @@ components:
74627463
- macro
74637464
- remote
74647465
- ir_emitter
7466+
- select
74657467
- voice_assistant
74667468

74677469
ActivityGroup:
@@ -8261,6 +8263,7 @@ components:
82618263
properties:
82628264
url:
82638265
type: string
8266+
format: url
82648267
mime_type:
82658268
type: string
82668269
required:

integration-api/UCR-integration-asyncapi.yaml

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ asyncapi: 2.2.0
88
id: 'urn:com:unfoldedcircle:integration'
99
info:
1010
title: Remote Two/3 WebSocket Integration API
11-
version: '0.13.0-beta'
11+
version: '0.14.0-beta'
1212
contact:
1313
name: API Support
1414
url: https://github.com/unfoldedcircle/core-api/issues
@@ -747,6 +747,16 @@ components:
747747
entity_type: cover
748748
entity_id: blind-2_cover-only
749749
cmd_id: close
750+
- payload:
751+
kind: req
752+
id: 128
753+
msg: entity_command
754+
msg_data:
755+
entity_type: select
756+
entity_id: select-1
757+
cmd_id: select_option
758+
params:
759+
option: "Option 1"
750760

751761
# --- events
752762
entity_change:
@@ -1696,8 +1706,8 @@ components:
16961706

16971707
entity:
16981708
description: |
1699-
Common definition of an entity. Concrete entities are: `cover`, `button`, `climate`, `ir_emitter`, `light`,
1700-
`media_player`, `remote`,`sensor`, `switch`, `voice_assistant`.
1709+
Common definition of an entity. Concrete entities are: `button`, `switch`, `light`, `cover`, `media_player`,
1710+
`climate`, `sensor`, `remote`, `ir_emitter`, `select`, `voice_assistant`.
17011711
17021712
See [entity documentation](https://github.com/unfoldedcircle/core-api/blob/main/doc/entities/)
17031713
for more information.
@@ -2174,6 +2184,25 @@ components:
21742184
🚧 Optional maximum value of the sensor output. This can be used in the UI for graphs or gauges.
21752185
type: number
21762186

2187+
select:
2188+
description: |
2189+
The select entity offers a limited set of selectable options.
2190+
The available options are defined by the integration driver. They can be a static list or dynamically generated
2191+
and changed at runtime.
2192+
2193+
See [select entity documentation](https://github.com/unfoldedcircle/core-api/blob/main/doc/entities/entity_select.md)
2194+
for more information.
2195+
allOf:
2196+
- $ref: '#/components/schemas/entity'
2197+
- type: object
2198+
properties:
2199+
features:
2200+
description: The select entity has no features.
2201+
type: array
2202+
options:
2203+
description: The select entity has no options.
2204+
type: object
2205+
21772206
voice_assistant:
21782207
description: |
21792208
A voice assistant entity can be used to receive a microphone input stream suitable to send voice commands
@@ -2429,6 +2458,7 @@ components:
24292458
- sensor
24302459
- remote
24312460
- ir_emitter
2461+
- select
24322462
- voice_assistant
24332463
- {} # extensible enum: there might be more supported entity types in a newer implementation than defined above
24342464

0 commit comments

Comments
 (0)