@camstack/addon-admin-ui 1.2.696 → 1.2.698

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 (92) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/assets/{AccessSection-DBw9dSVv.js → AccessSection-C3Z4VMbn.js} +1 -1
  3. package/dist/assets/{Addons-TvNpLht1.js → Addons-CBfB4PwF.js} +1 -1
  4. package/dist/assets/{AdminPage-D-42p0zJ.js → AdminPage-C0rgqBg5.js} +1 -1
  5. package/dist/assets/{AdminSectionedPage-B5GOooM0.js → AdminSectionedPage-CrbDQuju.js} +1 -1
  6. package/dist/assets/{AiProfiles-DlKtprai.js → AiProfiles-Uzt6ITwV.js} +1 -1
  7. package/dist/assets/{Archive-BQDpg_08.js → Archive-KiES4AK1.js} +1 -1
  8. package/dist/assets/{BootstrapSettingsForm-BL0hjm9l.js → BootstrapSettingsForm-CNwsceSk.js} +1 -1
  9. package/dist/assets/{Build-Bu4Bxagh.js → Build-CLqFtQQF.js} +1 -1
  10. package/dist/assets/{Calendars-D3iE7d8_.js → Calendars-fZrHEH0S.js} +1 -1
  11. package/dist/assets/{Cluster-BhXcShEj.js → Cluster-ZhXkbC8q.js} +1 -1
  12. package/dist/assets/{CompositionBlockEditor-CNkCk9s-.js → CompositionBlockEditor-BAgVN8yN.js} +1 -1
  13. package/dist/assets/{CompositionEditorPage-C77fa6LE.js → CompositionEditorPage-Cjdi12u4.js} +1 -1
  14. package/dist/assets/{Data-Cfk7yUvg.js → Data-DkKT4kg4.js} +1 -1
  15. package/dist/assets/{DeviceDetail-B6udVrkD.js → DeviceDetail-DphkoMAH.js} +1 -1
  16. package/dist/assets/{Devices-B0ZxVuMi.js → Devices-C2_XrAsB.js} +1 -1
  17. package/dist/assets/{EmbedDevicePage-DXWbq6WH.js → EmbedDevicePage-B-kXRzxP.js} +1 -1
  18. package/dist/assets/{EmbedPlayerPage-VQ9qihSP.js → EmbedPlayerPage-BKlnHqN7.js} +1 -1
  19. package/dist/assets/{History-DkI0W6BU.js → History-C8ZY-Ovj.js} +1 -1
  20. package/dist/assets/{Identity-CM_CZRA4.js → Identity-BELn4_Lg.js} +1 -1
  21. package/dist/assets/{InstancesTable-C5jjxivJ.js → InstancesTable-Blgr9UwH.js} +1 -1
  22. package/dist/assets/{IntegrationDetail-BgaXmMfk.js → IntegrationDetail-Bv3DXRXC.js} +1 -1
  23. package/dist/assets/{Integrations-DfrAjyWF.js → Integrations-BNc3Xhbg.js} +1 -1
  24. package/dist/assets/{Integrations-DPm5yxgr.js → Integrations-w_KbkNum.js} +1 -1
  25. package/dist/assets/{Library-DGmJL0N0.js → Library-CC-yVMZb.js} +1 -1
  26. package/dist/assets/{Locations-Dp3wEUYu.js → Locations-TgIsNyQs.js} +1 -1
  27. package/dist/assets/{Logs-BCnR-SVf.js → Logs-CjVZvl-p.js} +1 -1
  28. package/dist/assets/{MaskShapeCanvas-w3PC4VBb.js → MaskShapeCanvas-Crc7Vee0.js} +1 -1
  29. package/dist/assets/{MotionZonesSettings-BBq4hzJx.js → MotionZonesSettings-CPRbUvmE.js} +1 -1
  30. package/dist/assets/{MyAccess-D_jQhXKN.js → MyAccess-CvFEb2P_.js} +1 -1
  31. package/dist/assets/{Network-CKe51Q6z.js → Network-BApaJTDv.js} +1 -1
  32. package/dist/assets/{NewExportModal-CtdGrB2I.js → NewExportModal-B87f6wft.js} +1 -1
  33. package/dist/assets/{NodeAddonsSettingsPanel-C3dJn-fh.js → NodeAddonsSettingsPanel-Dxp-6Ksw.js} +1 -1
  34. package/dist/assets/{Notifications-CqbnHXa5.js → Notifications-DXM5xtCq.js} +1 -1
  35. package/dist/assets/{PanelContent-DxT98JSE.js → PanelContent-D7u-ISFK.js} +1 -1
  36. package/dist/assets/{Pipeline-CS1qQfNV.js → Pipeline-Bujc9zjR.js} +1 -1
  37. package/dist/assets/{PrivacyMaskSettings-BfxUJRP5.js → PrivacyMaskSettings-B1fiafV8.js} +1 -1
  38. package/dist/assets/{SceneMonitorEditor-BGbRIidY.js → SceneMonitorEditor-D7pxuNnv.js} +1 -1
  39. package/dist/assets/{SessionsList-xfSyrhfI.js → SessionsList-D6U14Yno.js} +1 -1
  40. package/dist/assets/{Showroom-BLra3VI2.js → Showroom-DU9iMIZh.js} +1 -1
  41. package/dist/assets/{StorageLocationsTable-Bvnj4vNs.js → StorageLocationsTable-B_F1eKHy.js} +1 -1
  42. package/dist/assets/{System-CoL1HGLA.js → System-1Jh6VozL.js} +1 -1
  43. package/dist/assets/{TemplateEditorDialog-DPu33U2o.js → TemplateEditorDialog-UOirN96h.js} +1 -1
  44. package/dist/assets/{Terminal-DQbR0Vke.js → Terminal-DyWFdRWL.js} +1 -1
  45. package/dist/assets/{TrainingProviders-iVXTSrXv.js → TrainingProviders-BG7DsUoT.js} +1 -1
  46. package/dist/assets/{Viewer-BLyOB1a5.js → Viewer-Cu1fVuMh.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-Y8Q6lecu.js} +1 -1
  48. package/dist/assets/{action-draft-h2jfjoOr.js → action-draft-D0S-LJcp.js} +1 -1
  49. package/dist/assets/{ai-page.helpers-BckFcRJ5.js → ai-page.helpers-DJ4SE1RA.js} +1 -1
  50. package/dist/assets/{assignment-candidates-jsZ9xPAI.js → assignment-candidates-FntpKIEo.js} +1 -1
  51. package/dist/assets/{authed-media-aZe747dF.js → authed-media-CkCP7Cpu.js} +1 -1
  52. package/dist/assets/{board-model-BZBm4HOa.js → board-model-CV7df4sG.js} +1 -1
  53. package/dist/assets/{camera-block-model-DwaKOD5B.js → camera-block-model-DoWj--hc.js} +1 -1
  54. package/dist/assets/client-Dn4ym7AZ.js +1122 -0
  55. package/dist/assets/{command-vocab-Bz3giRzQ.js → command-vocab-B1KZgOMw.js} +1 -1
  56. package/dist/assets/{device-detail-maRRGKct.js → device-detail-QaaayAym.js} +1 -1
  57. package/dist/assets/{device-integration-icon-CimhOdbQ.js → device-integration-icon-BMTwf3mF.js} +1 -1
  58. package/dist/assets/device-picker-model-C0oitxOP.js +1 -0
  59. package/dist/assets/dist-BZARORuz.js +1122 -0
  60. package/dist/assets/{dist-Bd7_9OIo.js → dist-D7aUh2j3.js} +1 -1
  61. package/dist/assets/{format-BtpezAH4.js → format-D2Wcm0QP.js} +1 -1
  62. package/dist/assets/{hostInit-B2s6xmn7.js → hostInit-4wcUPS8D.js} +1 -1
  63. package/dist/assets/i18n-CsnSJSM7.js +1 -0
  64. package/dist/assets/{icons-Dt2xZ6Fm.js → icons-DK3iI8sz.js} +1 -1
  65. package/dist/assets/index-CgTEWhcQ.css +2 -0
  66. package/dist/assets/{index-DctP1W4e.js → index-FA3cRm59.js} +3 -3
  67. package/dist/assets/{linked-devices-model-Doz5OOH3.js → linked-devices-model-C7til7aR.js} +1 -1
  68. package/dist/assets/{mf-entry-bootstrap-0-3150042d.js → mf-entry-bootstrap-0-4aebb5a9.js} +2 -2
  69. package/dist/assets/mount-C0oitxOP.js +1 -0
  70. package/dist/assets/{notification-rule-status-Dp2Kfduw.js → notification-rule-status-D5LkcHTp.js} +1 -1
  71. package/dist/assets/{player-overlays-BbQvhXKQ.js → player-overlays-BKicBNcF.js} +1 -1
  72. package/dist/assets/remoteEntry-3rv7Sz7o.js +1 -0
  73. package/dist/assets/src-CU6u_Uvz.js +279 -0
  74. package/dist/assets/{sso-popup-CxbOOUhY.js → sso-popup-Ceq4Jz8a.js} +1 -1
  75. package/dist/assets/{step-inspector-model-6y4qcr-P.js → step-inspector-model-BzUVKPrw.js} +1 -1
  76. package/dist/assets/{use-scenes-feed-DcbGpD63.js → use-scenes-feed-DA7UFRvT.js} +1 -1
  77. package/dist/assets/{useAdminDeviceRemoval-DdJa-ero.js → useAdminDeviceRemoval-JYfuB8v_.js} +1 -1
  78. package/dist/assets/useEventInvalidation-C0oitxOP.js +1 -0
  79. package/dist/assets/{useNodeUrlSelection-Ct71i8dD.js → useNodeUrlSelection-CmeaBXTi.js} +1 -1
  80. 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_-DXs1P_5w.js} +2 -2
  81. package/dist/index.html +9 -9
  82. package/dist/server/addon.js +635 -47
  83. package/package.json +2 -2
  84. package/dist/assets/client-da_C5OO7.js +0 -1120
  85. package/dist/assets/device-picker-model-DIA15wsm.js +0 -1
  86. package/dist/assets/dist-ByKvh0vl.js +0 -1120
  87. package/dist/assets/i18n-CFfN2jss.js +0 -1
  88. package/dist/assets/index-Cdqk-EuE.css +0 -2
  89. package/dist/assets/mount-DIA15wsm.js +0 -1
  90. package/dist/assets/remoteEntry-B7v5YKWw.js +0 -1
  91. package/dist/assets/src-lYocp_hv.js +0 -279
  92. 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-DO-ayTnk.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",
@@ -16587,6 +16814,17 @@ var CAP_VOCABULARY_BY_NAME = {
16587
16814
  },
16588
16815
  notOperatorFacing: { resync: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action" }
16589
16816
  },
16817
+ "device-state-refresh": {
16818
+ scope: "device",
16819
+ noun: {
16820
+ en: "State refresh",
16821
+ it: "Aggiornamento dello stato"
16822
+ },
16823
+ notOperatorFacing: {
16824
+ refresh: "the core schedules state refreshes itself; an operator never asks for one",
16825
+ resubscribe: "the core schedules state refreshes itself; an operator never asks for one"
16826
+ }
16827
+ },
16590
16828
  "recording": {
16591
16829
  scope: "device",
16592
16830
  noun: {
@@ -19560,6 +19798,7 @@ var CAP_NAMES = Object.freeze([
19560
19798
  "device-removal-hook",
19561
19799
  "device-runs",
19562
19800
  "device-state",
19801
+ "device-state-refresh",
19563
19802
  "device-status",
19564
19803
  "device-transitions",
19565
19804
  "dishwasher",
@@ -51982,6 +52221,14 @@ DeviceType.AlarmPanel, method(object({ deviceId: number$1().int().nonnegative()
51982
52221
  field: "state",
51983
52222
  value: "disarmed"
51984
52223
  },
52224
+ hold: { effects: [{
52225
+ field: "state",
52226
+ value: "disarming",
52227
+ when: {
52228
+ field: "state",
52229
+ notIn: ["disarmed"]
52230
+ }
52231
+ }] },
51985
52232
  openArgs: [{
51986
52233
  key: "code",
51987
52234
  label: t("PIN code", "Codice PIN"),
@@ -52011,6 +52258,14 @@ DeviceType.AlarmPanel, method(object({ deviceId: number$1().int().nonnegative()
52011
52258
  field: "state",
52012
52259
  value: "armed_home"
52013
52260
  },
52261
+ hold: { effects: [{
52262
+ field: "state",
52263
+ value: "arming",
52264
+ when: {
52265
+ field: "state",
52266
+ notIn: ["armed_home"]
52267
+ }
52268
+ }] },
52014
52269
  args: { mode: "home" },
52015
52270
  openArgs: [{
52016
52271
  key: "code",
@@ -52031,6 +52286,14 @@ DeviceType.AlarmPanel, method(object({ deviceId: number$1().int().nonnegative()
52031
52286
  field: "state",
52032
52287
  value: "armed_away"
52033
52288
  },
52289
+ hold: { effects: [{
52290
+ field: "state",
52291
+ value: "arming",
52292
+ when: {
52293
+ field: "state",
52294
+ notIn: ["armed_away"]
52295
+ }
52296
+ }] },
52034
52297
  args: { mode: "away" },
52035
52298
  openArgs: [{
52036
52299
  key: "code",
@@ -52051,6 +52314,14 @@ DeviceType.AlarmPanel, method(object({ deviceId: number$1().int().nonnegative()
52051
52314
  field: "state",
52052
52315
  value: "armed_night"
52053
52316
  },
52317
+ hold: { effects: [{
52318
+ field: "state",
52319
+ value: "arming",
52320
+ when: {
52321
+ field: "state",
52322
+ notIn: ["armed_night"]
52323
+ }
52324
+ }] },
52054
52325
  args: { mode: "night" },
52055
52326
  openArgs: [{
52056
52327
  key: "code",
@@ -52071,6 +52342,14 @@ DeviceType.AlarmPanel, method(object({ deviceId: number$1().int().nonnegative()
52071
52342
  field: "state",
52072
52343
  value: "armed_vacation"
52073
52344
  },
52345
+ hold: { effects: [{
52346
+ field: "state",
52347
+ value: "arming",
52348
+ when: {
52349
+ field: "state",
52350
+ notIn: ["armed_vacation"]
52351
+ }
52352
+ }] },
52074
52353
  args: { mode: "vacation" },
52075
52354
  openArgs: [{
52076
52355
  key: "code",
@@ -52091,6 +52370,14 @@ DeviceType.AlarmPanel, method(object({ deviceId: number$1().int().nonnegative()
52091
52370
  field: "state",
52092
52371
  value: "armed_custom_bypass"
52093
52372
  },
52373
+ hold: { effects: [{
52374
+ field: "state",
52375
+ value: "arming",
52376
+ when: {
52377
+ field: "state",
52378
+ notIn: ["armed_custom_bypass"]
52379
+ }
52380
+ }] },
52094
52381
  args: { mode: "custom_bypass" },
52095
52382
  openArgs: [{
52096
52383
  key: "code",
@@ -52588,6 +52875,10 @@ DeviceType.Automation, method(object({ deviceId: number$1().int().nonnegative()
52588
52875
  auth: "admin",
52589
52876
  actions: [{
52590
52877
  id: "haAutomation.enable",
52878
+ effect: {
52879
+ field: "enabled",
52880
+ value: true
52881
+ },
52591
52882
  label: t("Enable automation", "Abilita l’automazione"),
52592
52883
  phrase: t("Enable {device}", "Abilita {device}"),
52593
52884
  icon: "toggle-right"
@@ -52597,6 +52888,10 @@ DeviceType.Automation, method(object({ deviceId: number$1().int().nonnegative()
52597
52888
  auth: "admin",
52598
52889
  actions: [{
52599
52890
  id: "haAutomation.disable",
52891
+ effect: {
52892
+ field: "enabled",
52893
+ value: false
52894
+ },
52600
52895
  label: t("Disable automation", "Disabilita l’automazione"),
52601
52896
  phrase: t("Disable {device}", "Disabilita {device}"),
52602
52897
  icon: "toggle-left"
@@ -54846,6 +55141,14 @@ DeviceType.Climate, method(object({
54846
55141
  label: t("Set temperature range", "Imposta l’intervallo di temperatura"),
54847
55142
  phrase: t("Keep {device} between {targetLow} and {targetHigh}", "Mantieni {device} tra {targetLow} e {targetHigh}"),
54848
55143
  icon: "thermometer",
55144
+ effect: {
55145
+ field: "targetLow",
55146
+ fromArg: "targetLow"
55147
+ },
55148
+ sideEffects: [{
55149
+ field: "targetHigh",
55150
+ fromArg: "targetHigh"
55151
+ }],
54849
55152
  openArgs: [{
54850
55153
  key: "targetLow",
54851
55154
  label: t("Lowest", "Minima"),
@@ -54902,6 +55205,10 @@ DeviceType.Climate, method(object({
54902
55205
  label: t("Set fan mode", "Imposta la ventilazione"),
54903
55206
  phrase: t("Set the fan of {device} to {fanMode}", "Imposta la ventilazione di {device} su {fanMode}"),
54904
55207
  icon: "fan",
55208
+ effect: {
55209
+ field: "fanMode",
55210
+ fromArg: "fanMode"
55211
+ },
54905
55212
  openArgs: [{
54906
55213
  key: "fanMode",
54907
55214
  label: t("Fan mode", "Ventilazione"),
@@ -54923,6 +55230,10 @@ DeviceType.Climate, method(object({
54923
55230
  label: t("Set preset", "Imposta il preset"),
54924
55231
  phrase: t("Set {device} to preset {preset}", "Imposta {device} sul preset {preset}"),
54925
55232
  icon: "list",
55233
+ effect: {
55234
+ field: "preset",
55235
+ fromArg: "preset"
55236
+ },
54926
55237
  openArgs: [{
54927
55238
  key: "preset",
54928
55239
  label: t("Preset", "Preset"),
@@ -56373,6 +56684,10 @@ DeviceType.MediaPlayer, optionalMethod(deviceOnly, _void(), {
56373
56684
  auth: "protected",
56374
56685
  actions: [{
56375
56686
  id: "media.play",
56687
+ effect: {
56688
+ field: "state",
56689
+ value: "playing"
56690
+ },
56376
56691
  label: t("Play", "Riproduci"),
56377
56692
  phrase: t("Play on {device}", "Avvia la riproduzione su {device}"),
56378
56693
  icon: "play"
@@ -56382,6 +56697,10 @@ DeviceType.MediaPlayer, optionalMethod(deviceOnly, _void(), {
56382
56697
  auth: "protected",
56383
56698
  actions: [{
56384
56699
  id: "media.pause",
56700
+ effect: {
56701
+ field: "state",
56702
+ value: "paused"
56703
+ },
56385
56704
  label: t("Pause media", "Metti in pausa"),
56386
56705
  phrase: t("Pause {device}", "Metti in pausa {device}"),
56387
56706
  icon: "pause"
@@ -56421,6 +56740,10 @@ DeviceType.MediaPlayer, optionalMethod(deviceOnly, _void(), {
56421
56740
  auth: "protected",
56422
56741
  actions: [{
56423
56742
  id: "media.volume",
56743
+ effect: {
56744
+ field: "volumeLevel",
56745
+ fromArg: "volumeLevel"
56746
+ },
56424
56747
  label: t("Set volume", "Imposta il volume"),
56425
56748
  phrase: t("Set the volume of {device} to {volumeLevel}", "Imposta il volume di {device} al {volumeLevel}"),
56426
56749
  icon: "volume-2",
@@ -56444,12 +56767,20 @@ DeviceType.MediaPlayer, optionalMethod(deviceOnly, _void(), {
56444
56767
  auth: "protected",
56445
56768
  actions: [{
56446
56769
  id: "media.mute",
56770
+ effect: {
56771
+ field: "isMuted",
56772
+ value: true
56773
+ },
56447
56774
  label: t("Mute", "Silenzia"),
56448
56775
  phrase: t("Mute {device}", "Silenzia {device}"),
56449
56776
  icon: "volume-x",
56450
56777
  args: { muted: true }
56451
56778
  }, {
56452
56779
  id: "media.unmute",
56780
+ effect: {
56781
+ field: "isMuted",
56782
+ value: false
56783
+ },
56453
56784
  label: t("Unmute", "Riattiva l’audio"),
56454
56785
  phrase: t("Unmute {device}", "Riattiva l’audio di {device}"),
56455
56786
  icon: "volume-2",
@@ -56463,12 +56794,20 @@ DeviceType.MediaPlayer, optionalMethod(deviceOnly, _void(), {
56463
56794
  auth: "protected",
56464
56795
  actions: [{
56465
56796
  id: "media.shuffleOn",
56797
+ effect: {
56798
+ field: "shuffle",
56799
+ value: true
56800
+ },
56466
56801
  label: t("Shuffle on", "Riproduzione casuale attiva"),
56467
56802
  phrase: t("Turn on shuffle on {device}", "Attiva la riproduzione casuale su {device}"),
56468
56803
  icon: "shuffle",
56469
56804
  args: { shuffle: true }
56470
56805
  }, {
56471
56806
  id: "media.shuffleOff",
56807
+ effect: {
56808
+ field: "shuffle",
56809
+ value: false
56810
+ },
56472
56811
  label: t("Shuffle off", "Riproduzione casuale spenta"),
56473
56812
  phrase: t("Turn off shuffle on {device}", "Disattiva la riproduzione casuale su {device}"),
56474
56813
  icon: "shuffle",
@@ -56482,6 +56821,10 @@ DeviceType.MediaPlayer, optionalMethod(deviceOnly, _void(), {
56482
56821
  auth: "protected",
56483
56822
  actions: [{
56484
56823
  id: "media.repeat",
56824
+ effect: {
56825
+ field: "repeat",
56826
+ fromArg: "repeat"
56827
+ },
56485
56828
  label: t("Set repeat", "Imposta la ripetizione"),
56486
56829
  phrase: t("Set repeat on {device} to {repeat}", "Imposta la ripetizione di {device} su {repeat}"),
56487
56830
  icon: "repeat",
@@ -56515,6 +56858,10 @@ DeviceType.MediaPlayer, optionalMethod(deviceOnly, _void(), {
56515
56858
  auth: "protected",
56516
56859
  actions: [{
56517
56860
  id: "media.source",
56861
+ effect: {
56862
+ field: "source",
56863
+ fromArg: "source"
56864
+ },
56518
56865
  label: t("Select source", "Scegli la sorgente"),
56519
56866
  phrase: t("Switch {device} to {source}", "Passa {device} alla sorgente {source}"),
56520
56867
  icon: "cast",
@@ -60573,8 +60920,12 @@ var ClaimsListingSchema = discriminatedUnion("state", [object({
60573
60920
  })]);
60574
60921
  method(object({ deviceId: number$1() }), record(string(), record(string(), unknown()))), method(object({
60575
60922
  deviceId: number$1(),
60576
- capName: string()
60577
- }), record(string(), unknown()).nullable()), method(object({}), record(string(), record(string(), record(string(), unknown())))), method(object({
60923
+ capName: string(),
60924
+ /** The slice the device CONFIRMED, without a held command (D1061) — history and automations. */
60925
+ confirmed: boolean().optional()
60926
+ }), record(string(), unknown()).nullable()), method(object({
60927
+ /** The slices the devices CONFIRMED, without held commands (D1061). */
60928
+ confirmed: boolean().optional() }), record(string(), record(string(), record(string(), unknown())))), method(object({
60578
60929
  deviceId: number$1(),
60579
60930
  capName: string(),
60580
60931
  slice: record(string(), unknown())
@@ -60612,6 +60963,88 @@ method(object({ deviceId: number$1() }), record(string(), record(string(), unkno
60612
60963
  slice: record(string(), unknown())
60613
60964
  }));
60614
60965
  /**
60966
+ * Server-driven device state refresh (D1062): the core decides WHEN a device is
60967
+ * re-read, the integration only knows HOW.
60968
+ *
60969
+ * A provider states its policy where it registers the device's
60970
+ * `device-state-refresh` cap (`ctx.registerNativeCap(cap, provider, {
60971
+ * stateRefresh })`). It reaches the hub by the road the command-hold options
60972
+ * take (D1061): written directly in-process, carried on a forked child's cap
60973
+ * descriptors otherwise. Plain data, wire-safe.
60974
+ */
60975
+ /** Why the core asks for a refresh. */
60976
+ var StateRefreshReasonSchema = _enum([
60977
+ "schedule",
60978
+ "command",
60979
+ "burst"
60980
+ ]);
60981
+ /**
60982
+ * What arrives without asking: `none` (everything is read), `partial` (some
60983
+ * fields arrive by push, the rest is read on the schedule), `full` (everything
60984
+ * arrives by push — never read on a schedule).
60985
+ */
60986
+ var StateRefreshPushSchema = _enum([
60987
+ "none",
60988
+ "partial",
60989
+ "full"
60990
+ ]);
60991
+ object({
60992
+ /**
60993
+ * The integration instance the device belongs to. Devices of one instance
60994
+ * share one schedule group: a batching provider is asked once for all of
60995
+ * them, and the heartbeat is judged across them.
60996
+ */
60997
+ integrationId: string().min(1),
60998
+ /** The fastest interval the integration can afford for its devices. The core polls at it by default. */
60999
+ minIntervalMs: number$1().int().min(1e3),
61000
+ /**
61001
+ * The operator's per-integration setting, when there is one. It can only SLOW
61002
+ * the cadence: the core polls at `max(minIntervalMs, intervalMs)`.
61003
+ */
61004
+ intervalMs: number$1().int().positive().optional(),
61005
+ /** One `refresh` call can read every device of the integration at once. */
61006
+ batch: boolean(),
61007
+ push: StateRefreshPushSchema,
61008
+ /** Longest silence a push integration may keep before the core re-reads it and asks it to resubscribe. */
61009
+ heartbeatMs: number$1().int().positive().optional(),
61010
+ /**
61011
+ * Bumped by the provider each time its push subscription reconnected on its
61012
+ * own. A change makes the core re-read every device of the integration
61013
+ * (pushes lost while it was down; events may be dropped, D8).
61014
+ */
61015
+ connectionEpoch: number$1().int().nonnegative().optional()
61016
+ });
61017
+ /**
61018
+ * device-state-refresh — the HOW of a device's state refresh, called by the
61019
+ * core, which owns the WHEN (D1062).
61020
+ *
61021
+ * The provider registers it per device with its policy
61022
+ * (`registerNativeCap(cap, provider, { stateRefresh })`). The hub's scheduler
61023
+ * calls `refresh` on the schedule, after a command and in the burst that
61024
+ * follows it, and `resubscribe` when a push integration fell silent. The
61025
+ * provider re-reads and writes the slices it already writes; nothing is
61026
+ * returned but completion.
61027
+ */
61028
+ var DeviceStateRefreshInputSchema = object({
61029
+ /** The device the call is routed by (one of `deviceIds`). */
61030
+ deviceId: number$1().int().nonnegative(),
61031
+ /** Every device to re-read: one, or the integration's whole set when the provider batches. */
61032
+ deviceIds: array(number$1().int().nonnegative()).min(1),
61033
+ reason: StateRefreshReasonSchema
61034
+ });
61035
+ var DeviceStateResubscribeInputSchema = object({ deviceId: number$1().int().nonnegative() });
61036
+ var DeviceStateRefreshResultSchema = object({ ok: literal(true) });
61037
+ var NOT_OPERATOR_FACING = "the core schedules state refreshes itself; an operator never asks for one";
61038
+ method(DeviceStateRefreshInputSchema, DeviceStateRefreshResultSchema, {
61039
+ kind: "mutation",
61040
+ auth: "admin",
61041
+ notOperatorFacing: NOT_OPERATOR_FACING
61042
+ }), method(DeviceStateResubscribeInputSchema, DeviceStateRefreshResultSchema, {
61043
+ kind: "mutation",
61044
+ auth: "admin",
61045
+ notOperatorFacing: NOT_OPERATOR_FACING
61046
+ });
61047
+ /**
60615
61048
  * Generic device-level status snapshot. Auto-registered by `BaseDevice`
60616
61049
  * for every device, regardless of provider — the kernel needs a uniform
60617
61050
  * cap-keyed slice for the basic device flags every consumer expects to
@@ -62468,7 +62901,15 @@ DeviceType.Fan, optionalMethod(object({
62468
62901
  field: "speed",
62469
62902
  value: 100
62470
62903
  },
62471
- args: { speed: 100 }
62904
+ args: { speed: 100 },
62905
+ sideEffects: [{
62906
+ field: "preset",
62907
+ value: "",
62908
+ when: {
62909
+ field: "preset",
62910
+ notIn: [""]
62911
+ }
62912
+ }]
62472
62913
  },
62473
62914
  {
62474
62915
  id: "fan.speed",
@@ -62479,6 +62920,14 @@ DeviceType.Fan, optionalMethod(object({
62479
62920
  field: "speed",
62480
62921
  fromArg: "speed"
62481
62922
  },
62923
+ sideEffects: [{
62924
+ field: "preset",
62925
+ value: "",
62926
+ when: {
62927
+ field: "preset",
62928
+ notIn: [""]
62929
+ }
62930
+ }],
62482
62931
  openArgs: [{
62483
62932
  key: "speed",
62484
62933
  label: t("Speed", "Velocità"),
@@ -62503,6 +62952,10 @@ DeviceType.Fan, optionalMethod(object({
62503
62952
  label: t("Set preset", "Imposta il preset"),
62504
62953
  phrase: t("Set {device} to preset {preset}", "Imposta {device} sul preset {preset}"),
62505
62954
  icon: "list",
62955
+ effect: {
62956
+ field: "preset",
62957
+ fromArg: "preset"
62958
+ },
62506
62959
  openArgs: [{
62507
62960
  key: "preset",
62508
62961
  label: t("Preset", "Preset"),
@@ -66675,6 +67128,14 @@ DeviceType.Lock, method(object({
66675
67128
  field: "state",
66676
67129
  value: "locked"
66677
67130
  },
67131
+ hold: { effects: [{
67132
+ field: "state",
67133
+ value: "locking",
67134
+ when: {
67135
+ field: "state",
67136
+ notIn: ["locked"]
67137
+ }
67138
+ }] },
66678
67139
  openArgs: [{
66679
67140
  key: "code",
66680
67141
  label: t("PIN code", "Codice PIN"),
@@ -66707,6 +67168,14 @@ DeviceType.Lock, method(object({
66707
67168
  field: "state",
66708
67169
  value: "unlocked"
66709
67170
  },
67171
+ hold: { effects: [{
67172
+ field: "state",
67173
+ value: "unlocking",
67174
+ when: {
67175
+ field: "state",
67176
+ notIn: ["unlocked"]
67177
+ }
67178
+ }] },
66710
67179
  openArgs: [{
66711
67180
  key: "code",
66712
67181
  label: t("PIN code", "Codice PIN"),
@@ -77415,6 +77884,14 @@ method(object({ deviceId: number$1().int() }), object({
77415
77884
  auth: "admin"
77416
77885
  }), NOT_A_DEVICE.PIPELINE;
77417
77886
  /**
77887
+ * Hold limits a cap's vocabulary may declare on an action (D1061).
77888
+ *
77889
+ * A one-shot command (feed, run a script) has no lasting state to confirm; it
77890
+ * holds its in-progress flag just long enough that a second tap, before the
77891
+ * device reports, is seen as "already running" and refused.
77892
+ */
77893
+ var ONE_SHOT_HOLD_MS = 1e4;
77894
+ /**
77418
77895
  * Feeder connectivity / power status — mirrors the HA petkit device-status
77419
77896
  * enum: `normal` (online, mains), `offline` (not reaching PetKit cloud),
77420
77897
  * `on_batteries` (running on battery backup). `null` until first reported.
@@ -77518,6 +77995,13 @@ DeviceType.PetFeeder, method(object({
77518
77995
  label: t("Feed", "Dai da mangiare"),
77519
77996
  phrase: t("Dispense {grams} from {device}", "Eroga {grams} da {device}"),
77520
77997
  icon: "paw-print",
77998
+ hold: {
77999
+ effects: [{
78000
+ field: "feeding",
78001
+ value: true
78002
+ }],
78003
+ holdMs: ONE_SHOT_HOLD_MS
78004
+ },
77521
78005
  openArgs: [{
77522
78006
  key: "grams",
77523
78007
  label: t("Grams", "Grammi"),
@@ -77536,6 +78020,13 @@ DeviceType.PetFeeder, method(object({
77536
78020
  label: t("Feed from both hoppers", "Eroga da entrambi i serbatoi"),
77537
78021
  phrase: t("Dispense {hopper1} and {hopper2} from {device}", "Eroga {hopper1} e {hopper2} da {device}"),
77538
78022
  icon: "paw-print",
78023
+ hold: {
78024
+ effects: [{
78025
+ field: "feeding",
78026
+ value: true
78027
+ }],
78028
+ holdMs: ONE_SHOT_HOLD_MS
78029
+ },
77539
78030
  openArgs: [{
77540
78031
  key: "hopper1",
77541
78032
  label: t("Hopper 1", "Serbatoio 1"),
@@ -77627,12 +78118,20 @@ DeviceType.PetFeeder, method(object({
77627
78118
  auth: "protected",
77628
78119
  actions: [{
77629
78120
  id: "petFeeder.childLockOn",
78121
+ effect: {
78122
+ field: "childLock",
78123
+ value: true
78124
+ },
77630
78125
  label: t("Child lock on", "Blocco bambini attivo"),
77631
78126
  phrase: t("Turn on the child lock of {device}", "Attiva il blocco bambini di {device}"),
77632
78127
  icon: "lock",
77633
78128
  args: { on: true }
77634
78129
  }, {
77635
78130
  id: "petFeeder.childLockOff",
78131
+ effect: {
78132
+ field: "childLock",
78133
+ value: false
78134
+ },
77636
78135
  label: t("Child lock off", "Blocco bambini spento"),
77637
78136
  phrase: t("Turn off the child lock of {device}", "Disattiva il blocco bambini di {device}"),
77638
78137
  icon: "lock-open",
@@ -77646,12 +78145,20 @@ DeviceType.PetFeeder, method(object({
77646
78145
  auth: "protected",
77647
78146
  actions: [{
77648
78147
  id: "petFeeder.lightOn",
78148
+ effect: {
78149
+ field: "indicatorLight",
78150
+ value: true
78151
+ },
77649
78152
  label: t("Indicator light on", "Spia accesa"),
77650
78153
  phrase: t("Turn on the indicator light of {device}", "Accendi la spia di {device}"),
77651
78154
  icon: "lightbulb",
77652
78155
  args: { on: true }
77653
78156
  }, {
77654
78157
  id: "petFeeder.lightOff",
78158
+ effect: {
78159
+ field: "indicatorLight",
78160
+ value: false
78161
+ },
77655
78162
  label: t("Indicator light off", "Spia spenta"),
77656
78163
  phrase: t("Turn off the indicator light of {device}", "Spegni la spia di {device}"),
77657
78164
  icon: "lightbulb-off",
@@ -77665,12 +78172,20 @@ DeviceType.PetFeeder, method(object({
77665
78172
  auth: "protected",
77666
78173
  actions: [{
77667
78174
  id: "petFeeder.feedSoundOn",
78175
+ effect: {
78176
+ field: "feedSound",
78177
+ value: true
78178
+ },
77668
78179
  label: t("Feeding sound on", "Suono di erogazione attivo"),
77669
78180
  phrase: t("Turn on the feeding sound of {device}", "Attiva il suono di erogazione di {device}"),
77670
78181
  icon: "volume-2",
77671
78182
  args: { on: true }
77672
78183
  }, {
77673
78184
  id: "petFeeder.feedSoundOff",
78185
+ effect: {
78186
+ field: "feedSound",
78187
+ value: false
78188
+ },
77674
78189
  label: t("Feeding sound off", "Suono di erogazione spento"),
77675
78190
  phrase: t("Turn off the feeding sound of {device}", "Disattiva il suono di erogazione di {device}"),
77676
78191
  icon: "volume-x",
@@ -77684,6 +78199,10 @@ DeviceType.PetFeeder, method(object({
77684
78199
  auth: "protected",
77685
78200
  actions: [{
77686
78201
  id: "petFeeder.volume",
78202
+ effect: {
78203
+ field: "volume",
78204
+ fromArg: "level"
78205
+ },
77687
78206
  label: t("Set volume", "Imposta il volume"),
77688
78207
  phrase: t("Set the volume of {device} to {level}", "Imposta il volume di {device} a {level}"),
77689
78208
  icon: "volume-2",
@@ -77745,12 +78264,20 @@ DeviceType.PetFountain, method(object({
77745
78264
  auth: "protected",
77746
78265
  actions: [{
77747
78266
  id: "petFountain.pumpOn",
78267
+ effect: {
78268
+ field: "pumpRunning",
78269
+ value: true
78270
+ },
77748
78271
  label: t("Pump on", "Pompa accesa"),
77749
78272
  phrase: t("Start the pump of {device}", "Avvia la pompa di {device}"),
77750
78273
  icon: "play",
77751
78274
  args: { on: true }
77752
78275
  }, {
77753
78276
  id: "petFountain.pumpOff",
78277
+ effect: {
78278
+ field: "pumpRunning",
78279
+ value: false
78280
+ },
77754
78281
  label: t("Pump off", "Pompa spenta"),
77755
78282
  phrase: t("Stop the pump of {device}", "Ferma la pompa di {device}"),
77756
78283
  icon: "square",
@@ -80031,12 +80558,20 @@ DeviceType.PetFountain, method(object({
80031
80558
  auth: "protected",
80032
80559
  actions: [{
80033
80560
  id: "pumpCycle.on",
80561
+ effect: {
80562
+ field: "enabled",
80563
+ value: true
80564
+ },
80034
80565
  label: t("Pump cycle on", "Ciclo pompa attivo"),
80035
80566
  phrase: t("Run the pump of {device} on its on/off cycle", "Fai lavorare la pompa di {device} a ciclo acceso/spento"),
80036
80567
  icon: "timer",
80037
80568
  args: { on: true }
80038
80569
  }, {
80039
80570
  id: "pumpCycle.off",
80571
+ effect: {
80572
+ field: "enabled",
80573
+ value: false
80574
+ },
80040
80575
  label: t("Pump cycle off", "Ciclo pompa spento"),
80041
80576
  phrase: t("Run the pump of {device} continuously", "Fai lavorare la pompa di {device} in continuo"),
80042
80577
  icon: "timer-off",
@@ -80053,6 +80588,11 @@ DeviceType.PetFountain, method(object({
80053
80588
  label: t("Set pump run time", "Imposta il tempo di lavoro della pompa"),
80054
80589
  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
80590
  icon: "timer",
80591
+ effect: {
80592
+ field: "onTime",
80593
+ fromArg: "minutes",
80594
+ scale: 60
80595
+ },
80056
80596
  openArgs: [{
80057
80597
  key: "minutes",
80058
80598
  label: t("Minutes", "Minuti"),
@@ -80075,6 +80615,11 @@ DeviceType.PetFountain, method(object({
80075
80615
  label: t("Set pump rest time", "Imposta il tempo di riposo della pompa"),
80076
80616
  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
80617
  icon: "timer-off",
80618
+ effect: {
80619
+ field: "offTime",
80620
+ fromArg: "minutes",
80621
+ scale: 60
80622
+ },
80078
80623
  openArgs: [{
80079
80624
  key: "minutes",
80080
80625
  label: t("Minutes", "Minuti"),
@@ -83205,13 +83750,24 @@ DeviceType.Script, method(object({
83205
83750
  id: "script.run",
83206
83751
  label: t("Run script", "Esegui lo script"),
83207
83752
  phrase: t("Run {device}", "Esegui {device}"),
83208
- icon: "scroll-text"
83753
+ icon: "scroll-text",
83754
+ hold: {
83755
+ effects: [{
83756
+ field: "isRunning",
83757
+ value: true
83758
+ }],
83759
+ holdMs: ONE_SHOT_HOLD_MS
83760
+ }
83209
83761
  }]
83210
83762
  }), method(object({ deviceId: number$1().int().nonnegative() }), _void(), {
83211
83763
  kind: "mutation",
83212
83764
  auth: "admin",
83213
83765
  actions: [{
83214
83766
  id: "script.stop",
83767
+ effect: {
83768
+ field: "isRunning",
83769
+ value: false
83770
+ },
83215
83771
  label: t("Stop script", "Ferma lo script"),
83216
83772
  phrase: t("Stop {device}", "Ferma {device}"),
83217
83773
  icon: "square"
@@ -84738,6 +85294,10 @@ DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(ob
84738
85294
  auth: "protected",
84739
85295
  actions: [{
84740
85296
  id: "switch.toggle",
85297
+ sideEffects: [{
85298
+ field: "on",
85299
+ negate: true
85300
+ }],
84741
85301
  label: t("Toggle", "Commuta"),
84742
85302
  phrase: t("Toggle {device}", "Commuta {device}"),
84743
85303
  icon: "toggle-right",
@@ -94558,6 +95118,20 @@ Object.freeze({
94558
95118
  access: "create",
94559
95119
  role: "admin"
94560
95120
  },
95121
+ "deviceStateRefresh.refresh": {
95122
+ capName: "device-state-refresh",
95123
+ capScope: "device",
95124
+ addonId: null,
95125
+ access: "create",
95126
+ role: "admin"
95127
+ },
95128
+ "deviceStateRefresh.resubscribe": {
95129
+ capName: "device-state-refresh",
95130
+ capScope: "device",
95131
+ addonId: null,
95132
+ access: "create",
95133
+ role: "admin"
95134
+ },
94561
95135
  "deviceStatus.getStatus": {
94562
95136
  capName: "device-status",
94563
95137
  capScope: "device",
@@ -103068,6 +103642,20 @@ Object.freeze({
103068
103642
  form: "single",
103069
103643
  optional: false
103070
103644
  }],
103645
+ "deviceStateRefresh.refresh": [{
103646
+ name: "deviceId",
103647
+ form: "single",
103648
+ optional: false
103649
+ }, {
103650
+ name: "deviceIds",
103651
+ form: "array",
103652
+ optional: false
103653
+ }],
103654
+ "deviceStateRefresh.resubscribe": [{
103655
+ name: "deviceId",
103656
+ form: "single",
103657
+ optional: false
103658
+ }],
103071
103659
  "deviceStatus.getStatus": [{
103072
103660
  name: "deviceId",
103073
103661
  form: "single",
@@ -106876,7 +107464,7 @@ var AdminUIAddon = class extends BaseAddon {
106876
107464
  capability: adminUiCapability,
106877
107465
  provider: {
106878
107466
  getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
106879
- getVersion: async () => ({ version: "1.2.696" })
107467
+ getVersion: async () => ({ version: "1.2.698" })
106880
107468
  }
106881
107469
  }];
106882
107470
  }