Hallo Heiko
so könntest du das machen
An dem Link out kannst du den Dimmer einstellen zur Zeit auf Dimmer 1.
[
{
"id": "9213c490287643b7",
"type": "link out",
"z": "c05b9ff9dd7f8150",
"name": "link out 2",
"mode": "link",
"links": [
"a4c0fd66546e7864"
],
"x": 1155,
"y": 960,
"wires": []
},
{
"id": "9a66dd186e26d56b",
"type": "ui_switch",
"z": "c05b9ff9dd7f8150",
"name": "",
"label": "switch",
"tooltip": "",
"group": "d9229161.b8548",
"order": 10,
"width": 0,
"height": 0,
"passthru": true,
"decouple": "false",
"topic": "topic",
"topicType": "msg",
"style": "",
"onvalue": "true",
"onvalueType": "bool",
"onicon": "",
"oncolor": "",
"offvalue": "false",
"offvalueType": "bool",
"officon": "",
"offcolor": "",
"animate": false,
"className": "",
"x": 610,
"y": 940,
"wires": [
[
"b9c2825b11287b9e"
]
]
},
{
"id": "b9c2825b11287b9e",
"type": "function",
"z": "c05b9ff9dd7f8150",
"name": "function 1",
"func": "if (msg.payload== true){\n msg.payload = 100\n}\nif (msg.payload == false) {\n msg.payload= 0\n}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 860,
"y": 940,
"wires": [
[
"9213c490287643b7",
"86460775fd822b54"
]
]
},
{
"id": "86460775fd822b54",
"type": "debug",
"z": "c05b9ff9dd7f8150",
"name": "Debug",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "true",
"targetType": "full",
"statusVal": "payload",
"statusType": "auto",
"x": 1070,
"y": 1020,
"wires": []
},
{
"id": "48c6674989c77889",
"type": "comment",
"z": "c05b9ff9dd7f8150",
"name": "Hier ist Dimmer 1 eingestellt",
"info": "",
"x": 1220,
"y": 900,
"wires": []
},
{
"id": "d9229161.b8548",
"type": "ui_group",
"name": "Switches",
"tab": "2fa37e0c8559eb92",
"order": 2,
"disp": true,
"width": "6",
"collapse": false,
"className": ""
},
{
"id": "2fa37e0c8559eb92",
"type": "ui_tab",
"name": "Switches",
"icon": "mi-toggle_on",
"order": 2,
"disabled": false,
"hidden": false
}
]
Du bekommst nur keine Rückmeldung auf den Schalter wenn du am Dimmer einschaltest.
Gruß
Arno