homebridge-loxone-proxy 1.12.2-beta.3 → 1.13.0-beta.2
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 +3 -3
- package/config.schema.json +21 -1
- package/dist/homekit/hksv/LoxoneTalkback.d.ts +70 -0
- package/dist/homekit/hksv/LoxoneTalkback.d.ts.map +1 -0
- package/dist/homekit/hksv/LoxoneTalkback.js +578 -0
- package/dist/homekit/hksv/LoxoneTalkback.js.map +1 -0
- package/dist/homekit/hksv/RecordingDelegate.d.ts +8 -1
- package/dist/homekit/hksv/RecordingDelegate.d.ts.map +1 -1
- package/dist/homekit/hksv/RecordingDelegate.js +124 -34
- package/dist/homekit/hksv/RecordingDelegate.js.map +1 -1
- package/dist/homekit/hksv/StreamingDelegate.d.ts +21 -3
- package/dist/homekit/hksv/StreamingDelegate.d.ts.map +1 -1
- package/dist/homekit/hksv/StreamingDelegate.js +291 -64
- package/dist/homekit/hksv/StreamingDelegate.js.map +1 -1
- package/dist/homekit/services/Camera.d.ts +10 -3
- package/dist/homekit/services/Camera.d.ts.map +1 -1
- package/dist/homekit/services/Camera.js +38 -27
- package/dist/homekit/services/Camera.js.map +1 -1
- package/dist/homekit/services/CameraMotionSensor.d.ts +14 -10
- package/dist/homekit/services/CameraMotionSensor.d.ts.map +1 -1
- package/dist/homekit/services/CameraMotionSensor.js +121 -83
- package/dist/homekit/services/CameraMotionSensor.js.map +1 -1
- package/dist/loxone/LoxoneHandler.d.ts +1 -0
- package/dist/loxone/LoxoneHandler.d.ts.map +1 -1
- package/dist/loxone/LoxoneHandler.js +21 -0
- package/dist/loxone/LoxoneHandler.js.map +1 -1
- package/dist/loxone/items/Intercom.d.ts +5 -2
- package/dist/loxone/items/Intercom.d.ts.map +1 -1
- package/dist/loxone/items/Intercom.js +125 -26
- package/dist/loxone/items/Intercom.js.map +1 -1
- package/dist/loxone/items/IntercomV2.d.ts +5 -3
- package/dist/loxone/items/IntercomV2.d.ts.map +1 -1
- package/dist/loxone/items/IntercomV2.js +104 -24
- package/dist/loxone/items/IntercomV2.js.map +1 -1
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -41,7 +41,7 @@ The following list displays all supported itemtypes supported by this plugin.
|
|
|
41
41
|
|`WindowMonitor` | ContactSensor | Auto
|
|
42
42
|
|`Window` | Window | Auto
|
|
43
43
|
|
|
44
|
-
For the plugin to recognize the items, the item needs to be
|
|
44
|
+
For the plugin to recognize the items, the item needs to be visible in the user interface. This can be done by enabling "use" in the userinterface section of the item.
|
|
45
45
|
|
|
46
46
|
<img width="408" alt="useinuserinterface" src="https://github.com/rudyberends/homebridge-loxone-proxy/assets/75836217/b422015b-4a5d-411e-b98c-42ef86cf8d58">
|
|
47
47
|
|
|
@@ -68,14 +68,14 @@ Filters allow you to select what to expose to HomeKit.
|
|
|
68
68
|
When enabled, all LightControllerV2 moods are mapped to a homekit switch. All Switches from the same LightController will be grouped together. In homeKit this works as a radio switch, so only one switch (mood) can be active at the same time. Mixing moods is not possible.
|
|
69
69
|
|
|
70
70
|
### Exclusions
|
|
71
|
-
To exclude Itemtypes from being mapped,
|
|
71
|
+
To exclude Itemtypes from being mapped, add them to the Exclusions section in the config as a comma-separated list. Matching is case-sensitive — the case of the item type names is considered when comparing entries.
|
|
72
72
|
|
|
73
73
|
<img width="748" alt="filters" src="https://github.com/rudyberends/homebridge-loxone-proxy/assets/75836217/c61daa1b-83aa-467b-a258-8b648a6f575e">
|
|
74
74
|
|
|
75
75
|
The itemtype name can be found in the "mapped items" table.
|
|
76
76
|
|
|
77
77
|
### Room Filter
|
|
78
|
-
The roomfilter List can fuction as a filter for certain rooms. Use a comma-seperated list for multiple
|
|
78
|
+
The roomfilter List can fuction as a filter for certain rooms. Add room names in lowercase (matching is performed against lowercase names). Use a comma-seperated list for multiple rooms. Depending on the roomfilter Type, this serves as an inclusion, or exclusion list.
|
|
79
79
|
|
|
80
80
|
## Manual mapping
|
|
81
81
|
Some items cannot be mapped automatically and require a naming convention to be recognized. For example, giving all Brightness sensors the convention "MH0'XX'" in Loxone Config
|
package/config.schema.json
CHANGED
|
@@ -62,6 +62,23 @@
|
|
|
62
62
|
"type": "boolean",
|
|
63
63
|
"title": "Use Motion to trigger Doorbell event",
|
|
64
64
|
"default": false
|
|
65
|
+
},
|
|
66
|
+
"JpegHeaderSize": {
|
|
67
|
+
"type": "integer",
|
|
68
|
+
"title": "JPEG Header Size Offset (bytes)",
|
|
69
|
+
"description": "Adjust motion detection baseline when cameras prepend variable JPEG metadata.",
|
|
70
|
+
"default": 623
|
|
71
|
+
},
|
|
72
|
+
"EnableTwoWayAudio": {
|
|
73
|
+
"type": "boolean",
|
|
74
|
+
"title": "Enable Two-Way Audio (experimental)",
|
|
75
|
+
"description": "Enables HomeKit return audio. Loxone Intercom V2 uses automatic WebRTC talkback (no FFmpeg output args needed).",
|
|
76
|
+
"default": false
|
|
77
|
+
},
|
|
78
|
+
"TwoWayAudioOutputArgs": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"title": "Two-Way Audio FFmpeg Output Args",
|
|
81
|
+
"description": "Optional for non-Loxone cameras: FFmpeg output arguments for return audio. Placeholders: {camera_host}, {stream_url}, {audio_host}, {audio_user}, {audio_pass}. Example: -ac 1 -ar 8000 -acodec pcm_mulaw -f rtp rtp://{camera_host}:5004"
|
|
65
82
|
}
|
|
66
83
|
}
|
|
67
84
|
},
|
|
@@ -240,7 +257,10 @@
|
|
|
240
257
|
"title": "Advanced",
|
|
241
258
|
"description": "",
|
|
242
259
|
"items": [
|
|
243
|
-
"Advanced.NfcCodeTouchMapping"
|
|
260
|
+
"Advanced.NfcCodeTouchMapping",
|
|
261
|
+
"Advanced.JpegHeaderSize",
|
|
262
|
+
"Advanced.EnableTwoWayAudio",
|
|
263
|
+
"Advanced.TwoWayAudioOutputArgs"
|
|
244
264
|
]
|
|
245
265
|
}
|
|
246
266
|
]
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
3
|
+
import { LoxonePlatform } from '../../LoxonePlatform';
|
|
4
|
+
export interface LoxoneTalkbackOptions {
|
|
5
|
+
platform: LoxonePlatform;
|
|
6
|
+
cameraName: string;
|
|
7
|
+
signalingBaseUrl: string;
|
|
8
|
+
username: string;
|
|
9
|
+
getToken: () => string | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare class LoxoneTalkbackSession {
|
|
12
|
+
private readonly options;
|
|
13
|
+
private readonly rpcTimeoutMs;
|
|
14
|
+
private readonly authMethod;
|
|
15
|
+
private readonly wsProtocol;
|
|
16
|
+
private readonly pcmSampleRate;
|
|
17
|
+
private readonly pcmChannelCount;
|
|
18
|
+
private readonly pcmBitsPerSample;
|
|
19
|
+
private readonly pcmFramesPerChunk;
|
|
20
|
+
private socket?;
|
|
21
|
+
private wrtc?;
|
|
22
|
+
private peerConnection?;
|
|
23
|
+
private audioSource?;
|
|
24
|
+
private localTrack?;
|
|
25
|
+
private rpcId;
|
|
26
|
+
private pendingRpc;
|
|
27
|
+
private localIceQueue;
|
|
28
|
+
private remoteIceQueue;
|
|
29
|
+
private peerReady;
|
|
30
|
+
private stopped;
|
|
31
|
+
private started;
|
|
32
|
+
private pcmBuffer;
|
|
33
|
+
private authChallengeTimer?;
|
|
34
|
+
private readyPromise?;
|
|
35
|
+
private resolveReady?;
|
|
36
|
+
private rejectReady?;
|
|
37
|
+
constructor(options: LoxoneTalkbackOptions);
|
|
38
|
+
start(): Promise<void>;
|
|
39
|
+
pushPcmChunk(chunk: Buffer): void;
|
|
40
|
+
stop(): void;
|
|
41
|
+
private connectAndAuthorize;
|
|
42
|
+
private getDeviceInfo;
|
|
43
|
+
private initializePeerConnection;
|
|
44
|
+
private flushQueuedIceCandidates;
|
|
45
|
+
private sendLocalIceCandidate;
|
|
46
|
+
private handleSocketMessage;
|
|
47
|
+
private handleRpcRequest;
|
|
48
|
+
private handleNotification;
|
|
49
|
+
private handleRpcResponse;
|
|
50
|
+
private onRemoteIceCandidate;
|
|
51
|
+
private createAuthResponse;
|
|
52
|
+
private createRsaPublicKey;
|
|
53
|
+
private callRpc;
|
|
54
|
+
private sendNotification;
|
|
55
|
+
private sendRpcSuccess;
|
|
56
|
+
private sendRpcError;
|
|
57
|
+
private sendJson;
|
|
58
|
+
private rejectAllPendingRpc;
|
|
59
|
+
private resolveReadyPromise;
|
|
60
|
+
private rejectReadyPromise;
|
|
61
|
+
private clearAuthTimers;
|
|
62
|
+
private toWsUrl;
|
|
63
|
+
private normalizeSessionDescription;
|
|
64
|
+
private rawDataToString;
|
|
65
|
+
private stringValue;
|
|
66
|
+
private numberValue;
|
|
67
|
+
private hexToBase64Url;
|
|
68
|
+
private loadWrtcModule;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=LoxoneTalkback.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoxoneTalkback.d.ts","sourceRoot":"","sources":["../../../src/homekit/hksv/LoxoneTalkback.ts"],"names":[],"mappings":";;AASA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAkFtD,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,cAAc,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;CACpC;AAED,qBAAa,qBAAqB;IA8B9B,OAAO,CAAC,QAAQ,CAAC,OAAO;IA7B1B,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;IACtC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAkB;IAC7C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAsB;IACjD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAS;IACvC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAK;IACrC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAM;IACv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