From e74bfeb4e2486e571f5c3099ff338f8512988fa8 Mon Sep 17 00:00:00 2001 From: Dennis Twardowsky Date: Sun, 8 Feb 2026 17:04:39 +0100 Subject: [PATCH] Add Test directory and config --- test/hbConfig/auth.json | 10 ++++++++++ test/hbConfig/config.json | 42 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 test/hbConfig/auth.json create mode 100644 test/hbConfig/config.json diff --git a/test/hbConfig/auth.json b/test/hbConfig/auth.json new file mode 100644 index 0000000..e101e7a --- /dev/null +++ b/test/hbConfig/auth.json @@ -0,0 +1,10 @@ +[ + { + "id": 1, + "username": "test", + "name": "test", + "hashedPassword": "df121e72b850a058bd68f3d05b1f94dc985821a3885b5da38e263654f29843f98bb6d8e594f6042ff871a424602a9bff50dffa97f258bdc1dca4c79e87bac20c", + "salt": "64085e70da64670349f042d4c3d3cac75b20233ffeb71db68399973f60da077d", + "admin": true + } +] \ No newline at end of file diff --git a/test/hbConfig/config.json b/test/hbConfig/config.json new file mode 100644 index 0000000..347b0c8 --- /dev/null +++ b/test/hbConfig/config.json @@ -0,0 +1,42 @@ +{ + "bridge": { + "name": "HomebridgeTest", + "username": "CC:22:3D:E3:CE:30", + "manufacturer": "homebridge.io", + "model": "homebridge", + "port": 51826, + "pin": "031-45-154" + }, + + "description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.", + "ports": { + "start": 52100, + "end": 52150, + "comment": "This section is used to control the range of ports that separate accessory (like camera or television) should be bind to." + }, + "accessories": [ + ], + + "platforms": [ + { + "platform" : "MultiTapSwitch", + "name" : "MTS", + "devices": [ + { + "name": "MTS1", + "numberConfiguredScenes": 5, + "triggerTimeout": 10, + "resetAfterSwitchOff": false, + "logging": true + }, + { + "name": "MTS2", + "numberConfiguredScenes": 5, + "triggerTimeout": 10, + "resetAfterSwitchOff": false, + "logging": true + } + ] + } + ] +} \ No newline at end of file