@nebulahome/integration-sdk 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@
3
3
  The SDK's version is the version of the integration contract the platform implements: a minor
4
4
  version adds to the contract, a major one breaks it, and a patch leaves it as it is.
5
5
 
6
+ ## 1.6.1
7
+
8
+ - `sdk.codecs.infrared`: a Broadlink tick is 8192/269 µs, about 30.45 µs, as measured against real
9
+ firmware (broadlink-async), not 32.84 µs. Codes imported from other formats went out about 7 %
10
+ short; a code learned and sent again by the same Broadlink was right either way.
11
+ `BROADLINK_TICK_US` says the new value.
12
+
6
13
  ## 1.6.0
7
14
 
8
15
  Serial ports, Bluetooth, IR blasters and Bluetooth proxies.
@@ -923,7 +923,11 @@ type SerialLine = z.output<typeof serialLineSchema>;
923
923
  declare namespace infrared_codes_d_exports {
924
924
  export { BROADLINK_TICK_US, DEFAULT_IR_CARRIER_HZ, FlipperIrCode, FlipperIrFile, InfraredImportProblem, decodeBroadlink, decodeInfraredProtocol, decodePronto, decodeRawTimings, encodeBroadlink, encodeInfraredProtocol, encodePronto, encodeRawTimings, parseFlipperIr, withInfraredProtocol };
925
925
  }
926
- /** One Broadlink tick: 269/8192 ms, about 32.84 µs. */
926
+ /**
927
+ * One Broadlink tick: 8192/269 µs, about 30.45 µs - a duration in µs times 269/8192 is ticks,
928
+ * as measured against real firmware (broadlink-async). The inverse, 32.84 µs, made codes from
929
+ * other sources about 7 % short on the air.
930
+ */
927
931
  declare const BROADLINK_TICK_US: number;
928
932
  /** The carrier an infrared code is on when its format does not say: 38 kHz, as most remotes. */
929
933
  declare const DEFAULT_IR_CARRIER_HZ = 38000;
@@ -33,8 +33,12 @@ var infrared_codes_exports = /* @__PURE__ */ __exportAll({
33
33
  parseFlipperIr: () => parseFlipperIr,
34
34
  withInfraredProtocol: () => withInfraredProtocol
35
35
  });
36
- /** One Broadlink tick: 269/8192 ms, about 32.84 µs. */
37
- const BROADLINK_TICK_US = 269 / 8192 * 1e3;
36
+ /**
37
+ * One Broadlink tick: 8192/269 µs, about 30.45 µs - a duration in µs times 269/8192 is ticks,
38
+ * as measured against real firmware (broadlink-async). The inverse, 32.84 µs, made codes from
39
+ * other sources about 7 % short on the air.
40
+ */
41
+ const BROADLINK_TICK_US = 8192 / 269;
38
42
  /** The carrier an infrared code is on when its format does not say: 38 kHz, as most remotes. */
39
43
  const DEFAULT_IR_CARRIER_HZ = 38e3;
40
44
  /** The type byte of a Broadlink infrared packet. */
@@ -826,7 +830,7 @@ function defineTransport(spec) {
826
830
  * bundle built with this SDK says `^<major>.<minor>.0`.
827
831
  */
828
832
  /** The SDK's own version: `1.0.0`, or a prerelease of it. */
829
- const SDK_VERSION = "1.6.0";
833
+ const SDK_VERSION = "1.6.1";
830
834
  /**
831
835
  * The runtime range a bundle built with this SDK declares: this version's major and minor, so a
832
836
  * platform with the same contract or a later one of the same major loads it.
package/dist/index.d.ts CHANGED
@@ -786,7 +786,11 @@ export declare const BLUETOOTH_GATT_OPS: {
786
786
  declare namespace infrared_codes_d_exports {
787
787
  export { BROADLINK_TICK_US, DEFAULT_IR_CARRIER_HZ, FlipperIrCode, FlipperIrFile, InfraredImportProblem, decodeBroadlink, decodeInfraredProtocol, decodePronto, decodeRawTimings, encodeBroadlink, encodeInfraredProtocol, encodePronto, encodeRawTimings, parseFlipperIr, withInfraredProtocol };
788
788
  }
789
- /** One Broadlink tick: 269/8192 ms, about 32.84 µs. */
789
+ /**
790
+ * One Broadlink tick: 8192/269 µs, about 30.45 µs - a duration in µs times 269/8192 is ticks,
791
+ * as measured against real firmware (broadlink-async). The inverse, 32.84 µs, made codes from
792
+ * other sources about 7 % short on the air.
793
+ */
790
794
  declare const BROADLINK_TICK_US: number;
791
795
  /** The carrier an infrared code is on when its format does not say: 38 kHz, as most remotes. */
792
796
  declare const DEFAULT_IR_CARRIER_HZ = 38000;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nebulahome/integration-sdk",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
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/package-runtime": "2026.10.0-alpha.6",
66
- "@nebulahome/contracts": "2026.10.0-alpha.6",
67
- "@nebulahome/tsconfig": "2026.10.0-alpha.6",
68
- "@nebulahome/eslint-config": "2026.10.0-alpha.6"
65
+ "@nebulahome/contracts": "2026.10.0-alpha.8",
66
+ "@nebulahome/tsconfig": "2026.10.0-alpha.8",
67
+ "@nebulahome/package-runtime": "2026.10.0-alpha.8",
68
+ "@nebulahome/eslint-config": "2026.10.0-alpha.8"
69
69
  },
70
70
  "scripts": {
71
71
  "build": "tsdown && node scripts/build-schemas.js",