@uncaught/gpio-shutter-bridge 1.1.0 → 1.1.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.
@@ -66,7 +66,7 @@ export function initMqtt(shutters, onDispose, { url, ...mqttOpts }, namespace =
66
66
  },
67
67
  origin: {
68
68
  name: ns0,
69
- sw_version: '1.1.0',
69
+ sw_version: '1.1.1',
70
70
  support_url: 'https://github.com/uncaught/gpio-shutter-bridge',
71
71
  },
72
72
  payload_available: 'online',
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@uncaught/gpio-shutter-bridge",
3
3
  "author": "uncaught <uncaught42@gmail.com>",
4
4
  "license": "MIT",
5
- "version": "1.1.0",
5
+ "version": "1.1.1",
6
6
  "description": "MQTT shutter bridge for home assistant with Velux KLF 150 support",
7
7
  "repository": {
8
8
  "type": "git",
@@ -13,8 +13,8 @@
13
13
  },
14
14
  "homepage": "https://github.com/uncaught/gpio-shutter-bridge#readme",
15
15
  "type": "module",
16
- "main": "dist/index.js",
17
- "types": "dist/index.d.ts",
16
+ "exports": "./dist/index.js",
17
+ "types": "./dist/index.d.ts",
18
18
  "scripts": {
19
19
  "build": "tsc",
20
20
  "prepublishOnly": "npm run build"
package/dist/example.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
package/dist/example.js DELETED
@@ -1,33 +0,0 @@
1
- import { createVeluxShutters, initRuntime, initMqtt, createThreeButtonShutter } from './src/index.js';
2
- /**
3
- * This is an example for connecting to a Velux KLF150 with up to 5 shutters.
4
- * The up/down pins are all aligned on the left GPIO column and the inputs are on the right, except for shutter e.
5
- */
6
- const veluxKlf150 = [
7
- { ident: 'Velux_A', up: 2, down: 3, input: 14 },
8
- { ident: 'Velux_B', up: 4, down: 17, input: 15 },
9
- { ident: 'Velux_C', up: 27, down: 22, input: 18 },
10
- { ident: 'Velux_D', up: 10, down: 9, input: 23 },
11
- { ident: 'Velux_E', up: 11, down: 8, input: 24 }, //same row!
12
- ];
13
- /**
14
- * When using exactly 3 shutters, using the CDE socket with the 6x2 plug makes more sense:
15
- */
16
- const veluxKlf150CDE = [
17
- { ...veluxKlf150[0], ident: 'Velux_C' },
18
- { ...veluxKlf150[1], ident: 'Velux_D' },
19
- { ...veluxKlf150[2], ident: 'Velux_E' },
20
- ];
21
- /**
22
- * This runtime implementation is also just an example - you can use your own implementation if you want.
23
- */
24
- const { onDispose } = initRuntime();
25
- /**
26
- * For my personal use, I have 3 shutters tied to the Velux KLF150 and another shutter controlled with
27
- * a 3-button remote, which I hacked and connected to the GPIO-pins 10/9/11:
28
- */
29
- const shutters = [
30
- ...createVeluxShutters(veluxKlf150CDE, onDispose),
31
- createThreeButtonShutter('Balkon', 10, 9, 11, onDispose),
32
- ];
33
- initMqtt(shutters, onDispose, { url: 'mqtts://mosquitto.local.correnz.net', rejectUnauthorized: false });
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes