@camstack/addon-admin-ui 1.2.696 → 1.2.697

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.
Files changed (90) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/assets/{AccessSection-DBw9dSVv.js → AccessSection-DdGWzCNU.js} +1 -1
  3. package/dist/assets/{Addons-TvNpLht1.js → Addons-B0bqL6tU.js} +1 -1
  4. package/dist/assets/{AdminPage-D-42p0zJ.js → AdminPage-CdTTxNI2.js} +1 -1
  5. package/dist/assets/{AdminSectionedPage-B5GOooM0.js → AdminSectionedPage-naipwiRu.js} +1 -1
  6. package/dist/assets/{AiProfiles-DlKtprai.js → AiProfiles-DNb_fYYp.js} +1 -1
  7. package/dist/assets/{Archive-BQDpg_08.js → Archive-7CE6jZjq.js} +1 -1
  8. package/dist/assets/{BootstrapSettingsForm-BL0hjm9l.js → BootstrapSettingsForm-DFMtetlU.js} +1 -1
  9. package/dist/assets/{Build-Bu4Bxagh.js → Build-DxY2TX10.js} +1 -1
  10. package/dist/assets/{Calendars-D3iE7d8_.js → Calendars-CP8C8VtZ.js} +1 -1
  11. package/dist/assets/{Cluster-BhXcShEj.js → Cluster-C4FhspzG.js} +1 -1
  12. package/dist/assets/{CompositionBlockEditor-CNkCk9s-.js → CompositionBlockEditor-MQKfvO2_.js} +1 -1
  13. package/dist/assets/{CompositionEditorPage-C77fa6LE.js → CompositionEditorPage-BTZJ1SGJ.js} +1 -1
  14. package/dist/assets/{Data-Cfk7yUvg.js → Data-C6KNxbbA.js} +1 -1
  15. package/dist/assets/{DeviceDetail-B6udVrkD.js → DeviceDetail-Osm-Rh6F.js} +1 -1
  16. package/dist/assets/{Devices-B0ZxVuMi.js → Devices-utVd78jI.js} +1 -1
  17. package/dist/assets/{EmbedDevicePage-DXWbq6WH.js → EmbedDevicePage-CB8RtuTi.js} +1 -1
  18. package/dist/assets/{EmbedPlayerPage-VQ9qihSP.js → EmbedPlayerPage-BR-eSBu0.js} +1 -1
  19. package/dist/assets/{History-DkI0W6BU.js → History-tKHh0cHS.js} +1 -1
  20. package/dist/assets/{Identity-CM_CZRA4.js → Identity-6rJA2fNv.js} +1 -1
  21. package/dist/assets/{InstancesTable-C5jjxivJ.js → InstancesTable-Gj2icd8R.js} +1 -1
  22. package/dist/assets/{IntegrationDetail-BgaXmMfk.js → IntegrationDetail-C5mkMk4l.js} +1 -1
  23. package/dist/assets/{Integrations-DPm5yxgr.js → Integrations-BFnupnaS.js} +1 -1
  24. package/dist/assets/{Integrations-DfrAjyWF.js → Integrations-DWhc4Sc8.js} +1 -1
  25. package/dist/assets/{Library-DGmJL0N0.js → Library-FLyCVVDD.js} +1 -1
  26. package/dist/assets/{Locations-Dp3wEUYu.js → Locations-D-ZRoAVT.js} +1 -1
  27. package/dist/assets/{Logs-BCnR-SVf.js → Logs-D72884eX.js} +1 -1
  28. package/dist/assets/{MaskShapeCanvas-w3PC4VBb.js → MaskShapeCanvas-FsP-Pqfm.js} +1 -1
  29. package/dist/assets/{MotionZonesSettings-BBq4hzJx.js → MotionZonesSettings-DWnvsLfI.js} +1 -1
  30. package/dist/assets/{MyAccess-D_jQhXKN.js → MyAccess-CaeqS22Q.js} +1 -1
  31. package/dist/assets/{Network-CKe51Q6z.js → Network-IA4ekRza.js} +1 -1
  32. package/dist/assets/{NewExportModal-CtdGrB2I.js → NewExportModal-5HfHutIX.js} +1 -1
  33. package/dist/assets/{NodeAddonsSettingsPanel-C3dJn-fh.js → NodeAddonsSettingsPanel-DEfnyzvR.js} +1 -1
  34. package/dist/assets/{Notifications-CqbnHXa5.js → Notifications-ClpQwHYS.js} +1 -1
  35. package/dist/assets/{PanelContent-DxT98JSE.js → PanelContent-CvEORG5m.js} +1 -1
  36. package/dist/assets/{Pipeline-CS1qQfNV.js → Pipeline-BsG-C_sg.js} +1 -1
  37. package/dist/assets/{PrivacyMaskSettings-BfxUJRP5.js → PrivacyMaskSettings-DCyzjqzQ.js} +1 -1
  38. package/dist/assets/{SceneMonitorEditor-BGbRIidY.js → SceneMonitorEditor-CV82fzoU.js} +1 -1
  39. package/dist/assets/{SessionsList-xfSyrhfI.js → SessionsList-PTKo0Lkj.js} +1 -1
  40. package/dist/assets/{Showroom-BLra3VI2.js → Showroom-BQd-Ik5x.js} +1 -1
  41. package/dist/assets/{StorageLocationsTable-Bvnj4vNs.js → StorageLocationsTable-CQpdu3Aj.js} +1 -1
  42. package/dist/assets/{System-CoL1HGLA.js → System-mDTNPf2A.js} +1 -1
  43. package/dist/assets/{TemplateEditorDialog-DPu33U2o.js → TemplateEditorDialog-CEGwmxkN.js} +1 -1
  44. package/dist/assets/{Terminal-DQbR0Vke.js → Terminal-f3U9kOJ9.js} +1 -1
  45. package/dist/assets/{TrainingProviders-iVXTSrXv.js → TrainingProviders-RkzNtyQH.js} +1 -1
  46. package/dist/assets/{Viewer-BLyOB1a5.js → Viewer-5BTY7nR7.js} +1 -1
  47. package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-BLcAA_9W.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-Bjw5Y-ao.js} +1 -1
  48. package/dist/assets/{action-draft-h2jfjoOr.js → action-draft-ClaKheRp.js} +1 -1
  49. package/dist/assets/{ai-page.helpers-BckFcRJ5.js → ai-page.helpers-UE-kLqk-.js} +1 -1
  50. package/dist/assets/{assignment-candidates-jsZ9xPAI.js → assignment-candidates-4DJypkPw.js} +1 -1
  51. package/dist/assets/{authed-media-aZe747dF.js → authed-media-HuCfJg8e.js} +1 -1
  52. package/dist/assets/{board-model-BZBm4HOa.js → board-model-BiC_AOnT.js} +1 -1
  53. package/dist/assets/{camera-block-model-DwaKOD5B.js → camera-block-model-g3cq_EI_.js} +1 -1
  54. package/dist/assets/client-jwdAAPeF.js +1122 -0
  55. package/dist/assets/{command-vocab-Bz3giRzQ.js → command-vocab-9mWzh5PF.js} +1 -1
  56. package/dist/assets/{device-detail-maRRGKct.js → device-detail-YfGCWj8t.js} +1 -1
  57. package/dist/assets/{device-integration-icon-CimhOdbQ.js → device-integration-icon-DM6LkNcP.js} +1 -1
  58. package/dist/assets/device-picker-model-CS9GUXwM.js +1 -0
  59. package/dist/assets/{dist-Bd7_9OIo.js → dist-CVN4KkB9.js} +1 -1
  60. package/dist/assets/dist-DkjIIXcA.js +1122 -0
  61. package/dist/assets/{format-BtpezAH4.js → format-BFqaqsZF.js} +1 -1
  62. package/dist/assets/{hostInit-B2s6xmn7.js → hostInit-D0OCyJdS.js} +1 -1
  63. package/dist/assets/i18n-CZf--AlM.js +1 -0
  64. package/dist/assets/{icons-Dt2xZ6Fm.js → icons-DWGskgV4.js} +1 -1
  65. package/dist/assets/{index-DctP1W4e.js → index-BAoWvnYw.js} +3 -3
  66. package/dist/assets/{linked-devices-model-Doz5OOH3.js → linked-devices-model-BzrCMmaN.js} +1 -1
  67. package/dist/assets/{mf-entry-bootstrap-0-3150042d.js → mf-entry-bootstrap-0-fadd666d.js} +2 -2
  68. package/dist/assets/mount-CS9GUXwM.js +1 -0
  69. package/dist/assets/{notification-rule-status-Dp2Kfduw.js → notification-rule-status-DUgKlnjE.js} +1 -1
  70. package/dist/assets/{player-overlays-BbQvhXKQ.js → player-overlays-BwkSi_4-.js} +1 -1
  71. package/dist/assets/remoteEntry-DmNGDfRG.js +1 -0
  72. package/dist/assets/src-CTVIVqdZ.js +279 -0
  73. package/dist/assets/{sso-popup-CxbOOUhY.js → sso-popup-Dgqs_a8a.js} +1 -1
  74. package/dist/assets/{step-inspector-model-6y4qcr-P.js → step-inspector-model-D61dFKRl.js} +1 -1
  75. package/dist/assets/{use-scenes-feed-DcbGpD63.js → use-scenes-feed-BhsIhVzS.js} +1 -1
  76. package/dist/assets/{useAdminDeviceRemoval-DdJa-ero.js → useAdminDeviceRemoval-5dMFC-df.js} +1 -1
  77. package/dist/assets/useEventInvalidation-CS9GUXwM.js +1 -0
  78. package/dist/assets/{useNodeUrlSelection-Ct71i8dD.js → useNodeUrlSelection-DOGBUYEz.js} +1 -1
  79. package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-CBjK3ZNJ.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-IXviF-_2.js} +2 -2
  80. package/dist/index.html +8 -8
  81. package/dist/server/addon.js +513 -47
  82. package/package.json +2 -2
  83. package/dist/assets/client-da_C5OO7.js +0 -1120
  84. package/dist/assets/device-picker-model-DIA15wsm.js +0 -1
  85. package/dist/assets/dist-ByKvh0vl.js +0 -1120
  86. package/dist/assets/i18n-CFfN2jss.js +0 -1
  87. package/dist/assets/mount-DIA15wsm.js +0 -1
  88. package/dist/assets/remoteEntry-B7v5YKWw.js +0 -1
  89. package/dist/assets/src-lYocp_hv.js +0 -279
  90. package/dist/assets/useEventInvalidation-DIA15wsm.js +0 -1
@@ -5973,7 +5973,7 @@ var ZodIssueCode = {
5973
5973
  var ZodFirstPartyTypeKind;
5974
5974
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5975
5975
  //#endregion
5976
- //#region ../types/dist/sleep-BT1bLgPq.mjs
5976
+ //#region ../types/dist/sleep-dgC2VKW4.mjs
5977
5977
  /**
5978
5978
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5979
5979
  * window to float samples (D455).
@@ -9962,6 +9962,10 @@ var CAP_VOCABULARY_BY_NAME = {
9962
9962
  it: "Commuta {device}"
9963
9963
  },
9964
9964
  icon: "toggle-right",
9965
+ sideEffects: [{
9966
+ field: "on",
9967
+ negate: true
9968
+ }],
9965
9969
  offeredWhen: {
9966
9970
  method: "getOptions",
9967
9971
  field: "supportsSetState"
@@ -11076,7 +11080,15 @@ var CAP_VOCABULARY_BY_NAME = {
11076
11080
  effect: {
11077
11081
  field: "state",
11078
11082
  value: "locked"
11079
- }
11083
+ },
11084
+ hold: { effects: [{
11085
+ field: "state",
11086
+ value: "locking",
11087
+ when: {
11088
+ field: "state",
11089
+ notIn: ["locked"]
11090
+ }
11091
+ }] }
11080
11092
  },
11081
11093
  {
11082
11094
  id: "lock.unlock",
@@ -11105,7 +11117,15 @@ var CAP_VOCABULARY_BY_NAME = {
11105
11117
  effect: {
11106
11118
  field: "state",
11107
11119
  value: "unlocked"
11108
- }
11120
+ },
11121
+ hold: { effects: [{
11122
+ field: "state",
11123
+ value: "unlocking",
11124
+ when: {
11125
+ field: "state",
11126
+ notIn: ["unlocked"]
11127
+ }
11128
+ }] }
11109
11129
  },
11110
11130
  {
11111
11131
  id: "lock.open",
@@ -11419,6 +11439,14 @@ var CAP_VOCABULARY_BY_NAME = {
11419
11439
  step: .5,
11420
11440
  unit: "°C"
11421
11441
  }
11442
+ }],
11443
+ effect: {
11444
+ field: "targetLow",
11445
+ fromArg: "targetLow"
11446
+ },
11447
+ sideEffects: [{
11448
+ field: "targetHigh",
11449
+ fromArg: "targetHigh"
11422
11450
  }]
11423
11451
  },
11424
11452
  {
@@ -11475,7 +11503,11 @@ var CAP_VOCABULARY_BY_NAME = {
11475
11503
  from: "status",
11476
11504
  field: "availableFanModes"
11477
11505
  }
11478
- }]
11506
+ }],
11507
+ effect: {
11508
+ field: "fanMode",
11509
+ fromArg: "fanMode"
11510
+ }
11479
11511
  },
11480
11512
  {
11481
11513
  id: "climate.preset",
@@ -11500,7 +11532,11 @@ var CAP_VOCABULARY_BY_NAME = {
11500
11532
  from: "status",
11501
11533
  field: "availablePresets"
11502
11534
  }
11503
- }]
11535
+ }],
11536
+ effect: {
11537
+ field: "preset",
11538
+ fromArg: "preset"
11539
+ }
11504
11540
  },
11505
11541
  {
11506
11542
  id: "climate.swingVerticalOn",
@@ -11733,7 +11769,15 @@ var CAP_VOCABULARY_BY_NAME = {
11733
11769
  effect: {
11734
11770
  field: "speed",
11735
11771
  value: 100
11736
- }
11772
+ },
11773
+ sideEffects: [{
11774
+ field: "preset",
11775
+ value: "",
11776
+ when: {
11777
+ field: "preset",
11778
+ notIn: [""]
11779
+ }
11780
+ }]
11737
11781
  },
11738
11782
  {
11739
11783
  id: "fan.speed",
@@ -11764,7 +11808,15 @@ var CAP_VOCABULARY_BY_NAME = {
11764
11808
  effect: {
11765
11809
  field: "speed",
11766
11810
  fromArg: "speed"
11767
- }
11811
+ },
11812
+ sideEffects: [{
11813
+ field: "preset",
11814
+ value: "",
11815
+ when: {
11816
+ field: "preset",
11817
+ notIn: [""]
11818
+ }
11819
+ }]
11768
11820
  },
11769
11821
  {
11770
11822
  id: "fan.preset",
@@ -11789,7 +11841,11 @@ var CAP_VOCABULARY_BY_NAME = {
11789
11841
  from: "status",
11790
11842
  field: "availablePresets"
11791
11843
  }
11792
- }]
11844
+ }],
11845
+ effect: {
11846
+ field: "preset",
11847
+ fromArg: "preset"
11848
+ }
11793
11849
  },
11794
11850
  {
11795
11851
  id: "fan.forward",
@@ -12334,7 +12390,15 @@ var CAP_VOCABULARY_BY_NAME = {
12334
12390
  effect: {
12335
12391
  field: "state",
12336
12392
  value: "disarmed"
12337
- }
12393
+ },
12394
+ hold: { effects: [{
12395
+ field: "state",
12396
+ value: "disarming",
12397
+ when: {
12398
+ field: "state",
12399
+ notIn: ["disarmed"]
12400
+ }
12401
+ }] }
12338
12402
  },
12339
12403
  {
12340
12404
  id: "alarm.arm.home",
@@ -12364,7 +12428,15 @@ var CAP_VOCABULARY_BY_NAME = {
12364
12428
  effect: {
12365
12429
  field: "state",
12366
12430
  value: "armed_home"
12367
- }
12431
+ },
12432
+ hold: { effects: [{
12433
+ field: "state",
12434
+ value: "arming",
12435
+ when: {
12436
+ field: "state",
12437
+ notIn: ["armed_home"]
12438
+ }
12439
+ }] }
12368
12440
  },
12369
12441
  {
12370
12442
  id: "alarm.arm.away",
@@ -12394,7 +12466,15 @@ var CAP_VOCABULARY_BY_NAME = {
12394
12466
  effect: {
12395
12467
  field: "state",
12396
12468
  value: "armed_away"
12397
- }
12469
+ },
12470
+ hold: { effects: [{
12471
+ field: "state",
12472
+ value: "arming",
12473
+ when: {
12474
+ field: "state",
12475
+ notIn: ["armed_away"]
12476
+ }
12477
+ }] }
12398
12478
  },
12399
12479
  {
12400
12480
  id: "alarm.arm.night",
@@ -12424,7 +12504,15 @@ var CAP_VOCABULARY_BY_NAME = {
12424
12504
  effect: {
12425
12505
  field: "state",
12426
12506
  value: "armed_night"
12427
- }
12507
+ },
12508
+ hold: { effects: [{
12509
+ field: "state",
12510
+ value: "arming",
12511
+ when: {
12512
+ field: "state",
12513
+ notIn: ["armed_night"]
12514
+ }
12515
+ }] }
12428
12516
  },
12429
12517
  {
12430
12518
  id: "alarm.arm.vacation",
@@ -12454,7 +12542,15 @@ var CAP_VOCABULARY_BY_NAME = {
12454
12542
  effect: {
12455
12543
  field: "state",
12456
12544
  value: "armed_vacation"
12457
- }
12545
+ },
12546
+ hold: { effects: [{
12547
+ field: "state",
12548
+ value: "arming",
12549
+ when: {
12550
+ field: "state",
12551
+ notIn: ["armed_vacation"]
12552
+ }
12553
+ }] }
12458
12554
  },
12459
12555
  {
12460
12556
  id: "alarm.arm.custom_bypass",
@@ -12484,7 +12580,15 @@ var CAP_VOCABULARY_BY_NAME = {
12484
12580
  effect: {
12485
12581
  field: "state",
12486
12582
  value: "armed_custom_bypass"
12487
- }
12583
+ },
12584
+ hold: { effects: [{
12585
+ field: "state",
12586
+ value: "arming",
12587
+ when: {
12588
+ field: "state",
12589
+ notIn: ["armed_custom_bypass"]
12590
+ }
12591
+ }] }
12488
12592
  }
12489
12593
  ],
12490
12594
  state: [{
@@ -13626,7 +13730,14 @@ var CAP_VOCABULARY_BY_NAME = {
13626
13730
  quantity: "mass"
13627
13731
  },
13628
13732
  optional: true
13629
- }]
13733
+ }],
13734
+ hold: {
13735
+ effects: [{
13736
+ field: "feeding",
13737
+ value: true
13738
+ }],
13739
+ holdMs: 1e4
13740
+ }
13630
13741
  },
13631
13742
  {
13632
13743
  id: "petFeeder.feedHoppers",
@@ -13670,7 +13781,14 @@ var CAP_VOCABULARY_BY_NAME = {
13670
13781
  quantity: "mass"
13671
13782
  },
13672
13783
  optional: true
13673
- }]
13784
+ }],
13785
+ hold: {
13786
+ effects: [{
13787
+ field: "feeding",
13788
+ value: true
13789
+ }],
13790
+ holdMs: 1e4
13791
+ }
13674
13792
  },
13675
13793
  {
13676
13794
  id: "petFeeder.cancelFeed",
@@ -13761,7 +13879,11 @@ var CAP_VOCABULARY_BY_NAME = {
13761
13879
  it: "Attiva il blocco bambini di {device}"
13762
13880
  },
13763
13881
  icon: "lock",
13764
- args: { on: true }
13882
+ args: { on: true },
13883
+ effect: {
13884
+ field: "childLock",
13885
+ value: true
13886
+ }
13765
13887
  },
13766
13888
  {
13767
13889
  id: "petFeeder.childLockOff",
@@ -13775,7 +13897,11 @@ var CAP_VOCABULARY_BY_NAME = {
13775
13897
  it: "Disattiva il blocco bambini di {device}"
13776
13898
  },
13777
13899
  icon: "lock-open",
13778
- args: { on: false }
13900
+ args: { on: false },
13901
+ effect: {
13902
+ field: "childLock",
13903
+ value: false
13904
+ }
13779
13905
  },
13780
13906
  {
13781
13907
  id: "petFeeder.lightOn",
@@ -13789,7 +13915,11 @@ var CAP_VOCABULARY_BY_NAME = {
13789
13915
  it: "Accendi la spia di {device}"
13790
13916
  },
13791
13917
  icon: "lightbulb",
13792
- args: { on: true }
13918
+ args: { on: true },
13919
+ effect: {
13920
+ field: "indicatorLight",
13921
+ value: true
13922
+ }
13793
13923
  },
13794
13924
  {
13795
13925
  id: "petFeeder.lightOff",
@@ -13803,7 +13933,11 @@ var CAP_VOCABULARY_BY_NAME = {
13803
13933
  it: "Spegni la spia di {device}"
13804
13934
  },
13805
13935
  icon: "lightbulb-off",
13806
- args: { on: false }
13936
+ args: { on: false },
13937
+ effect: {
13938
+ field: "indicatorLight",
13939
+ value: false
13940
+ }
13807
13941
  },
13808
13942
  {
13809
13943
  id: "petFeeder.feedSoundOn",
@@ -13817,7 +13951,11 @@ var CAP_VOCABULARY_BY_NAME = {
13817
13951
  it: "Attiva il suono di erogazione di {device}"
13818
13952
  },
13819
13953
  icon: "volume-2",
13820
- args: { on: true }
13954
+ args: { on: true },
13955
+ effect: {
13956
+ field: "feedSound",
13957
+ value: true
13958
+ }
13821
13959
  },
13822
13960
  {
13823
13961
  id: "petFeeder.feedSoundOff",
@@ -13831,7 +13969,11 @@ var CAP_VOCABULARY_BY_NAME = {
13831
13969
  it: "Disattiva il suono di erogazione di {device}"
13832
13970
  },
13833
13971
  icon: "volume-x",
13834
- args: { on: false }
13972
+ args: { on: false },
13973
+ effect: {
13974
+ field: "feedSound",
13975
+ value: false
13976
+ }
13835
13977
  },
13836
13978
  {
13837
13979
  id: "petFeeder.volume",
@@ -13856,7 +13998,11 @@ var CAP_VOCABULARY_BY_NAME = {
13856
13998
  min: 0,
13857
13999
  step: 1
13858
14000
  }
13859
- }]
14001
+ }],
14002
+ effect: {
14003
+ field: "volume",
14004
+ fromArg: "level"
14005
+ }
13860
14006
  }
13861
14007
  ],
13862
14008
  state: [
@@ -13928,7 +14074,11 @@ var CAP_VOCABULARY_BY_NAME = {
13928
14074
  it: "Avvia la pompa di {device}"
13929
14075
  },
13930
14076
  icon: "play",
13931
- args: { on: true }
14077
+ args: { on: true },
14078
+ effect: {
14079
+ field: "pumpRunning",
14080
+ value: true
14081
+ }
13932
14082
  }, {
13933
14083
  id: "petFountain.pumpOff",
13934
14084
  method: "setPump",
@@ -13941,7 +14091,11 @@ var CAP_VOCABULARY_BY_NAME = {
13941
14091
  it: "Ferma la pompa di {device}"
13942
14092
  },
13943
14093
  icon: "square",
13944
- args: { on: false }
14094
+ args: { on: false },
14095
+ effect: {
14096
+ field: "pumpRunning",
14097
+ value: false
14098
+ }
13945
14099
  }],
13946
14100
  state: [{
13947
14101
  kind: "boolean",
@@ -13993,7 +14147,11 @@ var CAP_VOCABULARY_BY_NAME = {
13993
14147
  it: "Fai lavorare la pompa di {device} a ciclo acceso/spento"
13994
14148
  },
13995
14149
  icon: "timer",
13996
- args: { on: true }
14150
+ args: { on: true },
14151
+ effect: {
14152
+ field: "enabled",
14153
+ value: true
14154
+ }
13997
14155
  },
13998
14156
  {
13999
14157
  id: "pumpCycle.off",
@@ -14007,7 +14165,11 @@ var CAP_VOCABULARY_BY_NAME = {
14007
14165
  it: "Fai lavorare la pompa di {device} in continuo"
14008
14166
  },
14009
14167
  icon: "timer-off",
14010
- args: { on: false }
14168
+ args: { on: false },
14169
+ effect: {
14170
+ field: "enabled",
14171
+ value: false
14172
+ }
14011
14173
  },
14012
14174
  {
14013
14175
  id: "pumpCycle.onMinutes",
@@ -14033,7 +14195,12 @@ var CAP_VOCABULARY_BY_NAME = {
14033
14195
  step: 1,
14034
14196
  unit: "min"
14035
14197
  }
14036
- }]
14198
+ }],
14199
+ effect: {
14200
+ field: "onTime",
14201
+ fromArg: "minutes",
14202
+ scale: 60
14203
+ }
14037
14204
  },
14038
14205
  {
14039
14206
  id: "pumpCycle.offMinutes",
@@ -14059,7 +14226,12 @@ var CAP_VOCABULARY_BY_NAME = {
14059
14226
  step: 1,
14060
14227
  unit: "min"
14061
14228
  }
14062
- }]
14229
+ }],
14230
+ effect: {
14231
+ field: "offTime",
14232
+ fromArg: "minutes",
14233
+ scale: 60
14234
+ }
14063
14235
  }
14064
14236
  ],
14065
14237
  state: [{
@@ -14176,7 +14348,11 @@ var CAP_VOCABULARY_BY_NAME = {
14176
14348
  en: "Play on {device}",
14177
14349
  it: "Avvia la riproduzione su {device}"
14178
14350
  },
14179
- icon: "play"
14351
+ icon: "play",
14352
+ effect: {
14353
+ field: "state",
14354
+ value: "playing"
14355
+ }
14180
14356
  },
14181
14357
  {
14182
14358
  id: "media.pause",
@@ -14189,7 +14365,11 @@ var CAP_VOCABULARY_BY_NAME = {
14189
14365
  en: "Pause {device}",
14190
14366
  it: "Metti in pausa {device}"
14191
14367
  },
14192
- icon: "pause"
14368
+ icon: "pause",
14369
+ effect: {
14370
+ field: "state",
14371
+ value: "paused"
14372
+ }
14193
14373
  },
14194
14374
  {
14195
14375
  id: "media.stop",
@@ -14255,7 +14435,11 @@ var CAP_VOCABULARY_BY_NAME = {
14255
14435
  step: 1,
14256
14436
  unit: "%"
14257
14437
  }
14258
- }]
14438
+ }],
14439
+ effect: {
14440
+ field: "volumeLevel",
14441
+ fromArg: "volumeLevel"
14442
+ }
14259
14443
  },
14260
14444
  {
14261
14445
  id: "media.mute",
@@ -14269,7 +14453,11 @@ var CAP_VOCABULARY_BY_NAME = {
14269
14453
  it: "Silenzia {device}"
14270
14454
  },
14271
14455
  icon: "volume-x",
14272
- args: { muted: true }
14456
+ args: { muted: true },
14457
+ effect: {
14458
+ field: "isMuted",
14459
+ value: true
14460
+ }
14273
14461
  },
14274
14462
  {
14275
14463
  id: "media.unmute",
@@ -14283,7 +14471,11 @@ var CAP_VOCABULARY_BY_NAME = {
14283
14471
  it: "Riattiva l’audio di {device}"
14284
14472
  },
14285
14473
  icon: "volume-2",
14286
- args: { muted: false }
14474
+ args: { muted: false },
14475
+ effect: {
14476
+ field: "isMuted",
14477
+ value: false
14478
+ }
14287
14479
  },
14288
14480
  {
14289
14481
  id: "media.shuffleOn",
@@ -14297,7 +14489,11 @@ var CAP_VOCABULARY_BY_NAME = {
14297
14489
  it: "Attiva la riproduzione casuale su {device}"
14298
14490
  },
14299
14491
  icon: "shuffle",
14300
- args: { shuffle: true }
14492
+ args: { shuffle: true },
14493
+ effect: {
14494
+ field: "shuffle",
14495
+ value: true
14496
+ }
14301
14497
  },
14302
14498
  {
14303
14499
  id: "media.shuffleOff",
@@ -14311,7 +14507,11 @@ var CAP_VOCABULARY_BY_NAME = {
14311
14507
  it: "Disattiva la riproduzione casuale su {device}"
14312
14508
  },
14313
14509
  icon: "shuffle",
14314
- args: { shuffle: false }
14510
+ args: { shuffle: false },
14511
+ effect: {
14512
+ field: "shuffle",
14513
+ value: false
14514
+ }
14315
14515
  },
14316
14516
  {
14317
14517
  id: "media.repeat",
@@ -14357,7 +14557,11 @@ var CAP_VOCABULARY_BY_NAME = {
14357
14557
  }
14358
14558
  ]
14359
14559
  }
14360
- }]
14560
+ }],
14561
+ effect: {
14562
+ field: "repeat",
14563
+ fromArg: "repeat"
14564
+ }
14361
14565
  },
14362
14566
  {
14363
14567
  id: "media.source",
@@ -14382,7 +14586,11 @@ var CAP_VOCABULARY_BY_NAME = {
14382
14586
  from: "status",
14383
14587
  field: "availableSources"
14384
14588
  }
14385
- }]
14589
+ }],
14590
+ effect: {
14591
+ field: "source",
14592
+ fromArg: "source"
14593
+ }
14386
14594
  },
14387
14595
  {
14388
14596
  id: "media.seek",
@@ -14922,7 +15130,14 @@ var CAP_VOCABULARY_BY_NAME = {
14922
15130
  en: "Run {device}",
14923
15131
  it: "Esegui {device}"
14924
15132
  },
14925
- icon: "scroll-text"
15133
+ icon: "scroll-text",
15134
+ hold: {
15135
+ effects: [{
15136
+ field: "isRunning",
15137
+ value: true
15138
+ }],
15139
+ holdMs: 1e4
15140
+ }
14926
15141
  }, {
14927
15142
  id: "script.stop",
14928
15143
  method: "stop",
@@ -14934,7 +15149,11 @@ var CAP_VOCABULARY_BY_NAME = {
14934
15149
  en: "Stop {device}",
14935
15150
  it: "Ferma {device}"
14936
15151
  },
14937
- icon: "square"
15152
+ icon: "square",
15153
+ effect: {
15154
+ field: "isRunning",
15155
+ value: false
15156
+ }
14938
15157
  }],
14939
15158
  state: [{
14940
15159
  kind: "boolean",
@@ -14972,7 +15191,11 @@ var CAP_VOCABULARY_BY_NAME = {
14972
15191
  en: "Enable {device}",
14973
15192
  it: "Abilita {device}"
14974
15193
  },
14975
- icon: "toggle-right"
15194
+ icon: "toggle-right",
15195
+ effect: {
15196
+ field: "enabled",
15197
+ value: true
15198
+ }
14976
15199
  },
14977
15200
  {
14978
15201
  id: "haAutomation.disable",
@@ -14985,7 +15208,11 @@ var CAP_VOCABULARY_BY_NAME = {
14985
15208
  en: "Disable {device}",
14986
15209
  it: "Disabilita {device}"
14987
15210
  },
14988
- icon: "toggle-left"
15211
+ icon: "toggle-left",
15212
+ effect: {
15213
+ field: "enabled",
15214
+ value: false
15215
+ }
14989
15216
  },
14990
15217
  {
14991
15218
  id: "haAutomation.trigger",
@@ -51982,6 +52209,14 @@ DeviceType.AlarmPanel, method(object({ deviceId: number$1().int().nonnegative()
51982
52209
  field: "state",
51983
52210
  value: "disarmed"
51984
52211
  },
52212
+ hold: { effects: [{
52213
+ field: "state",
52214
+ value: "disarming",
52215
+ when: {
52216
+ field: "state",
52217
+ notIn: ["disarmed"]
52218
+ }
52219
+ }] },
51985
52220
  openArgs: [{
51986
52221
  key: "code",
51987
52222
  label: t("PIN code", "Codice PIN"),
@@ -52011,6 +52246,14 @@ DeviceType.AlarmPanel, method(object({ deviceId: number$1().int().nonnegative()
52011
52246
  field: "state",
52012
52247
  value: "armed_home"
52013
52248
  },
52249
+ hold: { effects: [{
52250
+ field: "state",
52251
+ value: "arming",
52252
+ when: {
52253
+ field: "state",
52254
+ notIn: ["armed_home"]
52255
+ }
52256
+ }] },
52014
52257
  args: { mode: "home" },
52015
52258
  openArgs: [{
52016
52259
  key: "code",
@@ -52031,6 +52274,14 @@ DeviceType.AlarmPanel, method(object({ deviceId: number$1().int().nonnegative()
52031
52274
  field: "state",
52032
52275
  value: "armed_away"
52033
52276
  },
52277
+ hold: { effects: [{
52278
+ field: "state",
52279
+ value: "arming",
52280
+ when: {
52281
+ field: "state",
52282
+ notIn: ["armed_away"]
52283
+ }
52284
+ }] },
52034
52285
  args: { mode: "away" },
52035
52286
  openArgs: [{
52036
52287
  key: "code",
@@ -52051,6 +52302,14 @@ DeviceType.AlarmPanel, method(object({ deviceId: number$1().int().nonnegative()
52051
52302
  field: "state",
52052
52303
  value: "armed_night"
52053
52304
  },
52305
+ hold: { effects: [{
52306
+ field: "state",
52307
+ value: "arming",
52308
+ when: {
52309
+ field: "state",
52310
+ notIn: ["armed_night"]
52311
+ }
52312
+ }] },
52054
52313
  args: { mode: "night" },
52055
52314
  openArgs: [{
52056
52315
  key: "code",
@@ -52071,6 +52330,14 @@ DeviceType.AlarmPanel, method(object({ deviceId: number$1().int().nonnegative()
52071
52330
  field: "state",
52072
52331
  value: "armed_vacation"
52073
52332
  },
52333
+ hold: { effects: [{
52334
+ field: "state",
52335
+ value: "arming",
52336
+ when: {
52337
+ field: "state",
52338
+ notIn: ["armed_vacation"]
52339
+ }
52340
+ }] },
52074
52341
  args: { mode: "vacation" },
52075
52342
  openArgs: [{
52076
52343
  key: "code",
@@ -52091,6 +52358,14 @@ DeviceType.AlarmPanel, method(object({ deviceId: number$1().int().nonnegative()
52091
52358
  field: "state",
52092
52359
  value: "armed_custom_bypass"
52093
52360
  },
52361
+ hold: { effects: [{
52362
+ field: "state",
52363
+ value: "arming",
52364
+ when: {
52365
+ field: "state",
52366
+ notIn: ["armed_custom_bypass"]
52367
+ }
52368
+ }] },
52094
52369
  args: { mode: "custom_bypass" },
52095
52370
  openArgs: [{
52096
52371
  key: "code",
@@ -52588,6 +52863,10 @@ DeviceType.Automation, method(object({ deviceId: number$1().int().nonnegative()
52588
52863
  auth: "admin",
52589
52864
  actions: [{
52590
52865
  id: "haAutomation.enable",
52866
+ effect: {
52867
+ field: "enabled",
52868
+ value: true
52869
+ },
52591
52870
  label: t("Enable automation", "Abilita l’automazione"),
52592
52871
  phrase: t("Enable {device}", "Abilita {device}"),
52593
52872
  icon: "toggle-right"
@@ -52597,6 +52876,10 @@ DeviceType.Automation, method(object({ deviceId: number$1().int().nonnegative()
52597
52876
  auth: "admin",
52598
52877
  actions: [{
52599
52878
  id: "haAutomation.disable",
52879
+ effect: {
52880
+ field: "enabled",
52881
+ value: false
52882
+ },
52600
52883
  label: t("Disable automation", "Disabilita l’automazione"),
52601
52884
  phrase: t("Disable {device}", "Disabilita {device}"),
52602
52885
  icon: "toggle-left"
@@ -54846,6 +55129,14 @@ DeviceType.Climate, method(object({
54846
55129
  label: t("Set temperature range", "Imposta l’intervallo di temperatura"),
54847
55130
  phrase: t("Keep {device} between {targetLow} and {targetHigh}", "Mantieni {device} tra {targetLow} e {targetHigh}"),
54848
55131
  icon: "thermometer",
55132
+ effect: {
55133
+ field: "targetLow",
55134
+ fromArg: "targetLow"
55135
+ },
55136
+ sideEffects: [{
55137
+ field: "targetHigh",
55138
+ fromArg: "targetHigh"
55139
+ }],
54849
55140
  openArgs: [{
54850
55141
  key: "targetLow",
54851
55142
  label: t("Lowest", "Minima"),
@@ -54902,6 +55193,10 @@ DeviceType.Climate, method(object({
54902
55193
  label: t("Set fan mode", "Imposta la ventilazione"),
54903
55194
  phrase: t("Set the fan of {device} to {fanMode}", "Imposta la ventilazione di {device} su {fanMode}"),
54904
55195
  icon: "fan",
55196
+ effect: {
55197
+ field: "fanMode",
55198
+ fromArg: "fanMode"
55199
+ },
54905
55200
  openArgs: [{
54906
55201
  key: "fanMode",
54907
55202
  label: t("Fan mode", "Ventilazione"),
@@ -54923,6 +55218,10 @@ DeviceType.Climate, method(object({
54923
55218
  label: t("Set preset", "Imposta il preset"),
54924
55219
  phrase: t("Set {device} to preset {preset}", "Imposta {device} sul preset {preset}"),
54925
55220
  icon: "list",
55221
+ effect: {
55222
+ field: "preset",
55223
+ fromArg: "preset"
55224
+ },
54926
55225
  openArgs: [{
54927
55226
  key: "preset",
54928
55227
  label: t("Preset", "Preset"),
@@ -56373,6 +56672,10 @@ DeviceType.MediaPlayer, optionalMethod(deviceOnly, _void(), {
56373
56672
  auth: "protected",
56374
56673
  actions: [{
56375
56674
  id: "media.play",
56675
+ effect: {
56676
+ field: "state",
56677
+ value: "playing"
56678
+ },
56376
56679
  label: t("Play", "Riproduci"),
56377
56680
  phrase: t("Play on {device}", "Avvia la riproduzione su {device}"),
56378
56681
  icon: "play"
@@ -56382,6 +56685,10 @@ DeviceType.MediaPlayer, optionalMethod(deviceOnly, _void(), {
56382
56685
  auth: "protected",
56383
56686
  actions: [{
56384
56687
  id: "media.pause",
56688
+ effect: {
56689
+ field: "state",
56690
+ value: "paused"
56691
+ },
56385
56692
  label: t("Pause media", "Metti in pausa"),
56386
56693
  phrase: t("Pause {device}", "Metti in pausa {device}"),
56387
56694
  icon: "pause"
@@ -56421,6 +56728,10 @@ DeviceType.MediaPlayer, optionalMethod(deviceOnly, _void(), {
56421
56728
  auth: "protected",
56422
56729
  actions: [{
56423
56730
  id: "media.volume",
56731
+ effect: {
56732
+ field: "volumeLevel",
56733
+ fromArg: "volumeLevel"
56734
+ },
56424
56735
  label: t("Set volume", "Imposta il volume"),
56425
56736
  phrase: t("Set the volume of {device} to {volumeLevel}", "Imposta il volume di {device} al {volumeLevel}"),
56426
56737
  icon: "volume-2",
@@ -56444,12 +56755,20 @@ DeviceType.MediaPlayer, optionalMethod(deviceOnly, _void(), {
56444
56755
  auth: "protected",
56445
56756
  actions: [{
56446
56757
  id: "media.mute",
56758
+ effect: {
56759
+ field: "isMuted",
56760
+ value: true
56761
+ },
56447
56762
  label: t("Mute", "Silenzia"),
56448
56763
  phrase: t("Mute {device}", "Silenzia {device}"),
56449
56764
  icon: "volume-x",
56450
56765
  args: { muted: true }
56451
56766
  }, {
56452
56767
  id: "media.unmute",
56768
+ effect: {
56769
+ field: "isMuted",
56770
+ value: false
56771
+ },
56453
56772
  label: t("Unmute", "Riattiva l’audio"),
56454
56773
  phrase: t("Unmute {device}", "Riattiva l’audio di {device}"),
56455
56774
  icon: "volume-2",
@@ -56463,12 +56782,20 @@ DeviceType.MediaPlayer, optionalMethod(deviceOnly, _void(), {
56463
56782
  auth: "protected",
56464
56783
  actions: [{
56465
56784
  id: "media.shuffleOn",
56785
+ effect: {
56786
+ field: "shuffle",
56787
+ value: true
56788
+ },
56466
56789
  label: t("Shuffle on", "Riproduzione casuale attiva"),
56467
56790
  phrase: t("Turn on shuffle on {device}", "Attiva la riproduzione casuale su {device}"),
56468
56791
  icon: "shuffle",
56469
56792
  args: { shuffle: true }
56470
56793
  }, {
56471
56794
  id: "media.shuffleOff",
56795
+ effect: {
56796
+ field: "shuffle",
56797
+ value: false
56798
+ },
56472
56799
  label: t("Shuffle off", "Riproduzione casuale spenta"),
56473
56800
  phrase: t("Turn off shuffle on {device}", "Disattiva la riproduzione casuale su {device}"),
56474
56801
  icon: "shuffle",
@@ -56482,6 +56809,10 @@ DeviceType.MediaPlayer, optionalMethod(deviceOnly, _void(), {
56482
56809
  auth: "protected",
56483
56810
  actions: [{
56484
56811
  id: "media.repeat",
56812
+ effect: {
56813
+ field: "repeat",
56814
+ fromArg: "repeat"
56815
+ },
56485
56816
  label: t("Set repeat", "Imposta la ripetizione"),
56486
56817
  phrase: t("Set repeat on {device} to {repeat}", "Imposta la ripetizione di {device} su {repeat}"),
56487
56818
  icon: "repeat",
@@ -56515,6 +56846,10 @@ DeviceType.MediaPlayer, optionalMethod(deviceOnly, _void(), {
56515
56846
  auth: "protected",
56516
56847
  actions: [{
56517
56848
  id: "media.source",
56849
+ effect: {
56850
+ field: "source",
56851
+ fromArg: "source"
56852
+ },
56518
56853
  label: t("Select source", "Scegli la sorgente"),
56519
56854
  phrase: t("Switch {device} to {source}", "Passa {device} alla sorgente {source}"),
56520
56855
  icon: "cast",
@@ -60573,8 +60908,12 @@ var ClaimsListingSchema = discriminatedUnion("state", [object({
60573
60908
  })]);
60574
60909
  method(object({ deviceId: number$1() }), record(string(), record(string(), unknown()))), method(object({
60575
60910
  deviceId: number$1(),
60576
- capName: string()
60577
- }), record(string(), unknown()).nullable()), method(object({}), record(string(), record(string(), record(string(), unknown())))), method(object({
60911
+ capName: string(),
60912
+ /** The slice the device CONFIRMED, without a held command (D1061) — history and automations. */
60913
+ confirmed: boolean().optional()
60914
+ }), record(string(), unknown()).nullable()), method(object({
60915
+ /** The slices the devices CONFIRMED, without held commands (D1061). */
60916
+ confirmed: boolean().optional() }), record(string(), record(string(), record(string(), unknown())))), method(object({
60578
60917
  deviceId: number$1(),
60579
60918
  capName: string(),
60580
60919
  slice: record(string(), unknown())
@@ -62468,7 +62807,15 @@ DeviceType.Fan, optionalMethod(object({
62468
62807
  field: "speed",
62469
62808
  value: 100
62470
62809
  },
62471
- args: { speed: 100 }
62810
+ args: { speed: 100 },
62811
+ sideEffects: [{
62812
+ field: "preset",
62813
+ value: "",
62814
+ when: {
62815
+ field: "preset",
62816
+ notIn: [""]
62817
+ }
62818
+ }]
62472
62819
  },
62473
62820
  {
62474
62821
  id: "fan.speed",
@@ -62479,6 +62826,14 @@ DeviceType.Fan, optionalMethod(object({
62479
62826
  field: "speed",
62480
62827
  fromArg: "speed"
62481
62828
  },
62829
+ sideEffects: [{
62830
+ field: "preset",
62831
+ value: "",
62832
+ when: {
62833
+ field: "preset",
62834
+ notIn: [""]
62835
+ }
62836
+ }],
62482
62837
  openArgs: [{
62483
62838
  key: "speed",
62484
62839
  label: t("Speed", "Velocità"),
@@ -62503,6 +62858,10 @@ DeviceType.Fan, optionalMethod(object({
62503
62858
  label: t("Set preset", "Imposta il preset"),
62504
62859
  phrase: t("Set {device} to preset {preset}", "Imposta {device} sul preset {preset}"),
62505
62860
  icon: "list",
62861
+ effect: {
62862
+ field: "preset",
62863
+ fromArg: "preset"
62864
+ },
62506
62865
  openArgs: [{
62507
62866
  key: "preset",
62508
62867
  label: t("Preset", "Preset"),
@@ -66675,6 +67034,14 @@ DeviceType.Lock, method(object({
66675
67034
  field: "state",
66676
67035
  value: "locked"
66677
67036
  },
67037
+ hold: { effects: [{
67038
+ field: "state",
67039
+ value: "locking",
67040
+ when: {
67041
+ field: "state",
67042
+ notIn: ["locked"]
67043
+ }
67044
+ }] },
66678
67045
  openArgs: [{
66679
67046
  key: "code",
66680
67047
  label: t("PIN code", "Codice PIN"),
@@ -66707,6 +67074,14 @@ DeviceType.Lock, method(object({
66707
67074
  field: "state",
66708
67075
  value: "unlocked"
66709
67076
  },
67077
+ hold: { effects: [{
67078
+ field: "state",
67079
+ value: "unlocking",
67080
+ when: {
67081
+ field: "state",
67082
+ notIn: ["unlocked"]
67083
+ }
67084
+ }] },
66710
67085
  openArgs: [{
66711
67086
  key: "code",
66712
67087
  label: t("PIN code", "Codice PIN"),
@@ -77415,6 +77790,14 @@ method(object({ deviceId: number$1().int() }), object({
77415
77790
  auth: "admin"
77416
77791
  }), NOT_A_DEVICE.PIPELINE;
77417
77792
  /**
77793
+ * Hold limits a cap's vocabulary may declare on an action (D1061).
77794
+ *
77795
+ * A one-shot command (feed, run a script) has no lasting state to confirm; it
77796
+ * holds its in-progress flag just long enough that a second tap, before the
77797
+ * device reports, is seen as "already running" and refused.
77798
+ */
77799
+ var ONE_SHOT_HOLD_MS = 1e4;
77800
+ /**
77418
77801
  * Feeder connectivity / power status — mirrors the HA petkit device-status
77419
77802
  * enum: `normal` (online, mains), `offline` (not reaching PetKit cloud),
77420
77803
  * `on_batteries` (running on battery backup). `null` until first reported.
@@ -77518,6 +77901,13 @@ DeviceType.PetFeeder, method(object({
77518
77901
  label: t("Feed", "Dai da mangiare"),
77519
77902
  phrase: t("Dispense {grams} from {device}", "Eroga {grams} da {device}"),
77520
77903
  icon: "paw-print",
77904
+ hold: {
77905
+ effects: [{
77906
+ field: "feeding",
77907
+ value: true
77908
+ }],
77909
+ holdMs: ONE_SHOT_HOLD_MS
77910
+ },
77521
77911
  openArgs: [{
77522
77912
  key: "grams",
77523
77913
  label: t("Grams", "Grammi"),
@@ -77536,6 +77926,13 @@ DeviceType.PetFeeder, method(object({
77536
77926
  label: t("Feed from both hoppers", "Eroga da entrambi i serbatoi"),
77537
77927
  phrase: t("Dispense {hopper1} and {hopper2} from {device}", "Eroga {hopper1} e {hopper2} da {device}"),
77538
77928
  icon: "paw-print",
77929
+ hold: {
77930
+ effects: [{
77931
+ field: "feeding",
77932
+ value: true
77933
+ }],
77934
+ holdMs: ONE_SHOT_HOLD_MS
77935
+ },
77539
77936
  openArgs: [{
77540
77937
  key: "hopper1",
77541
77938
  label: t("Hopper 1", "Serbatoio 1"),
@@ -77627,12 +78024,20 @@ DeviceType.PetFeeder, method(object({
77627
78024
  auth: "protected",
77628
78025
  actions: [{
77629
78026
  id: "petFeeder.childLockOn",
78027
+ effect: {
78028
+ field: "childLock",
78029
+ value: true
78030
+ },
77630
78031
  label: t("Child lock on", "Blocco bambini attivo"),
77631
78032
  phrase: t("Turn on the child lock of {device}", "Attiva il blocco bambini di {device}"),
77632
78033
  icon: "lock",
77633
78034
  args: { on: true }
77634
78035
  }, {
77635
78036
  id: "petFeeder.childLockOff",
78037
+ effect: {
78038
+ field: "childLock",
78039
+ value: false
78040
+ },
77636
78041
  label: t("Child lock off", "Blocco bambini spento"),
77637
78042
  phrase: t("Turn off the child lock of {device}", "Disattiva il blocco bambini di {device}"),
77638
78043
  icon: "lock-open",
@@ -77646,12 +78051,20 @@ DeviceType.PetFeeder, method(object({
77646
78051
  auth: "protected",
77647
78052
  actions: [{
77648
78053
  id: "petFeeder.lightOn",
78054
+ effect: {
78055
+ field: "indicatorLight",
78056
+ value: true
78057
+ },
77649
78058
  label: t("Indicator light on", "Spia accesa"),
77650
78059
  phrase: t("Turn on the indicator light of {device}", "Accendi la spia di {device}"),
77651
78060
  icon: "lightbulb",
77652
78061
  args: { on: true }
77653
78062
  }, {
77654
78063
  id: "petFeeder.lightOff",
78064
+ effect: {
78065
+ field: "indicatorLight",
78066
+ value: false
78067
+ },
77655
78068
  label: t("Indicator light off", "Spia spenta"),
77656
78069
  phrase: t("Turn off the indicator light of {device}", "Spegni la spia di {device}"),
77657
78070
  icon: "lightbulb-off",
@@ -77665,12 +78078,20 @@ DeviceType.PetFeeder, method(object({
77665
78078
  auth: "protected",
77666
78079
  actions: [{
77667
78080
  id: "petFeeder.feedSoundOn",
78081
+ effect: {
78082
+ field: "feedSound",
78083
+ value: true
78084
+ },
77668
78085
  label: t("Feeding sound on", "Suono di erogazione attivo"),
77669
78086
  phrase: t("Turn on the feeding sound of {device}", "Attiva il suono di erogazione di {device}"),
77670
78087
  icon: "volume-2",
77671
78088
  args: { on: true }
77672
78089
  }, {
77673
78090
  id: "petFeeder.feedSoundOff",
78091
+ effect: {
78092
+ field: "feedSound",
78093
+ value: false
78094
+ },
77674
78095
  label: t("Feeding sound off", "Suono di erogazione spento"),
77675
78096
  phrase: t("Turn off the feeding sound of {device}", "Disattiva il suono di erogazione di {device}"),
77676
78097
  icon: "volume-x",
@@ -77684,6 +78105,10 @@ DeviceType.PetFeeder, method(object({
77684
78105
  auth: "protected",
77685
78106
  actions: [{
77686
78107
  id: "petFeeder.volume",
78108
+ effect: {
78109
+ field: "volume",
78110
+ fromArg: "level"
78111
+ },
77687
78112
  label: t("Set volume", "Imposta il volume"),
77688
78113
  phrase: t("Set the volume of {device} to {level}", "Imposta il volume di {device} a {level}"),
77689
78114
  icon: "volume-2",
@@ -77745,12 +78170,20 @@ DeviceType.PetFountain, method(object({
77745
78170
  auth: "protected",
77746
78171
  actions: [{
77747
78172
  id: "petFountain.pumpOn",
78173
+ effect: {
78174
+ field: "pumpRunning",
78175
+ value: true
78176
+ },
77748
78177
  label: t("Pump on", "Pompa accesa"),
77749
78178
  phrase: t("Start the pump of {device}", "Avvia la pompa di {device}"),
77750
78179
  icon: "play",
77751
78180
  args: { on: true }
77752
78181
  }, {
77753
78182
  id: "petFountain.pumpOff",
78183
+ effect: {
78184
+ field: "pumpRunning",
78185
+ value: false
78186
+ },
77754
78187
  label: t("Pump off", "Pompa spenta"),
77755
78188
  phrase: t("Stop the pump of {device}", "Ferma la pompa di {device}"),
77756
78189
  icon: "square",
@@ -80031,12 +80464,20 @@ DeviceType.PetFountain, method(object({
80031
80464
  auth: "protected",
80032
80465
  actions: [{
80033
80466
  id: "pumpCycle.on",
80467
+ effect: {
80468
+ field: "enabled",
80469
+ value: true
80470
+ },
80034
80471
  label: t("Pump cycle on", "Ciclo pompa attivo"),
80035
80472
  phrase: t("Run the pump of {device} on its on/off cycle", "Fai lavorare la pompa di {device} a ciclo acceso/spento"),
80036
80473
  icon: "timer",
80037
80474
  args: { on: true }
80038
80475
  }, {
80039
80476
  id: "pumpCycle.off",
80477
+ effect: {
80478
+ field: "enabled",
80479
+ value: false
80480
+ },
80040
80481
  label: t("Pump cycle off", "Ciclo pompa spento"),
80041
80482
  phrase: t("Run the pump of {device} continuously", "Fai lavorare la pompa di {device} in continuo"),
80042
80483
  icon: "timer-off",
@@ -80053,6 +80494,11 @@ DeviceType.PetFountain, method(object({
80053
80494
  label: t("Set pump run time", "Imposta il tempo di lavoro della pompa"),
80054
80495
  phrase: t("Set the pump of {device} to run {minutes} minutes per cycle", "Imposta la pompa di {device} a lavorare {minutes} minuti per ciclo"),
80055
80496
  icon: "timer",
80497
+ effect: {
80498
+ field: "onTime",
80499
+ fromArg: "minutes",
80500
+ scale: 60
80501
+ },
80056
80502
  openArgs: [{
80057
80503
  key: "minutes",
80058
80504
  label: t("Minutes", "Minuti"),
@@ -80075,6 +80521,11 @@ DeviceType.PetFountain, method(object({
80075
80521
  label: t("Set pump rest time", "Imposta il tempo di riposo della pompa"),
80076
80522
  phrase: t("Set the pump of {device} to rest {minutes} minutes per cycle", "Imposta la pompa di {device} a riposare {minutes} minuti per ciclo"),
80077
80523
  icon: "timer-off",
80524
+ effect: {
80525
+ field: "offTime",
80526
+ fromArg: "minutes",
80527
+ scale: 60
80528
+ },
80078
80529
  openArgs: [{
80079
80530
  key: "minutes",
80080
80531
  label: t("Minutes", "Minuti"),
@@ -83205,13 +83656,24 @@ DeviceType.Script, method(object({
83205
83656
  id: "script.run",
83206
83657
  label: t("Run script", "Esegui lo script"),
83207
83658
  phrase: t("Run {device}", "Esegui {device}"),
83208
- icon: "scroll-text"
83659
+ icon: "scroll-text",
83660
+ hold: {
83661
+ effects: [{
83662
+ field: "isRunning",
83663
+ value: true
83664
+ }],
83665
+ holdMs: ONE_SHOT_HOLD_MS
83666
+ }
83209
83667
  }]
83210
83668
  }), method(object({ deviceId: number$1().int().nonnegative() }), _void(), {
83211
83669
  kind: "mutation",
83212
83670
  auth: "admin",
83213
83671
  actions: [{
83214
83672
  id: "script.stop",
83673
+ effect: {
83674
+ field: "isRunning",
83675
+ value: false
83676
+ },
83215
83677
  label: t("Stop script", "Ferma lo script"),
83216
83678
  phrase: t("Stop {device}", "Ferma {device}"),
83217
83679
  icon: "square"
@@ -84738,6 +85200,10 @@ DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(ob
84738
85200
  auth: "protected",
84739
85201
  actions: [{
84740
85202
  id: "switch.toggle",
85203
+ sideEffects: [{
85204
+ field: "on",
85205
+ negate: true
85206
+ }],
84741
85207
  label: t("Toggle", "Commuta"),
84742
85208
  phrase: t("Toggle {device}", "Commuta {device}"),
84743
85209
  icon: "toggle-right",
@@ -106876,7 +107342,7 @@ var AdminUIAddon = class extends BaseAddon {
106876
107342
  capability: adminUiCapability,
106877
107343
  provider: {
106878
107344
  getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
106879
- getVersion: async () => ({ version: "1.2.696" })
107345
+ getVersion: async () => ({ version: "1.2.697" })
106880
107346
  }
106881
107347
  }];
106882
107348
  }