@nebulahome/integration-sdk 1.2.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/testing.d.ts CHANGED
@@ -228,6 +228,44 @@ type MatterIdentification = {
228
228
  * @throws {Error} When the vendor has no discovery that loaded.
229
229
  */
230
230
  export declare function identifyMatter(vendor: LoadedVendor, identity: Readonly<Record<string, unknown>>): MatterIdentification;
231
+ /** What discovery makes of one of the devices the house's MQTT broker hears. */
232
+ type MqttIdentification = {
233
+ /** Whether the vendor's `mqtt` rules take it: every condition holds. */
234
+ readonly matches: boolean;
235
+ /** The MQTT driver and the model it names; null when no driver takes the device. */
236
+ readonly association: Association | null;
237
+ };
238
+ /**
239
+ * Says what discovery makes of one of the devices the house's MQTT broker hears - one that
240
+ * announced itself, or one the owner mapped - by the vendor's `mqtt` rules. A device that another
241
+ * vendor's rules take too is the platform's own instead, which one vendor's test cannot see.
242
+ *
243
+ * @param vendor - The vendor, loaded with `loadIntegration`.
244
+ * @param identity - Who the device says it is: `manufacturer`, `model`, `originName`,
245
+ * `identifiers` and the rest of the fields FILES.md lists; a field left out is one it does not say.
246
+ * @returns What discovery makes of it.
247
+ * @throws {Error} When the vendor has no discovery that loaded.
248
+ */
249
+ export declare function identifyMqtt(vendor: LoadedVendor, identity: Readonly<Record<string, unknown>>): MqttIdentification;
250
+ /** What discovery makes of one of the Modbus servers the house's network search found. */
251
+ type ModbusIdentification = {
252
+ /** Whether the vendor's `modbus` rules take it: every condition holds. */
253
+ readonly matches: boolean;
254
+ /** The Modbus driver and the model it names; null when no driver takes the server. */
255
+ readonly association: Association | null;
256
+ };
257
+ /**
258
+ * Says what discovery makes of one of the Modbus servers the network search found, by the
259
+ * vendor's `modbus` rules. The test says what the server answered to each value the block reads:
260
+ * the platform reads them through the house's Modbus client and matches the rules on
261
+ * `values.<name>`, `host`, `port` and `unitId`.
262
+ *
263
+ * @param vendor - The vendor, loaded with `loadIntegration`.
264
+ * @param identity - The server: `{ host, port, unitId, values: { serial: 'H34A10I1234567' } }`.
265
+ * @returns What discovery makes of it.
266
+ * @throws {Error} When the vendor has no discovery that loaded.
267
+ */
268
+ export declare function identifyModbus(vendor: LoadedVendor, identity: Readonly<Record<string, unknown>>): ModbusIdentification;
231
269
  //#endregion
232
270
  //#region src/testing/load.d.ts
233
271
  /** What loading takes. */
@@ -283,4 +321,4 @@ export declare class IntegrationError extends Error {
283
321
  constructor(problems: readonly string[]);
284
322
  }
285
323
  //#endregion
286
- export type { Association, BundleFailure, DriverHarness, DriverHarnessOptions, FakeSdk, FakeSdkOptions, FakeUdpSocket, FakeWebSocket, HarnessDevice, Identification, LoadIntegrationOptions, LoadedAccount, LoadedBundle, LoadedDiscovery, LoadedIntegration, LoadedListenSource, LoadedVendor, LogLevel, LogRecord, MatterIdentification, SentDatagram, SightingIdentity };
324
+ export type { Association, BundleFailure, DriverHarness, DriverHarnessOptions, FakeSdk, FakeSdkOptions, FakeUdpSocket, FakeWebSocket, HarnessDevice, Identification, LoadIntegrationOptions, LoadedAccount, LoadedBundle, LoadedDiscovery, LoadedIntegration, LoadedListenSource, LoadedVendor, LogLevel, LogRecord, MatterIdentification, ModbusIdentification, MqttIdentification, SentDatagram, SightingIdentity };
package/dist/testing.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as associateModel, c as matchesMatter, g as composeEntityId, i as associateMatter, n as readVendorDirectory, o as identifySighting, s as matchesAnnouncement, t as instantiateVendor } from "./chunks/node-dist.js";
1
+ import { _ as composeEntityId, a as associateModel, c as matchesBroker, i as associateBroker, n as readVendorDirectory, o as identifySighting, s as matchesAnnouncement, t as instantiateVendor } from "./chunks/node-dist.js";
2
2
  import { a as sourceModule, i as runtimeVersion, o as createFakeSdk, r as readProject, t as IntegrationError } from "./chunks/node-project.js";
3
3
  import { pathToFileURL } from "node:url";
4
4
  //#region src/testing/harness.ts
@@ -194,10 +194,50 @@ function identify(vendor, heard) {
194
194
  function identifyMatter(vendor, identity) {
195
195
  const plan = vendor.discovery?.plan;
196
196
  if (plan === void 0) throw new Error(`${vendor.manifest.id} has no discovery.json that loaded`);
197
- const matches = matchesMatter(plan, identity);
197
+ const matches = matchesBroker(plan, "matter", identity);
198
198
  return {
199
199
  matches,
200
- association: matches ? associateMatter(plan, identity) : null
200
+ association: matches ? associateBroker(plan, "matter", identity) : null
201
+ };
202
+ }
203
+ /**
204
+ * Says what discovery makes of one of the devices the house's MQTT broker hears - one that
205
+ * announced itself, or one the owner mapped - by the vendor's `mqtt` rules. A device that another
206
+ * vendor's rules take too is the platform's own instead, which one vendor's test cannot see.
207
+ *
208
+ * @param vendor - The vendor, loaded with `loadIntegration`.
209
+ * @param identity - Who the device says it is: `manufacturer`, `model`, `originName`,
210
+ * `identifiers` and the rest of the fields FILES.md lists; a field left out is one it does not say.
211
+ * @returns What discovery makes of it.
212
+ * @throws {Error} When the vendor has no discovery that loaded.
213
+ */
214
+ function identifyMqtt(vendor, identity) {
215
+ const plan = vendor.discovery?.plan;
216
+ if (plan === void 0) throw new Error(`${vendor.manifest.id} has no discovery.json that loaded`);
217
+ const matches = matchesBroker(plan, "mqtt", identity);
218
+ return {
219
+ matches,
220
+ association: matches ? associateBroker(plan, "mqtt", identity) : null
221
+ };
222
+ }
223
+ /**
224
+ * Says what discovery makes of one of the Modbus servers the network search found, by the
225
+ * vendor's `modbus` rules. The test says what the server answered to each value the block reads:
226
+ * the platform reads them through the house's Modbus client and matches the rules on
227
+ * `values.<name>`, `host`, `port` and `unitId`.
228
+ *
229
+ * @param vendor - The vendor, loaded with `loadIntegration`.
230
+ * @param identity - The server: `{ host, port, unitId, values: { serial: 'H34A10I1234567' } }`.
231
+ * @returns What discovery makes of it.
232
+ * @throws {Error} When the vendor has no discovery that loaded.
233
+ */
234
+ function identifyModbus(vendor, identity) {
235
+ const plan = vendor.discovery?.plan;
236
+ if (plan === void 0) throw new Error(`${vendor.manifest.id} has no discovery.json that loaded`);
237
+ const matches = matchesBroker(plan, "modbus", identity);
238
+ return {
239
+ matches,
240
+ association: matches ? associateBroker(plan, "modbus", identity) : null
201
241
  };
202
242
  }
203
243
  //#endregion
@@ -268,4 +308,4 @@ async function loadIntegration(options = {}) {
268
308
  };
269
309
  }
270
310
  //#endregion
271
- export { IntegrationError, createFakeSdk, driverHarness, identify, identifyMatter, loadIntegration };
311
+ export { IntegrationError, createFakeSdk, driverHarness, identify, identifyMatter, identifyModbus, identifyMqtt, loadIntegration };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nebulahome/integration-sdk",
3
- "version": "1.2.0",
3
+ "version": "1.5.0",
4
4
  "description": "Write a NebulaHome integration: check it, build it, test it and release it for the platform.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -62,10 +62,10 @@
62
62
  "tsdown": "^0.23.0",
63
63
  "typescript": "^6.0.3",
64
64
  "vitest": "^4.1.11",
65
- "@nebulahome/contracts": "0.0.0",
66
- "@nebulahome/eslint-config": "0.0.0",
67
- "@nebulahome/package-runtime": "0.0.0",
68
- "@nebulahome/tsconfig": "0.0.0"
65
+ "@nebulahome/contracts": "2026.10.0-alpha.4",
66
+ "@nebulahome/tsconfig": "2026.10.0-alpha.4",
67
+ "@nebulahome/package-runtime": "2026.10.0-alpha.4",
68
+ "@nebulahome/eslint-config": "2026.10.0-alpha.4"
69
69
  },
70
70
  "scripts": {
71
71
  "build": "tsdown && node scripts/build-schemas.js",
@@ -597,6 +597,496 @@
597
597
  ],
598
598
  "additionalProperties": false
599
599
  },
600
+ "mqtt": {
601
+ "type": "object",
602
+ "properties": {
603
+ "match": {
604
+ "minItems": 1,
605
+ "maxItems": 16,
606
+ "type": "array",
607
+ "items": {
608
+ "anyOf": [
609
+ {
610
+ "type": "object",
611
+ "properties": {
612
+ "path": {
613
+ "type": "string",
614
+ "minLength": 1,
615
+ "maxLength": 256,
616
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
617
+ },
618
+ "equals": {
619
+ "type": [
620
+ "string",
621
+ "number",
622
+ "boolean"
623
+ ]
624
+ }
625
+ },
626
+ "required": [
627
+ "path",
628
+ "equals"
629
+ ],
630
+ "additionalProperties": false
631
+ },
632
+ {
633
+ "type": "object",
634
+ "properties": {
635
+ "path": {
636
+ "type": "string",
637
+ "minLength": 1,
638
+ "maxLength": 256,
639
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
640
+ },
641
+ "exists": {
642
+ "type": "boolean",
643
+ "const": true
644
+ }
645
+ },
646
+ "required": [
647
+ "path",
648
+ "exists"
649
+ ],
650
+ "additionalProperties": false
651
+ },
652
+ {
653
+ "type": "object",
654
+ "properties": {
655
+ "path": {
656
+ "type": "string",
657
+ "minLength": 1,
658
+ "maxLength": 256,
659
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
660
+ },
661
+ "oneOf": {
662
+ "minItems": 1,
663
+ "maxItems": 64,
664
+ "type": "array",
665
+ "items": {
666
+ "type": [
667
+ "string",
668
+ "number",
669
+ "boolean"
670
+ ]
671
+ }
672
+ }
673
+ },
674
+ "required": [
675
+ "path",
676
+ "oneOf"
677
+ ],
678
+ "additionalProperties": false
679
+ },
680
+ {
681
+ "type": "object",
682
+ "properties": {
683
+ "path": {
684
+ "type": "string",
685
+ "minLength": 1,
686
+ "maxLength": 256,
687
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
688
+ },
689
+ "startsWith": {
690
+ "type": "string",
691
+ "minLength": 1,
692
+ "maxLength": 64
693
+ }
694
+ },
695
+ "required": [
696
+ "path",
697
+ "startsWith"
698
+ ],
699
+ "additionalProperties": false
700
+ },
701
+ {
702
+ "type": "object",
703
+ "properties": {
704
+ "path": {
705
+ "type": "string",
706
+ "minLength": 1,
707
+ "maxLength": 256,
708
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
709
+ },
710
+ "endsWith": {
711
+ "type": "string",
712
+ "minLength": 1,
713
+ "maxLength": 64
714
+ }
715
+ },
716
+ "required": [
717
+ "path",
718
+ "endsWith"
719
+ ],
720
+ "additionalProperties": false
721
+ },
722
+ {
723
+ "type": "object",
724
+ "properties": {
725
+ "path": {
726
+ "type": "string",
727
+ "minLength": 1,
728
+ "maxLength": 256,
729
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
730
+ },
731
+ "contains": {
732
+ "type": [
733
+ "string",
734
+ "number",
735
+ "boolean"
736
+ ]
737
+ }
738
+ },
739
+ "required": [
740
+ "path",
741
+ "contains"
742
+ ],
743
+ "additionalProperties": false
744
+ },
745
+ {
746
+ "type": "object",
747
+ "properties": {
748
+ "path": {
749
+ "type": "string",
750
+ "minLength": 1,
751
+ "maxLength": 256,
752
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
753
+ },
754
+ "min": {
755
+ "type": "number"
756
+ },
757
+ "max": {
758
+ "type": "number"
759
+ }
760
+ },
761
+ "required": [
762
+ "path"
763
+ ],
764
+ "additionalProperties": false
765
+ }
766
+ ]
767
+ }
768
+ },
769
+ "model": {
770
+ "default": "model",
771
+ "anyOf": [
772
+ {
773
+ "type": "string",
774
+ "minLength": 1,
775
+ "maxLength": 256,
776
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
777
+ },
778
+ {
779
+ "minItems": 1,
780
+ "maxItems": 4,
781
+ "type": "array",
782
+ "items": {
783
+ "type": "string",
784
+ "minLength": 1,
785
+ "maxLength": 256,
786
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
787
+ }
788
+ }
789
+ ]
790
+ }
791
+ },
792
+ "required": [
793
+ "match"
794
+ ],
795
+ "additionalProperties": false
796
+ },
797
+ "modbus": {
798
+ "type": "object",
799
+ "properties": {
800
+ "match": {
801
+ "minItems": 1,
802
+ "maxItems": 16,
803
+ "type": "array",
804
+ "items": {
805
+ "anyOf": [
806
+ {
807
+ "type": "object",
808
+ "properties": {
809
+ "path": {
810
+ "type": "string",
811
+ "minLength": 1,
812
+ "maxLength": 256,
813
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
814
+ },
815
+ "equals": {
816
+ "type": [
817
+ "string",
818
+ "number",
819
+ "boolean"
820
+ ]
821
+ }
822
+ },
823
+ "required": [
824
+ "path",
825
+ "equals"
826
+ ],
827
+ "additionalProperties": false
828
+ },
829
+ {
830
+ "type": "object",
831
+ "properties": {
832
+ "path": {
833
+ "type": "string",
834
+ "minLength": 1,
835
+ "maxLength": 256,
836
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
837
+ },
838
+ "exists": {
839
+ "type": "boolean",
840
+ "const": true
841
+ }
842
+ },
843
+ "required": [
844
+ "path",
845
+ "exists"
846
+ ],
847
+ "additionalProperties": false
848
+ },
849
+ {
850
+ "type": "object",
851
+ "properties": {
852
+ "path": {
853
+ "type": "string",
854
+ "minLength": 1,
855
+ "maxLength": 256,
856
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
857
+ },
858
+ "oneOf": {
859
+ "minItems": 1,
860
+ "maxItems": 64,
861
+ "type": "array",
862
+ "items": {
863
+ "type": [
864
+ "string",
865
+ "number",
866
+ "boolean"
867
+ ]
868
+ }
869
+ }
870
+ },
871
+ "required": [
872
+ "path",
873
+ "oneOf"
874
+ ],
875
+ "additionalProperties": false
876
+ },
877
+ {
878
+ "type": "object",
879
+ "properties": {
880
+ "path": {
881
+ "type": "string",
882
+ "minLength": 1,
883
+ "maxLength": 256,
884
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
885
+ },
886
+ "startsWith": {
887
+ "type": "string",
888
+ "minLength": 1,
889
+ "maxLength": 64
890
+ }
891
+ },
892
+ "required": [
893
+ "path",
894
+ "startsWith"
895
+ ],
896
+ "additionalProperties": false
897
+ },
898
+ {
899
+ "type": "object",
900
+ "properties": {
901
+ "path": {
902
+ "type": "string",
903
+ "minLength": 1,
904
+ "maxLength": 256,
905
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
906
+ },
907
+ "endsWith": {
908
+ "type": "string",
909
+ "minLength": 1,
910
+ "maxLength": 64
911
+ }
912
+ },
913
+ "required": [
914
+ "path",
915
+ "endsWith"
916
+ ],
917
+ "additionalProperties": false
918
+ },
919
+ {
920
+ "type": "object",
921
+ "properties": {
922
+ "path": {
923
+ "type": "string",
924
+ "minLength": 1,
925
+ "maxLength": 256,
926
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
927
+ },
928
+ "contains": {
929
+ "type": [
930
+ "string",
931
+ "number",
932
+ "boolean"
933
+ ]
934
+ }
935
+ },
936
+ "required": [
937
+ "path",
938
+ "contains"
939
+ ],
940
+ "additionalProperties": false
941
+ },
942
+ {
943
+ "type": "object",
944
+ "properties": {
945
+ "path": {
946
+ "type": "string",
947
+ "minLength": 1,
948
+ "maxLength": 256,
949
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
950
+ },
951
+ "min": {
952
+ "type": "number"
953
+ },
954
+ "max": {
955
+ "type": "number"
956
+ }
957
+ },
958
+ "required": [
959
+ "path"
960
+ ],
961
+ "additionalProperties": false
962
+ }
963
+ ]
964
+ }
965
+ },
966
+ "model": {
967
+ "default": "values.model",
968
+ "anyOf": [
969
+ {
970
+ "type": "string",
971
+ "minLength": 1,
972
+ "maxLength": 256,
973
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
974
+ },
975
+ {
976
+ "minItems": 1,
977
+ "maxItems": 4,
978
+ "type": "array",
979
+ "items": {
980
+ "type": "string",
981
+ "minLength": 1,
982
+ "maxLength": 256,
983
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
984
+ }
985
+ }
986
+ ]
987
+ },
988
+ "unitId": {
989
+ "default": 1,
990
+ "type": "integer",
991
+ "minimum": 1,
992
+ "maximum": 247
993
+ },
994
+ "read": {
995
+ "default": {},
996
+ "type": "object",
997
+ "propertyNames": {
998
+ "type": "string",
999
+ "pattern": "^[a-z][a-zA-Z0-9_]{0,31}$"
1000
+ },
1001
+ "additionalProperties": {
1002
+ "type": "object",
1003
+ "properties": {
1004
+ "function": {
1005
+ "anyOf": [
1006
+ {
1007
+ "type": "number",
1008
+ "const": 1
1009
+ },
1010
+ {
1011
+ "type": "number",
1012
+ "const": 2
1013
+ },
1014
+ {
1015
+ "type": "number",
1016
+ "const": 3
1017
+ },
1018
+ {
1019
+ "type": "number",
1020
+ "const": 4
1021
+ }
1022
+ ]
1023
+ },
1024
+ "address": {
1025
+ "anyOf": [
1026
+ {
1027
+ "type": "integer",
1028
+ "minimum": 0,
1029
+ "maximum": 65535
1030
+ },
1031
+ {
1032
+ "type": "string",
1033
+ "pattern": "^0x[0-9a-fA-F]{1,4}$"
1034
+ }
1035
+ ]
1036
+ },
1037
+ "type": {
1038
+ "type": "string",
1039
+ "enum": [
1040
+ "u16",
1041
+ "s16",
1042
+ "u32",
1043
+ "s32",
1044
+ "f32",
1045
+ "string"
1046
+ ]
1047
+ },
1048
+ "count": {
1049
+ "type": "integer",
1050
+ "minimum": 1,
1051
+ "maximum": 64
1052
+ },
1053
+ "bit": {
1054
+ "type": "integer",
1055
+ "minimum": 0,
1056
+ "maximum": 15
1057
+ },
1058
+ "scale": {
1059
+ "type": "number"
1060
+ },
1061
+ "unit": {
1062
+ "type": "string"
1063
+ },
1064
+ "options": {
1065
+ "type": "object",
1066
+ "propertyNames": {
1067
+ "type": "string",
1068
+ "pattern": "^-?\\d{1,10}$"
1069
+ },
1070
+ "additionalProperties": {
1071
+ "type": "string",
1072
+ "minLength": 1,
1073
+ "maxLength": 64
1074
+ }
1075
+ }
1076
+ },
1077
+ "required": [
1078
+ "function",
1079
+ "address"
1080
+ ],
1081
+ "additionalProperties": false
1082
+ }
1083
+ }
1084
+ },
1085
+ "required": [
1086
+ "match"
1087
+ ],
1088
+ "additionalProperties": false
1089
+ },
600
1090
  "adopt": {
601
1091
  "default": "owner",
602
1092
  "type": "string",
@@ -74,7 +74,9 @@
74
74
  "enum": [
75
75
  "declarative",
76
76
  "code",
77
- "matter"
77
+ "matter",
78
+ "mqtt",
79
+ "modbus"
78
80
  ]
79
81
  },
80
82
  "defaultIcon": {
@@ -101,6 +103,11 @@
101
103
  "minLength": 1,
102
104
  "maxLength": 256
103
105
  },
106
+ "template": {
107
+ "type": "string",
108
+ "minLength": 1,
109
+ "maxLength": 256
110
+ },
104
111
  "setup": {
105
112
  "type": "string",
106
113
  "minLength": 1,