Change Node soll true und False ausgeben
Vielen Dank,
ich sitze heute schon zu lange vor dem Computer.
Hab es jetzt mal so gelöst
[
{
"id": "a8b6c88fca90c292",
"type": "tab",
"label": "Test",
"disabled": false,
"info": "",
"env": []
},
{
"id": "67f97c1215246680",
"type": "sun-position",
"z": "a8b6c88fca90c292",
"name": "",
"positionConfig": "d836509a.67bc4",
"rules": [],
"onlyOnChange": "true",
"topic": "",
"outputs": 1,
"start": "sunriseStart",
"startType": "pdsTime",
"startOffset": 0,
"startOffsetType": "none",
"startOffsetMultiplier": 60000,
"end": "sunsetStart",
"endType": "pdsTime",
"endOffset": 0,
"endOffsetType": "none",
"endOffsetMultiplier": 60000,
"x": 370,
"y": 320,
"wires": [
[
"20ca13f9391daa46",
"3bd8cb8ac344628d",
"81c1a85a1906d342",
"e32f46a14f2052b3"
]
]
},
{
"id": "20ca13f9391daa46",
"type": "debug",
"z": "a8b6c88fca90c292",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 650,
"y": 220,
"wires": []
},
{
"id": "c666ae62170a7366",
"type": "inject",
"z": "a8b6c88fca90c292",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 190,
"y": 320,
"wires": [
[
"67f97c1215246680"
]
]
},
{
"id": "3bd8cb8ac344628d",
"type": "switch",
"z": "a8b6c88fca90c292",
"name": "",
"property": "payload.azimuth",
"propertyType": "msg",
"rules": [
{
"t": "btwn",
"v": "0",
"vt": "num",
"v2": "100",
"v2t": "num"
},
{
"t": "else"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 630,
"y": 280,
"wires": [
[
"58cd8f952a6ba653"
],
[
"bca2938f35107d33"
]
]
},
{
"id": "81c1a85a1906d342",
"type": "switch",
"z": "a8b6c88fca90c292",
"name": "",
"property": "payload.azimuth",
"propertyType": "msg",
"rules": [
{
"t": "btwn",
"v": "101",
"vt": "num",
"v2": "200",
"v2t": "num"
},
{
"t": "else"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 630,
"y": 320,
"wires": [
[
"6e64bef52b4f2933"
],
[
"08ced6ef1c5b4690"
]
]
},
{
"id": "e32f46a14f2052b3",
"type": "switch",
"z": "a8b6c88fca90c292",
"name": "",
"property": "payload.azimuth",
"propertyType": "msg",
"rules": [
{
"t": "btwn",
"v": "201",
"vt": "num",
"v2": "360",
"v2t": "num"
},
{
"t": "else"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 630,
"y": 360,
"wires": [
[
"37069c02fb6658ee"
],
[
"20d9b7a5f3621164"
]
]
},
{
"id": "5ece323b7afba4bb",
"type": "debug",
"z": "a8b6c88fca90c292",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1050,
"y": 260,
"wires": []
},
{
"id": "691ff859857dc1d3",
"type": "debug",
"z": "a8b6c88fca90c292",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1050,
"y": 300,
"wires": []
},
{
"id": "93c782497d3c53be",
"type": "debug",
"z": "a8b6c88fca90c292",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1050,
"y": 340,
"wires": []
},
{
"id": "0542556f17897f41",
"type": "debug",
"z": "a8b6c88fca90c292",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1050,
"y": 380,
"wires": []
},
{
"id": "6e80a6f304cbd91e",
"type": "debug",
"z": "a8b6c88fca90c292",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1050,
"y": 420,
"wires": []
},
{
"id": "bf41082f6df6f69f",
"type": "debug",
"z": "a8b6c88fca90c292",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1050,
"y": 220,
"wires": []
},
{
"id": "58cd8f952a6ba653",
"type": "change",
"z": "a8b6c88fca90c292",
"name": "true",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 830,
"y": 220,
"wires": [
[
"bf41082f6df6f69f"
]
]
},
{
"id": "bca2938f35107d33",
"type": "change",
"z": "a8b6c88fca90c292",
"name": "false",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "false",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 830,
"y": 260,
"wires": [
[
"5ece323b7afba4bb"
]
]
},
{
"id": "6e64bef52b4f2933",
"type": "change",
"z": "a8b6c88fca90c292",
"name": "true",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 830,
"y": 300,
"wires": [
[
"691ff859857dc1d3"
]
]
},
{
"id": "08ced6ef1c5b4690",
"type": "change",
"z": "a8b6c88fca90c292",
"name": "false",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "false",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 830,
"y": 340,
"wires": [
[
"93c782497d3c53be"
]
]
},
{
"id": "37069c02fb6658ee",
"type": "change",
"z": "a8b6c88fca90c292",
"name": "true",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 830,
"y": 380,
"wires": [
[
"0542556f17897f41"
]
]
},
{
"id": "20d9b7a5f3621164",
"type": "change",
"z": "a8b6c88fca90c292",
"name": "false",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "false",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 830,
"y": 420,
"wires": [
[
"6e80a6f304cbd91e"
]
]
},
{
"id": "d836509a.67bc4",
"type": "position-config",
"name": "Wien",
"isValide": "true",
"longitude": "0",
"latitude": "0",
"angleType": "deg",
"timeZoneOffset": "99",
"timeZoneDST": "0",
"stateTimeFormat": "3",
"stateDateFormat": "12"
}
]
Werde mir deine Lösung genau anschauen – ich gehe das ganze zu kompliziert an, wie mir scheint.
Danke und Lg
Read more here: Source link