[
{
"id": "78e5c88c.0d9b08",
"type": "switch",
"z": "a37484bb.f4a9e8",
"name": "",
"property": "payload.On",
"propertyType": "msg",
"rules": [
{
"t": "true"
},
{
"t": "false"
},
{
"t": "else"
}
],
"checkall": "true",
"repair": false,
"outputs": 3,
"x": 450,
"y": 1780,
"wires": [
[
"8b24d14b.fc4a7"
],
[
"648496f9.de89d8"
],
[
"39869018.4b8c4"
]
]
},
{
"id": "d85d77b3.309d98",
"type": "inject",
"z": "a37484bb.f4a9e8",
"name": "Helligkeit geändert",
"props": [
{
"p": "payload.Brightness",
"v": "45",
"vt": "num"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payloadType": "str",
"x": 210,
"y": 1700,
"wires": [
[
"78e5c88c.0d9b08"
]
]
},
{
"id": "4a5abaae.3d7494",
"type": "inject",
"z": "a37484bb.f4a9e8",
"name": "Ein",
"props": [
{
"p": "payload.On",
"v": "true",
"vt": "bool"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 260,
"y": 1780,
"wires": [
[
"78e5c88c.0d9b08"
]
]
},
{
"id": "d4e38a8d.f33978",
"type": "inject",
"z": "a37484bb.f4a9e8",
"name": "Aus",
"props": [
{
"p": "payload.On",
"v": "false",
"vt": "bool"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 260,
"y": 1820,
"wires": [
[
"78e5c88c.0d9b08"
]
]
},
{
"id": "3fe1f543.71321a",
"type": "inject",
"z": "a37484bb.f4a9e8",
"name": "Helligkeit geändert",
"props": [
{
"p": "payload.Brightness",
"v": "100",
"vt": "num"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 210,
"y": 1740,
"wires": [
[
"78e5c88c.0d9b08"
]
]
},
{
"id": "648496f9.de89d8",
"type": "change",
"z": "a37484bb.f4a9e8",
"name": "=0",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "0",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 670,
"y": 1760,
"wires": [
[
"5590f91.34c2208"
]
]
},
{
"id": "39869018.4b8c4",
"type": "change",
"z": "a37484bb.f4a9e8",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "payload.Brightness",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 630,
"y": 1800,
"wires": [
[
"5590f91.34c2208"
]
]
},
{
"id": "8b24d14b.fc4a7",
"type": "change",
"z": "a37484bb.f4a9e8",
"name": "=100",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "100",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 670,
"y": 1720,
"wires": [
[
"5590f91.34c2208"
]
]
},
{
"id": "5590f91.34c2208",
"type": "trigger",
"z": "a37484bb.f4a9e8",
"name": "",
"op1": "",
"op2": "",
"op1type": "nul",
"op2type": "payl",
"duration": "100",
"extend": true,
"overrideDelay": false,
"units": "ms",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 850,
"y": 1760,
"wires": [
[
"3714948f.7669bc"
]
]
},
{
"id": "3714948f.7669bc",
"type": "debug",
"z": "a37484bb.f4a9e8",
"name": "Ergebnis",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1020,
"y": 1760,
"wires": []
}
]