@enyo-energy/energy-app-sdk 0.0.182 → 0.0.183

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/README.md CHANGED
@@ -260,6 +260,14 @@ const packageDef = defineEnergyAppPackage({
260
260
  registerSize: 2,
261
261
  type: 'string',
262
262
  matchingValues: ['SolarMax', 'SMA']
263
+ }],
264
+ mdns: [{
265
+ // The Envoy advertises under a vendor-specific service type; without
266
+ // `serviceType` the host never browses it and this rule can't fire.
267
+ serviceType: '_enphase-envoy._tcp.local',
268
+ key: 'serialnum',
269
+ operation: 'startsWith',
270
+ matchingValues: ['1224']
263
271
  }]
264
272
  }
265
273
  }
@@ -84,6 +84,26 @@ export interface EnergyAppPackageOptionsDeviceDetectionMdns {
84
84
  operation: 'eq' | 'startsWith';
85
85
  /** Values to match the TXT record value against */
86
86
  matchingValues: string[];
87
+ /**
88
+ * The DNS-SD service type the device advertises itself under, including the
89
+ * `.local` suffix — e.g. `'_enphase-envoy._tcp.local'`.
90
+ *
91
+ * The host browses a small built-in set of common service types
92
+ * (`_http._tcp`, `_https._tcp`, `_device-info._tcp`, `_modbus._tcp`). Devices
93
+ * advertising a vendor-specific type are invisible to that set, so their TXT
94
+ * records never reach detection. Declaring the type here adds it to the
95
+ * host's browse set — no host firmware update needed.
96
+ *
97
+ * When set, this rule only matches TXT records advertised by a service of
98
+ * this exact type. When omitted, the rule matches TXT records from any
99
+ * browsed service on the device (previous behaviour, unchanged).
100
+ *
101
+ * Find a device's type with `avahi-browse -a -t` (Linux) or
102
+ * `dns-sd -B _services._dns-sd._udp` (macOS).
103
+ *
104
+ * @example '_enphase-envoy._tcp.local'
105
+ */
106
+ serviceType?: string;
87
107
  }
88
108
  /**
89
109
  * Optional device detection configuration for MQTT-based detection.
@@ -9,7 +9,7 @@ exports.getSdkVersion = getSdkVersion;
9
9
  /**
10
10
  * Current version of the enyo Energy App SDK.
11
11
  */
12
- exports.SDK_VERSION = '0.0.182';
12
+ exports.SDK_VERSION = '0.0.183';
13
13
  /**
14
14
  * Gets the current SDK version.
15
15
  * @returns The semantic version string of the SDK
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Current version of the enyo Energy App SDK.
7
7
  */
8
- export declare const SDK_VERSION = "0.0.182";
8
+ export declare const SDK_VERSION = "0.0.183";
9
9
  /**
10
10
  * Gets the current SDK version.
11
11
  * @returns The semantic version string of the SDK
@@ -84,6 +84,26 @@ export interface EnergyAppPackageOptionsDeviceDetectionMdns {
84
84
  operation: 'eq' | 'startsWith';
85
85
  /** Values to match the TXT record value against */
86
86
  matchingValues: string[];
87
+ /**
88
+ * The DNS-SD service type the device advertises itself under, including the
89
+ * `.local` suffix — e.g. `'_enphase-envoy._tcp.local'`.
90
+ *
91
+ * The host browses a small built-in set of common service types
92
+ * (`_http._tcp`, `_https._tcp`, `_device-info._tcp`, `_modbus._tcp`). Devices
93
+ * advertising a vendor-specific type are invisible to that set, so their TXT
94
+ * records never reach detection. Declaring the type here adds it to the
95
+ * host's browse set — no host firmware update needed.
96
+ *
97
+ * When set, this rule only matches TXT records advertised by a service of
98
+ * this exact type. When omitted, the rule matches TXT records from any
99
+ * browsed service on the device (previous behaviour, unchanged).
100
+ *
101
+ * Find a device's type with `avahi-browse -a -t` (Linux) or
102
+ * `dns-sd -B _services._dns-sd._udp` (macOS).
103
+ *
104
+ * @example '_enphase-envoy._tcp.local'
105
+ */
106
+ serviceType?: string;
87
107
  }
88
108
  /**
89
109
  * Optional device detection configuration for MQTT-based detection.
package/dist/version.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Current version of the enyo Energy App SDK.
7
7
  */
8
- export declare const SDK_VERSION = "0.0.182";
8
+ export declare const SDK_VERSION = "0.0.183";
9
9
  /**
10
10
  * Gets the current SDK version.
11
11
  * @returns The semantic version string of the SDK
package/dist/version.js CHANGED
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Current version of the enyo Energy App SDK.
7
7
  */
8
- export const SDK_VERSION = '0.0.182';
8
+ export const SDK_VERSION = '0.0.183';
9
9
  /**
10
10
  * Gets the current SDK version.
11
11
  * @returns The semantic version string of the SDK
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enyo-energy/energy-app-sdk",
3
- "version": "0.0.182",
3
+ "version": "0.0.183",
4
4
  "description": "enyo Energy App SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",