@Strobel Brightness ist ja der Dimmfaktor und der erwartet einen Zahlenwert zwischen 0 und 100 und nicht "true".
Das KNX kann ich nicht beurteilen, aber wenn Du mit einer Inject-Node einen Zahlenwert an dem 2. Ausgang in Deine KNX Node schickst, müsstest Du es ja simulieren können.
Eventuell musst Du auch ein komplettes JSON schicken:
{
"On": true,
"Brightness": 50
}
Hab das nicht mehr ganz in Erinnerung - aber ich glaub so war das.
Hänge mal diese Inject Node vor Deine Homekit Node:
[
{
"id": "254f72d0.378a1e",
"type": "inject",
"z": "80abc55e.a68438",
"name": "Test",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"On\":true,\"Brightness\":50}",
"payloadType": "json",
"x": 510,
"y": 240,
"wires": [
[
"825717c0.7f4878"
]
]
}
]
Und anstelle der Function Node würde ich den JSON String dann lieber über 2 Change-Nodes aufsplitten - das ist übersichtlicher.
Damit Du weißt was ich meine - hier ein Beispiel wie Du einen JSON in die 2 gewünschten Parameter aufdröselst.
[
{
"id": "973eab00.325778",
"type": "change",
"z": "e797789f.53e7c8",
"name": "On",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "payload.On",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 800,
"y": 180,
"wires": [
[
"9abb962.c7b5068"
]
]
},
{
"id": "cf690159.88604",
"type": "inject",
"z": "e797789f.53e7c8",
"name": "Test",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"On\":true,\"Brightness\":50}",
"payloadType": "json",
"x": 590,
"y": 200,
"wires": [
[
"973eab00.325778",
"dc78d0be.2b9c4"
]
]
},
{
"id": "9abb962.c7b5068",
"type": "debug",
"z": "e797789f.53e7c8",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1150,
"y": 180,
"wires": []
},
{
"id": "dc78d0be.2b9c4",
"type": "change",
"z": "e797789f.53e7c8",
"name": "Brightness",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "payload.Brightness",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 810,
"y": 220,
"wires": [
[
"ab423b7d.b17498"
]
]
},
{
"id": "ab423b7d.b17498",
"type": "debug",
"z": "e797789f.53e7c8",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1150,
"y": 220,
"wires": []
}
]