Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Xenon-s committed Mar 2, 2024
1 parent a453bda commit 6e0848b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions admin/jsonConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
"type": "selectSendTo",
"label": "alexa2 Device",
"attr": "device",
"multiple": true,
"help": "Select an Alexa device",
"command": "getEchoDevives",
"jsonData": "{\"name\": \"alexa2\", \"data\": ${data.id}}",
Expand Down
2 changes: 1 addition & 1 deletion admin/jsonCustom.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
"type": "selectSendTo",
"label": "Alexa2 devices",
"attr": "user",
"command": "getDataCustom",
"command": "getDataCustomAlexa",
"noTranslation": true,
"multiple": true,
"jsonData": "{\"name\": \"alexa2\"}",
Expand Down
10 changes: 10 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,16 @@ class DeviceReminder extends utils.Adapter {

// Switch-Anweisung, um je nach Befehl unterschiedliche Aktionen auszuführen
switch (obj.command) {

case "getDataCustomAlexa":

const res = [{label: "12", value : 1}, {label: "22", value : 2}, {label: "32", value : 3}, ];
this.respond(obj, res, this);


break;


case "getInstance":

// Prüfe, ob this.dataInstance und this.dataInstance[obj.message.name] vorhanden sind, andernfalls gib ein leeres Array zurück
Expand Down

0 comments on commit 6e0848b

Please sign in to comment.