@camstack/addon-provider-homematic 1.2.107 → 1.2.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +133 -0
- package/dist/addon.mjs +133 -0
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -13591,6 +13591,70 @@ var LocationIconAssignmentSchema = object({
|
|
|
13591
13591
|
locationKey: string(),
|
|
13592
13592
|
icon: LocationIconIdSchema
|
|
13593
13593
|
});
|
|
13594
|
+
/**
|
|
13595
|
+
* One (location, description) assignment as it travels.
|
|
13596
|
+
*
|
|
13597
|
+
* Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
|
|
13598
|
+
* reason: this lived for a while in the post-analysis addon's own settings,
|
|
13599
|
+
* keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
|
|
13600
|
+
* the Locations page carried the icon and silently orphaned the description —
|
|
13601
|
+
* two authorities for one thing, joined by two different rules. Now both hang
|
|
13602
|
+
* off the location itself, on `locationIconKey`.
|
|
13603
|
+
*/
|
|
13604
|
+
var LocationDescriptionAssignmentSchema = object({
|
|
13605
|
+
locationKey: string(),
|
|
13606
|
+
description: string()
|
|
13607
|
+
});
|
|
13608
|
+
/**
|
|
13609
|
+
* A SITE ZONE — a named part of the property that several locations belong to.
|
|
13610
|
+
*
|
|
13611
|
+
* "Zona notte" holds every bedroom; "Zona giorno" the living room and the
|
|
13612
|
+
* kitchen. A camera belongs to exactly one location, and a location to at most
|
|
13613
|
+
* one zone, so a camera's zone is derived and never stored on the device: the
|
|
13614
|
+
* whole point of this entity is that grouping rooms touches no device row.
|
|
13615
|
+
*
|
|
13616
|
+
* ## Why not `zone`
|
|
13617
|
+
*
|
|
13618
|
+
* Because `zone` is already the most loaded word in this product: 612 source
|
|
13619
|
+
* files and 24 Italian strings where it means a DETECTION zone drawn on a
|
|
13620
|
+
* camera. The two are unrelated — one is a polygon in a frame, the other is a
|
|
13621
|
+
* set of rooms — and a reader who confuses them will look for a camera's
|
|
13622
|
+
* bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
|
|
13623
|
+
* word by calling the drawn one what it actually is: a detection zone.
|
|
13624
|
+
*
|
|
13625
|
+
* ## The key
|
|
13626
|
+
*
|
|
13627
|
+
* `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
|
|
13628
|
+
* use (`locationIconKey`). Membership and the icon both hang off it, so a
|
|
13629
|
+
* case-only rename keeps them, which is exactly the orphaning that cost us a
|
|
13630
|
+
* silently-dropped location description.
|
|
13631
|
+
*
|
|
13632
|
+
* The icon vocabulary is the location one, unchanged: a zone is drawn on the
|
|
13633
|
+
* same two surfaces by the same glyph map, so a second vocabulary would be a
|
|
13634
|
+
* second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
|
|
13635
|
+
*/
|
|
13636
|
+
/**
|
|
13637
|
+
* One zone as it travels: its key, the label the operator typed, its icon and
|
|
13638
|
+
* the locations inside it.
|
|
13639
|
+
*
|
|
13640
|
+
* The LABEL is carried alongside the key because the key is lossy on purpose —
|
|
13641
|
+
* a surface must show "Zona notte", not "zona notte". Locations are carried
|
|
13642
|
+
* here, rather than left to a second call, because every consumer wants both
|
|
13643
|
+
* at once and a viewer that asked twice could render a zone whose membership
|
|
13644
|
+
* it has not fetched yet.
|
|
13645
|
+
*
|
|
13646
|
+
* `icon: null` means nobody chose one, which is NOT the fallback pin: only one
|
|
13647
|
+
* of those two is a choice, and a picker has to draw them differently.
|
|
13648
|
+
*/
|
|
13649
|
+
var SiteZoneSchema = object({
|
|
13650
|
+
zoneKey: string(),
|
|
13651
|
+
label: string(),
|
|
13652
|
+
icon: LocationIconIdSchema.nullable(),
|
|
13653
|
+
/** Folded location keys, sorted. A location listed here need not be
|
|
13654
|
+
* REGISTERED — devices carry labels nobody registered, and those rooms are
|
|
13655
|
+
* the ones that most want grouping. */
|
|
13656
|
+
locationKeys: array(string())
|
|
13657
|
+
});
|
|
13594
13658
|
var ProviderStatusSchema = object({
|
|
13595
13659
|
connected: boolean(),
|
|
13596
13660
|
deviceCount: number(),
|
|
@@ -14189,6 +14253,33 @@ method(object({
|
|
|
14189
14253
|
}), _void(), {
|
|
14190
14254
|
kind: "mutation",
|
|
14191
14255
|
auth: "admin"
|
|
14256
|
+
}), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
|
|
14257
|
+
location: string(),
|
|
14258
|
+
description: string().max(400).nullable()
|
|
14259
|
+
}), _void(), {
|
|
14260
|
+
kind: "mutation",
|
|
14261
|
+
auth: "admin"
|
|
14262
|
+
}), method(_void(), array(SiteZoneSchema)), method(object({
|
|
14263
|
+
name: string(),
|
|
14264
|
+
icon: LocationIconIdSchema.nullable().optional()
|
|
14265
|
+
}), _void(), {
|
|
14266
|
+
kind: "mutation",
|
|
14267
|
+
auth: "admin"
|
|
14268
|
+
}), method(object({ name: string() }), _void(), {
|
|
14269
|
+
kind: "mutation",
|
|
14270
|
+
auth: "admin"
|
|
14271
|
+
}), method(object({
|
|
14272
|
+
from: string(),
|
|
14273
|
+
to: string()
|
|
14274
|
+
}), _void(), {
|
|
14275
|
+
kind: "mutation",
|
|
14276
|
+
auth: "admin"
|
|
14277
|
+
}), method(object({
|
|
14278
|
+
location: string(),
|
|
14279
|
+
zone: string().nullable()
|
|
14280
|
+
}), _void(), {
|
|
14281
|
+
kind: "mutation",
|
|
14282
|
+
auth: "admin"
|
|
14192
14283
|
}), method(object({
|
|
14193
14284
|
deviceId: number(),
|
|
14194
14285
|
disabled: boolean()
|
|
@@ -37099,6 +37190,12 @@ Object.freeze({
|
|
|
37099
37190
|
addonId: null,
|
|
37100
37191
|
access: "view"
|
|
37101
37192
|
},
|
|
37193
|
+
"deviceManager.listLocationDescriptions": {
|
|
37194
|
+
capName: "device-manager",
|
|
37195
|
+
capScope: "system",
|
|
37196
|
+
addonId: null,
|
|
37197
|
+
access: "view"
|
|
37198
|
+
},
|
|
37102
37199
|
"deviceManager.listLocationIcons": {
|
|
37103
37200
|
capName: "device-manager",
|
|
37104
37201
|
capScope: "system",
|
|
@@ -37117,6 +37214,12 @@ Object.freeze({
|
|
|
37117
37214
|
addonId: null,
|
|
37118
37215
|
access: "view"
|
|
37119
37216
|
},
|
|
37217
|
+
"deviceManager.listSiteZones": {
|
|
37218
|
+
capName: "device-manager",
|
|
37219
|
+
capScope: "system",
|
|
37220
|
+
addonId: null,
|
|
37221
|
+
access: "view"
|
|
37222
|
+
},
|
|
37120
37223
|
"deviceManager.listWrappersForCap": {
|
|
37121
37224
|
capName: "device-manager",
|
|
37122
37225
|
capScope: "system",
|
|
@@ -37201,12 +37304,24 @@ Object.freeze({
|
|
|
37201
37304
|
addonId: null,
|
|
37202
37305
|
access: "delete"
|
|
37203
37306
|
},
|
|
37307
|
+
"deviceManager.removeSiteZone": {
|
|
37308
|
+
capName: "device-manager",
|
|
37309
|
+
capScope: "system",
|
|
37310
|
+
addonId: null,
|
|
37311
|
+
access: "delete"
|
|
37312
|
+
},
|
|
37204
37313
|
"deviceManager.renameLocation": {
|
|
37205
37314
|
capName: "device-manager",
|
|
37206
37315
|
capScope: "system",
|
|
37207
37316
|
addonId: null,
|
|
37208
37317
|
access: "create"
|
|
37209
37318
|
},
|
|
37319
|
+
"deviceManager.renameSiteZone": {
|
|
37320
|
+
capName: "device-manager",
|
|
37321
|
+
capScope: "system",
|
|
37322
|
+
addonId: null,
|
|
37323
|
+
access: "create"
|
|
37324
|
+
},
|
|
37210
37325
|
"deviceManager.runDeviceAction": {
|
|
37211
37326
|
capName: "device-manager",
|
|
37212
37327
|
capScope: "system",
|
|
@@ -37249,12 +37364,24 @@ Object.freeze({
|
|
|
37249
37364
|
addonId: null,
|
|
37250
37365
|
access: "create"
|
|
37251
37366
|
},
|
|
37367
|
+
"deviceManager.setLocationDescription": {
|
|
37368
|
+
capName: "device-manager",
|
|
37369
|
+
capScope: "system",
|
|
37370
|
+
addonId: null,
|
|
37371
|
+
access: "create"
|
|
37372
|
+
},
|
|
37252
37373
|
"deviceManager.setLocationIcon": {
|
|
37253
37374
|
capName: "device-manager",
|
|
37254
37375
|
capScope: "system",
|
|
37255
37376
|
addonId: null,
|
|
37256
37377
|
access: "create"
|
|
37257
37378
|
},
|
|
37379
|
+
"deviceManager.setLocationZone": {
|
|
37380
|
+
capName: "device-manager",
|
|
37381
|
+
capScope: "system",
|
|
37382
|
+
addonId: null,
|
|
37383
|
+
access: "create"
|
|
37384
|
+
},
|
|
37258
37385
|
"deviceManager.setMetadata": {
|
|
37259
37386
|
capName: "device-manager",
|
|
37260
37387
|
capScope: "system",
|
|
@@ -37285,6 +37412,12 @@ Object.freeze({
|
|
|
37285
37412
|
addonId: null,
|
|
37286
37413
|
access: "create"
|
|
37287
37414
|
},
|
|
37415
|
+
"deviceManager.setSiteZone": {
|
|
37416
|
+
capName: "device-manager",
|
|
37417
|
+
capScope: "system",
|
|
37418
|
+
addonId: null,
|
|
37419
|
+
access: "create"
|
|
37420
|
+
},
|
|
37288
37421
|
"deviceManager.setStreamProfileMap": {
|
|
37289
37422
|
capName: "device-manager",
|
|
37290
37423
|
capScope: "system",
|
package/dist/addon.mjs
CHANGED
|
@@ -13592,6 +13592,70 @@ var LocationIconAssignmentSchema = object({
|
|
|
13592
13592
|
locationKey: string(),
|
|
13593
13593
|
icon: LocationIconIdSchema
|
|
13594
13594
|
});
|
|
13595
|
+
/**
|
|
13596
|
+
* One (location, description) assignment as it travels.
|
|
13597
|
+
*
|
|
13598
|
+
* Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
|
|
13599
|
+
* reason: this lived for a while in the post-analysis addon's own settings,
|
|
13600
|
+
* keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
|
|
13601
|
+
* the Locations page carried the icon and silently orphaned the description —
|
|
13602
|
+
* two authorities for one thing, joined by two different rules. Now both hang
|
|
13603
|
+
* off the location itself, on `locationIconKey`.
|
|
13604
|
+
*/
|
|
13605
|
+
var LocationDescriptionAssignmentSchema = object({
|
|
13606
|
+
locationKey: string(),
|
|
13607
|
+
description: string()
|
|
13608
|
+
});
|
|
13609
|
+
/**
|
|
13610
|
+
* A SITE ZONE — a named part of the property that several locations belong to.
|
|
13611
|
+
*
|
|
13612
|
+
* "Zona notte" holds every bedroom; "Zona giorno" the living room and the
|
|
13613
|
+
* kitchen. A camera belongs to exactly one location, and a location to at most
|
|
13614
|
+
* one zone, so a camera's zone is derived and never stored on the device: the
|
|
13615
|
+
* whole point of this entity is that grouping rooms touches no device row.
|
|
13616
|
+
*
|
|
13617
|
+
* ## Why not `zone`
|
|
13618
|
+
*
|
|
13619
|
+
* Because `zone` is already the most loaded word in this product: 612 source
|
|
13620
|
+
* files and 24 Italian strings where it means a DETECTION zone drawn on a
|
|
13621
|
+
* camera. The two are unrelated — one is a polygon in a frame, the other is a
|
|
13622
|
+
* set of rooms — and a reader who confuses them will look for a camera's
|
|
13623
|
+
* bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
|
|
13624
|
+
* word by calling the drawn one what it actually is: a detection zone.
|
|
13625
|
+
*
|
|
13626
|
+
* ## The key
|
|
13627
|
+
*
|
|
13628
|
+
* `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
|
|
13629
|
+
* use (`locationIconKey`). Membership and the icon both hang off it, so a
|
|
13630
|
+
* case-only rename keeps them, which is exactly the orphaning that cost us a
|
|
13631
|
+
* silently-dropped location description.
|
|
13632
|
+
*
|
|
13633
|
+
* The icon vocabulary is the location one, unchanged: a zone is drawn on the
|
|
13634
|
+
* same two surfaces by the same glyph map, so a second vocabulary would be a
|
|
13635
|
+
* second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
|
|
13636
|
+
*/
|
|
13637
|
+
/**
|
|
13638
|
+
* One zone as it travels: its key, the label the operator typed, its icon and
|
|
13639
|
+
* the locations inside it.
|
|
13640
|
+
*
|
|
13641
|
+
* The LABEL is carried alongside the key because the key is lossy on purpose —
|
|
13642
|
+
* a surface must show "Zona notte", not "zona notte". Locations are carried
|
|
13643
|
+
* here, rather than left to a second call, because every consumer wants both
|
|
13644
|
+
* at once and a viewer that asked twice could render a zone whose membership
|
|
13645
|
+
* it has not fetched yet.
|
|
13646
|
+
*
|
|
13647
|
+
* `icon: null` means nobody chose one, which is NOT the fallback pin: only one
|
|
13648
|
+
* of those two is a choice, and a picker has to draw them differently.
|
|
13649
|
+
*/
|
|
13650
|
+
var SiteZoneSchema = object({
|
|
13651
|
+
zoneKey: string(),
|
|
13652
|
+
label: string(),
|
|
13653
|
+
icon: LocationIconIdSchema.nullable(),
|
|
13654
|
+
/** Folded location keys, sorted. A location listed here need not be
|
|
13655
|
+
* REGISTERED — devices carry labels nobody registered, and those rooms are
|
|
13656
|
+
* the ones that most want grouping. */
|
|
13657
|
+
locationKeys: array(string())
|
|
13658
|
+
});
|
|
13595
13659
|
var ProviderStatusSchema = object({
|
|
13596
13660
|
connected: boolean(),
|
|
13597
13661
|
deviceCount: number(),
|
|
@@ -14190,6 +14254,33 @@ method(object({
|
|
|
14190
14254
|
}), _void(), {
|
|
14191
14255
|
kind: "mutation",
|
|
14192
14256
|
auth: "admin"
|
|
14257
|
+
}), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
|
|
14258
|
+
location: string(),
|
|
14259
|
+
description: string().max(400).nullable()
|
|
14260
|
+
}), _void(), {
|
|
14261
|
+
kind: "mutation",
|
|
14262
|
+
auth: "admin"
|
|
14263
|
+
}), method(_void(), array(SiteZoneSchema)), method(object({
|
|
14264
|
+
name: string(),
|
|
14265
|
+
icon: LocationIconIdSchema.nullable().optional()
|
|
14266
|
+
}), _void(), {
|
|
14267
|
+
kind: "mutation",
|
|
14268
|
+
auth: "admin"
|
|
14269
|
+
}), method(object({ name: string() }), _void(), {
|
|
14270
|
+
kind: "mutation",
|
|
14271
|
+
auth: "admin"
|
|
14272
|
+
}), method(object({
|
|
14273
|
+
from: string(),
|
|
14274
|
+
to: string()
|
|
14275
|
+
}), _void(), {
|
|
14276
|
+
kind: "mutation",
|
|
14277
|
+
auth: "admin"
|
|
14278
|
+
}), method(object({
|
|
14279
|
+
location: string(),
|
|
14280
|
+
zone: string().nullable()
|
|
14281
|
+
}), _void(), {
|
|
14282
|
+
kind: "mutation",
|
|
14283
|
+
auth: "admin"
|
|
14193
14284
|
}), method(object({
|
|
14194
14285
|
deviceId: number(),
|
|
14195
14286
|
disabled: boolean()
|
|
@@ -37100,6 +37191,12 @@ Object.freeze({
|
|
|
37100
37191
|
addonId: null,
|
|
37101
37192
|
access: "view"
|
|
37102
37193
|
},
|
|
37194
|
+
"deviceManager.listLocationDescriptions": {
|
|
37195
|
+
capName: "device-manager",
|
|
37196
|
+
capScope: "system",
|
|
37197
|
+
addonId: null,
|
|
37198
|
+
access: "view"
|
|
37199
|
+
},
|
|
37103
37200
|
"deviceManager.listLocationIcons": {
|
|
37104
37201
|
capName: "device-manager",
|
|
37105
37202
|
capScope: "system",
|
|
@@ -37118,6 +37215,12 @@ Object.freeze({
|
|
|
37118
37215
|
addonId: null,
|
|
37119
37216
|
access: "view"
|
|
37120
37217
|
},
|
|
37218
|
+
"deviceManager.listSiteZones": {
|
|
37219
|
+
capName: "device-manager",
|
|
37220
|
+
capScope: "system",
|
|
37221
|
+
addonId: null,
|
|
37222
|
+
access: "view"
|
|
37223
|
+
},
|
|
37121
37224
|
"deviceManager.listWrappersForCap": {
|
|
37122
37225
|
capName: "device-manager",
|
|
37123
37226
|
capScope: "system",
|
|
@@ -37202,12 +37305,24 @@ Object.freeze({
|
|
|
37202
37305
|
addonId: null,
|
|
37203
37306
|
access: "delete"
|
|
37204
37307
|
},
|
|
37308
|
+
"deviceManager.removeSiteZone": {
|
|
37309
|
+
capName: "device-manager",
|
|
37310
|
+
capScope: "system",
|
|
37311
|
+
addonId: null,
|
|
37312
|
+
access: "delete"
|
|
37313
|
+
},
|
|
37205
37314
|
"deviceManager.renameLocation": {
|
|
37206
37315
|
capName: "device-manager",
|
|
37207
37316
|
capScope: "system",
|
|
37208
37317
|
addonId: null,
|
|
37209
37318
|
access: "create"
|
|
37210
37319
|
},
|
|
37320
|
+
"deviceManager.renameSiteZone": {
|
|
37321
|
+
capName: "device-manager",
|
|
37322
|
+
capScope: "system",
|
|
37323
|
+
addonId: null,
|
|
37324
|
+
access: "create"
|
|
37325
|
+
},
|
|
37211
37326
|
"deviceManager.runDeviceAction": {
|
|
37212
37327
|
capName: "device-manager",
|
|
37213
37328
|
capScope: "system",
|
|
@@ -37250,12 +37365,24 @@ Object.freeze({
|
|
|
37250
37365
|
addonId: null,
|
|
37251
37366
|
access: "create"
|
|
37252
37367
|
},
|
|
37368
|
+
"deviceManager.setLocationDescription": {
|
|
37369
|
+
capName: "device-manager",
|
|
37370
|
+
capScope: "system",
|
|
37371
|
+
addonId: null,
|
|
37372
|
+
access: "create"
|
|
37373
|
+
},
|
|
37253
37374
|
"deviceManager.setLocationIcon": {
|
|
37254
37375
|
capName: "device-manager",
|
|
37255
37376
|
capScope: "system",
|
|
37256
37377
|
addonId: null,
|
|
37257
37378
|
access: "create"
|
|
37258
37379
|
},
|
|
37380
|
+
"deviceManager.setLocationZone": {
|
|
37381
|
+
capName: "device-manager",
|
|
37382
|
+
capScope: "system",
|
|
37383
|
+
addonId: null,
|
|
37384
|
+
access: "create"
|
|
37385
|
+
},
|
|
37259
37386
|
"deviceManager.setMetadata": {
|
|
37260
37387
|
capName: "device-manager",
|
|
37261
37388
|
capScope: "system",
|
|
@@ -37286,6 +37413,12 @@ Object.freeze({
|
|
|
37286
37413
|
addonId: null,
|
|
37287
37414
|
access: "create"
|
|
37288
37415
|
},
|
|
37416
|
+
"deviceManager.setSiteZone": {
|
|
37417
|
+
capName: "device-manager",
|
|
37418
|
+
capScope: "system",
|
|
37419
|
+
addonId: null,
|
|
37420
|
+
access: "create"
|
|
37421
|
+
},
|
|
37289
37422
|
"deviceManager.setStreamProfileMap": {
|
|
37290
37423
|
capName: "device-manager",
|
|
37291
37424
|
capScope: "system",
|
package/package.json
CHANGED