@camstack/types 1.2.536 → 1.2.537
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/CHANGELOG.md +10 -6
- package/dist/addon.d.ts +1 -0
- package/dist/addon.js +5 -4
- package/dist/addon.mjs +3 -3
- package/dist/capabilities/device-manager.cap.d.ts +1 -0
- package/dist/client.d.ts +1 -1
- package/dist/client.js +43 -8
- package/dist/client.mjs +43 -9
- package/dist/{device-type-BfvqqzRp.js → composed-stable-id-C3J6LxC9.js} +14 -0
- package/dist/{device-type-DTTZKB2I.mjs → composed-stable-id-DLcPInGv.mjs} +9 -1
- package/dist/composition/composed-stable-id.d.ts +6 -0
- package/dist/composition/composition.d.ts +2 -2
- package/dist/{composition-C6TZGqUb.mjs → composition-BFJq1Y88.mjs} +2 -4
- package/dist/{composition-BxalDSTt.js → composition-BcVAbtBc.js} +4 -12
- package/dist/device/container-primary-child.d.ts +37 -5
- package/dist/device/device-context.d.ts +9 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +918 -870
- package/dist/index.mjs +70 -24
- package/dist/node.js +6 -6
- package/dist/node.mjs +2 -2
- package/dist/{sleep-DnVqHJc4.mjs → sleep-B36hHDDz.mjs} +1 -1
- package/dist/{sleep-CCAQ_PEp.js → sleep-DIg2Mx82.js} +36 -36
- package/package.json +1 -1
package/dist/node.js
CHANGED
|
@@ -21,8 +21,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
enumerable: true
|
|
22
22
|
}) : target, mod));
|
|
23
23
|
//#endregion
|
|
24
|
-
const
|
|
25
|
-
const require_composition = require("./composition-
|
|
24
|
+
const require_composed_stable_id = require("./composed-stable-id-C3J6LxC9.js");
|
|
25
|
+
const require_composition = require("./composition-BcVAbtBc.js");
|
|
26
26
|
let node_crypto = require("node:crypto");
|
|
27
27
|
let node_fs = require("node:fs");
|
|
28
28
|
node_fs = __toESM(node_fs);
|
|
@@ -812,7 +812,7 @@ async function installPythonPackages(pythonPath, packages, logger) {
|
|
|
812
812
|
});
|
|
813
813
|
logger.info("Python packages installed successfully");
|
|
814
814
|
} catch (err) {
|
|
815
|
-
logger.error("Failed to install Python packages", { meta: { error:
|
|
815
|
+
logger.error("Failed to install Python packages", { meta: { error: require_composed_stable_id.errMsg(err) } });
|
|
816
816
|
throw err;
|
|
817
817
|
}
|
|
818
818
|
}
|
|
@@ -862,7 +862,7 @@ async function installPythonRequirements(pythonPath, requirementsFile, logger) {
|
|
|
862
862
|
} catch (err) {
|
|
863
863
|
logger.error("Failed to install Python requirements", { meta: {
|
|
864
864
|
requirementsFile,
|
|
865
|
-
error:
|
|
865
|
+
error: require_composed_stable_id.errMsg(err)
|
|
866
866
|
} });
|
|
867
867
|
throw err;
|
|
868
868
|
}
|
|
@@ -1253,7 +1253,7 @@ var Fmp4FragmentChild = class {
|
|
|
1253
1253
|
meta: {
|
|
1254
1254
|
sourceId: this.args.sourceId,
|
|
1255
1255
|
decodeHwAccel: requested,
|
|
1256
|
-
error:
|
|
1256
|
+
error: require_composed_stable_id.errMsg(err)
|
|
1257
1257
|
}
|
|
1258
1258
|
});
|
|
1259
1259
|
this.killChild();
|
|
@@ -1432,7 +1432,7 @@ var Fmp4FragmentChild = class {
|
|
|
1432
1432
|
tags: { deviceId: this.args.deviceId },
|
|
1433
1433
|
meta: {
|
|
1434
1434
|
sourceId: this.args.sourceId,
|
|
1435
|
-
error:
|
|
1435
|
+
error: require_composed_stable_id.errMsg(err)
|
|
1436
1436
|
}
|
|
1437
1437
|
});
|
|
1438
1438
|
}
|
package/dist/node.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { s as errMsg } from "./composed-stable-id-DLcPInGv.mjs";
|
|
2
|
+
import { An as FFMPEG_PATH_ENV, Fn as getFfmpegDownloadUrl, Hn as buildFfmpegArgs, In as canonicalHash, Kn as isSoftwareDecode, L as compositionSourceKey, Ln as Fmp4BoxSplitter, Mn as ffmpegBinaryName, Nn as FFMPEG_RELEASE, Pn as getFfmpegArtifact, i as CUSTOMIZATION_BLOCK_NAME_PREFIX, jn as chooseFfmpegBinary } from "./composition-BFJq1Y88.mjs";
|
|
3
3
|
import { createHash, createHmac, randomUUID, timingSafeEqual } from "node:crypto";
|
|
4
4
|
import * as fs from "node:fs";
|
|
5
5
|
import { chmodSync, copyFileSync, createWriteStream, existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as EventCategory } from "./event-category-78tcBemo.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { a as DeviceType, i as DeviceRole, s as errMsg } from "./composed-stable-id-DLcPInGv.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/audio/audio-chunk-format.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_event_category = require("./event-category-BC4RRerT.js");
|
|
2
|
-
const
|
|
2
|
+
const require_composed_stable_id = require("./composed-stable-id-C3J6LxC9.js");
|
|
3
3
|
let zod = require("zod");
|
|
4
4
|
//#region src/audio/audio-chunk-format.ts
|
|
5
5
|
/**
|
|
@@ -888,7 +888,7 @@ async function guarded(work) {
|
|
|
888
888
|
} catch (err) {
|
|
889
889
|
return {
|
|
890
890
|
kind: "failed",
|
|
891
|
-
error:
|
|
891
|
+
error: require_composed_stable_id.errMsg(err)
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
894
|
}
|
|
@@ -919,7 +919,7 @@ async function runAddonMigrations(host, migrations, logger, options = {}) {
|
|
|
919
919
|
metas: migrations.map((m) => m.meta)
|
|
920
920
|
});
|
|
921
921
|
} catch (err) {
|
|
922
|
-
log.error("the migration engine refused or could not take this addon catalogue — none ran", { meta: { error:
|
|
922
|
+
log.error("the migration engine refused or could not take this addon catalogue — none ran", { meta: { error: require_composed_stable_id.errMsg(err) } });
|
|
923
923
|
return {
|
|
924
924
|
...NOT_RUN,
|
|
925
925
|
blockOwner: migrations.filter((m) => m.meta.onFailure === "block-owner").map((m) => m.meta.id)
|
|
@@ -974,7 +974,7 @@ async function runAddonMigrations(host, migrations, logger, options = {}) {
|
|
|
974
974
|
} catch (err) {
|
|
975
975
|
log.error("migration could not be completed with the engine", {
|
|
976
976
|
tags,
|
|
977
|
-
meta: { error:
|
|
977
|
+
meta: { error: require_composed_stable_id.errMsg(err) }
|
|
978
978
|
});
|
|
979
979
|
failed.push(step.id);
|
|
980
980
|
}
|
|
@@ -7911,7 +7911,7 @@ var ACTUATOR_CAP_VOCABULARY = {
|
|
|
7911
7911
|
events: { onStateChanged: { notOperatorFacing: "the `on` state trigger phrases both edges of this change" } },
|
|
7912
7912
|
overrides: {
|
|
7913
7913
|
byType: {
|
|
7914
|
-
[
|
|
7914
|
+
[require_composed_stable_id.DeviceType.Siren]: {
|
|
7915
7915
|
actions: {
|
|
7916
7916
|
"switch.on": {
|
|
7917
7917
|
label: t("Sound", "Fai suonare"),
|
|
@@ -7931,7 +7931,7 @@ var ACTUATOR_CAP_VOCABULARY = {
|
|
|
7931
7931
|
icon: "siren"
|
|
7932
7932
|
} }
|
|
7933
7933
|
},
|
|
7934
|
-
[
|
|
7934
|
+
[require_composed_stable_id.DeviceType.Light]: {
|
|
7935
7935
|
actions: {
|
|
7936
7936
|
"switch.on": { icon: "lightbulb" },
|
|
7937
7937
|
"switch.off": { icon: "lightbulb-off" }
|
|
@@ -7940,7 +7940,7 @@ var ACTUATOR_CAP_VOCABULARY = {
|
|
|
7940
7940
|
}
|
|
7941
7941
|
},
|
|
7942
7942
|
byRole: {
|
|
7943
|
-
[
|
|
7943
|
+
[require_composed_stable_id.DeviceRole.Siren]: {
|
|
7944
7944
|
actions: {
|
|
7945
7945
|
"switch.on": {
|
|
7946
7946
|
label: t("Sound", "Fai suonare"),
|
|
@@ -7960,21 +7960,21 @@ var ACTUATOR_CAP_VOCABULARY = {
|
|
|
7960
7960
|
icon: "siren"
|
|
7961
7961
|
} }
|
|
7962
7962
|
},
|
|
7963
|
-
[
|
|
7963
|
+
[require_composed_stable_id.DeviceRole.Floodlight]: {
|
|
7964
7964
|
actions: {
|
|
7965
7965
|
"switch.on": { icon: "lightbulb" },
|
|
7966
7966
|
"switch.off": { icon: "lightbulb-off" }
|
|
7967
7967
|
},
|
|
7968
7968
|
state: { on: { icon: "lightbulb" } }
|
|
7969
7969
|
},
|
|
7970
|
-
[
|
|
7970
|
+
[require_composed_stable_id.DeviceRole.Spotlight]: {
|
|
7971
7971
|
actions: {
|
|
7972
7972
|
"switch.on": { icon: "lightbulb" },
|
|
7973
7973
|
"switch.off": { icon: "lightbulb-off" }
|
|
7974
7974
|
},
|
|
7975
7975
|
state: { on: { icon: "lightbulb" } }
|
|
7976
7976
|
},
|
|
7977
|
-
[
|
|
7977
|
+
[require_composed_stable_id.DeviceRole.Chime]: { actions: {
|
|
7978
7978
|
"switch.on": {
|
|
7979
7979
|
label: t("Enable chime", "Attiva il campanello"),
|
|
7980
7980
|
phrase: t("Enable the chime {device}", "Attiva il campanello {device}"),
|
|
@@ -7986,7 +7986,7 @@ var ACTUATOR_CAP_VOCABULARY = {
|
|
|
7986
7986
|
icon: "bell-off"
|
|
7987
7987
|
}
|
|
7988
7988
|
} },
|
|
7989
|
-
[
|
|
7989
|
+
[require_composed_stable_id.DeviceRole.PirSensor]: { actions: {
|
|
7990
7990
|
"switch.on": {
|
|
7991
7991
|
label: t("Arm PIR", "Attiva il PIR"),
|
|
7992
7992
|
phrase: t("Arm the PIR sensor {device}", "Attiva il sensore PIR {device}"),
|
|
@@ -7998,7 +7998,7 @@ var ACTUATOR_CAP_VOCABULARY = {
|
|
|
7998
7998
|
icon: "radar"
|
|
7999
7999
|
}
|
|
8000
8000
|
} },
|
|
8001
|
-
[
|
|
8001
|
+
[require_composed_stable_id.DeviceRole.Nightvision]: { actions: {
|
|
8002
8002
|
"switch.on": {
|
|
8003
8003
|
label: t("Night vision on", "Visione notturna attiva"),
|
|
8004
8004
|
phrase: t("Turn on night vision on {device}", "Attiva la visione notturna di {device}"),
|
|
@@ -8010,7 +8010,7 @@ var ACTUATOR_CAP_VOCABULARY = {
|
|
|
8010
8010
|
icon: "sun"
|
|
8011
8011
|
}
|
|
8012
8012
|
} },
|
|
8013
|
-
[
|
|
8013
|
+
[require_composed_stable_id.DeviceRole.PrivacyMask]: { actions: {
|
|
8014
8014
|
"switch.on": {
|
|
8015
8015
|
label: t("Privacy on", "Privacy attiva"),
|
|
8016
8016
|
phrase: t("Turn on privacy on {device}", "Attiva la privacy su {device}"),
|
|
@@ -8022,7 +8022,7 @@ var ACTUATOR_CAP_VOCABULARY = {
|
|
|
8022
8022
|
icon: "eye"
|
|
8023
8023
|
}
|
|
8024
8024
|
} },
|
|
8025
|
-
[
|
|
8025
|
+
[require_composed_stable_id.DeviceRole.Autotrack]: { actions: {
|
|
8026
8026
|
"switch.on": {
|
|
8027
8027
|
label: t("Autotrack on", "Inseguimento attivo"),
|
|
8028
8028
|
phrase: t("Start autotracking on {device}", "Attiva l’inseguimento su {device}"),
|
|
@@ -8034,7 +8034,7 @@ var ACTUATOR_CAP_VOCABULARY = {
|
|
|
8034
8034
|
icon: "crosshair"
|
|
8035
8035
|
}
|
|
8036
8036
|
} },
|
|
8037
|
-
[
|
|
8037
|
+
[require_composed_stable_id.DeviceRole.Outlet]: {
|
|
8038
8038
|
actions: {
|
|
8039
8039
|
"switch.on": { icon: "plug-zap" },
|
|
8040
8040
|
"switch.off": { icon: "plug" }
|
|
@@ -8304,7 +8304,7 @@ var ACTUATOR_CAP_VOCABULARY = {
|
|
|
8304
8304
|
icon: "blinds"
|
|
8305
8305
|
}],
|
|
8306
8306
|
overrides: { byRole: {
|
|
8307
|
-
[
|
|
8307
|
+
[require_composed_stable_id.DeviceRole.CoverGarage]: { actions: {
|
|
8308
8308
|
"cover.open": {
|
|
8309
8309
|
phrase: t("Open the garage door {device}", "Apri il garage {device}"),
|
|
8310
8310
|
icon: "warehouse"
|
|
@@ -8314,7 +8314,7 @@ var ACTUATOR_CAP_VOCABULARY = {
|
|
|
8314
8314
|
icon: "warehouse"
|
|
8315
8315
|
}
|
|
8316
8316
|
} },
|
|
8317
|
-
[
|
|
8317
|
+
[require_composed_stable_id.DeviceRole.CoverGate]: { actions: {
|
|
8318
8318
|
"cover.open": {
|
|
8319
8319
|
phrase: t("Open the gate {device}", "Apri il cancello {device}"),
|
|
8320
8320
|
icon: "fence"
|
|
@@ -8324,7 +8324,7 @@ var ACTUATOR_CAP_VOCABULARY = {
|
|
|
8324
8324
|
icon: "fence"
|
|
8325
8325
|
}
|
|
8326
8326
|
} },
|
|
8327
|
-
[
|
|
8327
|
+
[require_composed_stable_id.DeviceRole.CoverDoor]: { actions: {
|
|
8328
8328
|
"cover.open": {
|
|
8329
8329
|
phrase: t("Open the door {device}", "Apri la porta {device}"),
|
|
8330
8330
|
icon: "door-open"
|
|
@@ -8334,7 +8334,7 @@ var ACTUATOR_CAP_VOCABULARY = {
|
|
|
8334
8334
|
icon: "door-closed"
|
|
8335
8335
|
}
|
|
8336
8336
|
} },
|
|
8337
|
-
[
|
|
8337
|
+
[require_composed_stable_id.DeviceRole.CoverWindow]: { actions: {
|
|
8338
8338
|
"cover.open": {
|
|
8339
8339
|
phrase: t("Open the window {device}", "Apri la finestra {device}"),
|
|
8340
8340
|
icon: "app-window"
|
|
@@ -8344,11 +8344,11 @@ var ACTUATOR_CAP_VOCABULARY = {
|
|
|
8344
8344
|
icon: "app-window"
|
|
8345
8345
|
}
|
|
8346
8346
|
} },
|
|
8347
|
-
[
|
|
8347
|
+
[require_composed_stable_id.DeviceRole.CoverShutter]: { actions: {
|
|
8348
8348
|
"cover.open": { phrase: t("Raise the shutter {device}", "Alza la tapparella {device}") },
|
|
8349
8349
|
"cover.close": { phrase: t("Lower the shutter {device}", "Abbassa la tapparella {device}") }
|
|
8350
8350
|
} },
|
|
8351
|
-
[
|
|
8351
|
+
[require_composed_stable_id.DeviceRole.CoverAwning]: { actions: {
|
|
8352
8352
|
"cover.open": { phrase: t("Extend the awning {device}", "Apri la tenda da sole {device}") },
|
|
8353
8353
|
"cover.close": { phrase: t("Retract the awning {device}", "Chiudi la tenda da sole {device}") }
|
|
8354
8354
|
} }
|
|
@@ -10812,7 +10812,7 @@ var APPLIANCE_CAP_VOCABULARY = {
|
|
|
10812
10812
|
}
|
|
10813
10813
|
},
|
|
10814
10814
|
overrides: { byType: {
|
|
10815
|
-
[
|
|
10815
|
+
[require_composed_stable_id.DeviceType.Washer]: {
|
|
10816
10816
|
state: { running: {
|
|
10817
10817
|
whenTrue: t("When the washing machine starts", "Quando la lavatrice inizia"),
|
|
10818
10818
|
whenFalse: t("When the washing machine has finished", "Quando la lavatrice ha finito")
|
|
@@ -10822,7 +10822,7 @@ var APPLIANCE_CAP_VOCABULARY = {
|
|
|
10822
10822
|
onFinished: { phrase: t("When the washing machine has finished", "Quando la lavatrice ha finito") }
|
|
10823
10823
|
}
|
|
10824
10824
|
},
|
|
10825
|
-
[
|
|
10825
|
+
[require_composed_stable_id.DeviceType.Dryer]: {
|
|
10826
10826
|
state: { running: {
|
|
10827
10827
|
whenTrue: t("When the dryer starts", "Quando l'asciugatrice inizia"),
|
|
10828
10828
|
whenFalse: t("When the dryer has finished", "Quando l'asciugatrice ha finito")
|
|
@@ -10832,7 +10832,7 @@ var APPLIANCE_CAP_VOCABULARY = {
|
|
|
10832
10832
|
onFinished: { phrase: t("When the dryer has finished", "Quando l'asciugatrice ha finito") }
|
|
10833
10833
|
}
|
|
10834
10834
|
},
|
|
10835
|
-
[
|
|
10835
|
+
[require_composed_stable_id.DeviceType.Dishwasher]: {
|
|
10836
10836
|
state: { running: {
|
|
10837
10837
|
whenTrue: t("When the dishwasher starts", "Quando la lavastoviglie inizia"),
|
|
10838
10838
|
whenFalse: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito")
|
|
@@ -11691,73 +11691,73 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
11691
11691
|
icon: "toggle-right"
|
|
11692
11692
|
}],
|
|
11693
11693
|
overrides: { byRole: {
|
|
11694
|
-
[
|
|
11694
|
+
[require_composed_stable_id.DeviceRole.MotionSensor]: { state: { on: {
|
|
11695
11695
|
label: t("Motion", "Movimento"),
|
|
11696
11696
|
whenTrue: t("When {device} detects motion", "Quando {device} rileva movimento"),
|
|
11697
11697
|
whenFalse: t("When motion clears on {device}", "Quando il movimento su {device} cessa"),
|
|
11698
11698
|
icon: "activity"
|
|
11699
11699
|
} } },
|
|
11700
|
-
[
|
|
11700
|
+
[require_composed_stable_id.DeviceRole.ContactSensor]: { state: { on: {
|
|
11701
11701
|
label: t("Open", "Aperto"),
|
|
11702
11702
|
whenTrue: t("When {device} opens", "Quando {device} si apre"),
|
|
11703
11703
|
whenFalse: t("When {device} closes", "Quando {device} si chiude"),
|
|
11704
11704
|
icon: "door-open"
|
|
11705
11705
|
} } },
|
|
11706
|
-
[
|
|
11706
|
+
[require_composed_stable_id.DeviceRole.LeakSensor]: { state: { on: {
|
|
11707
11707
|
label: t("Leak", "Perdita"),
|
|
11708
11708
|
whenTrue: t("When {device} detects a leak", "Quando {device} rileva una perdita"),
|
|
11709
11709
|
whenFalse: t("When {device} is dry again", "Quando {device} torna asciutto"),
|
|
11710
11710
|
icon: "droplets"
|
|
11711
11711
|
} } },
|
|
11712
|
-
[
|
|
11712
|
+
[require_composed_stable_id.DeviceRole.SmokeSensor]: { state: { on: {
|
|
11713
11713
|
label: t("Smoke", "Fumo"),
|
|
11714
11714
|
whenTrue: t("When {device} detects smoke", "Quando {device} rileva fumo"),
|
|
11715
11715
|
whenFalse: t("When smoke clears on {device}", "Quando il fumo su {device} si dirada"),
|
|
11716
11716
|
icon: "alarm-smoke"
|
|
11717
11717
|
} } },
|
|
11718
|
-
[
|
|
11718
|
+
[require_composed_stable_id.DeviceRole.COSensor]: { state: { on: {
|
|
11719
11719
|
label: t("Carbon monoxide", "Monossido di carbonio"),
|
|
11720
11720
|
whenTrue: t("When {device} detects carbon monoxide", "Quando {device} rileva monossido di carbonio"),
|
|
11721
11721
|
whenFalse: t("When the carbon monoxide clears on {device}", "Quando il monossido su {device} rientra"),
|
|
11722
11722
|
icon: "cloud-alert"
|
|
11723
11723
|
} } },
|
|
11724
|
-
[
|
|
11724
|
+
[require_composed_stable_id.DeviceRole.GasSensor]: { state: { on: {
|
|
11725
11725
|
label: t("Gas", "Gas"),
|
|
11726
11726
|
whenTrue: t("When {device} detects gas", "Quando {device} rileva gas"),
|
|
11727
11727
|
whenFalse: t("When the gas clears on {device}", "Quando il gas su {device} rientra"),
|
|
11728
11728
|
icon: "flame"
|
|
11729
11729
|
} } },
|
|
11730
|
-
[
|
|
11730
|
+
[require_composed_stable_id.DeviceRole.TamperSensor]: { state: { on: {
|
|
11731
11731
|
label: t("Tampered", "Manomesso"),
|
|
11732
11732
|
whenTrue: t("When {device} is tampered with", "Quando {device} viene manomesso"),
|
|
11733
11733
|
whenFalse: t("When the tamper alert on {device} clears", "Quando l’allarme di manomissione di {device} rientra"),
|
|
11734
11734
|
icon: "shield-alert"
|
|
11735
11735
|
} } },
|
|
11736
|
-
[
|
|
11736
|
+
[require_composed_stable_id.DeviceRole.VibrationSensor]: { state: { on: {
|
|
11737
11737
|
label: t("Vibration", "Vibrazione"),
|
|
11738
11738
|
whenTrue: t("When {device} vibrates", "Quando {device} vibra"),
|
|
11739
11739
|
whenFalse: t("When {device} is still again", "Quando {device} torna fermo"),
|
|
11740
11740
|
icon: "vibrate"
|
|
11741
11741
|
} } },
|
|
11742
|
-
[
|
|
11742
|
+
[require_composed_stable_id.DeviceRole.ConnectivitySensor]: { state: { on: {
|
|
11743
11743
|
label: t("Connected", "Connesso"),
|
|
11744
11744
|
whenTrue: t("When {device} connects", "Quando {device} si connette"),
|
|
11745
11745
|
whenFalse: t("When {device} disconnects", "Quando {device} si disconnette"),
|
|
11746
11746
|
icon: "wifi"
|
|
11747
11747
|
} } },
|
|
11748
|
-
[
|
|
11748
|
+
[require_composed_stable_id.DeviceRole.SoundSensor]: { state: { on: {
|
|
11749
11749
|
label: t("Sound", "Suono"),
|
|
11750
11750
|
whenTrue: t("When {device} hears a sound", "Quando {device} sente un suono"),
|
|
11751
11751
|
whenFalse: t("When {device} is quiet again", "Quando {device} torna silenzioso"),
|
|
11752
11752
|
icon: "ear"
|
|
11753
11753
|
} } },
|
|
11754
|
-
[
|
|
11754
|
+
[require_composed_stable_id.DeviceRole.BatterySensor]: { state: { on: {
|
|
11755
11755
|
label: t("Battery low", "Batteria scarica"),
|
|
11756
11756
|
whenTrue: t("When the battery of {device} runs low", "Quando la batteria di {device} si scarica"),
|
|
11757
11757
|
whenFalse: t("When the battery of {device} is fine again", "Quando la batteria di {device} torna a posto"),
|
|
11758
11758
|
icon: "battery-low"
|
|
11759
11759
|
} } },
|
|
11760
|
-
[
|
|
11760
|
+
[require_composed_stable_id.DeviceRole.BinaryHelper]: { state: { on: {
|
|
11761
11761
|
label: t("On", "Acceso"),
|
|
11762
11762
|
whenTrue: t("When {device} turns on", "Quando {device} si accende"),
|
|
11763
11763
|
whenFalse: t("When {device} turns off", "Quando {device} si spegne"),
|