Fix binary sensor condition

This commit is contained in:
2023-01-16 17:21:10 -05:00
parent 0aaf78e899
commit 893c5583b5

View File

@ -678,9 +678,7 @@
"da70285e80c3f195" "da70285e80c3f195"
], ],
"x": 94, "x": 94,
"y": 339, "y": 339
"w": 1872,
"h": 582
}, },
{ {
"id": "39a7ac02f2727f1d", "id": "39a7ac02f2727f1d",
@ -846,9 +844,7 @@
"82dcd22b8e2adf7c" "82dcd22b8e2adf7c"
], ],
"x": 34, "x": 34,
"y": 159, "y": 159
"w": 882,
"h": 542
}, },
{ {
"id": "477e752fcd2e2a19", "id": "477e752fcd2e2a19",
@ -870,9 +866,7 @@
"b2bc83c9195efe0f" "b2bc83c9195efe0f"
], ],
"x": 14, "x": 14,
"y": 39, "y": 39
"w": 872,
"h": 142
}, },
{ {
"id": "50e4d951ee7b3e54", "id": "50e4d951ee7b3e54",
@ -894,9 +888,7 @@
"427cc2991454bbf0" "427cc2991454bbf0"
], ],
"x": 14, "x": 14,
"y": 219, "y": 219
"w": 1012,
"h": 202
}, },
{ {
"id": "fbbe69a14cbe0236", "id": "fbbe69a14cbe0236",
@ -941,9 +933,7 @@
"d00db0647d1c4034" "d00db0647d1c4034"
], ],
"x": 34, "x": 34,
"y": 39, "y": 39
"w": 652,
"h": 682
}, },
{ {
"id": "46275dd0f9461013", "id": "46275dd0f9461013",
@ -960,9 +950,7 @@
"619d1474239faf58" "619d1474239faf58"
], ],
"x": 34, "x": 34,
"y": 739, "y": 739
"w": 472,
"h": 142
}, },
{ {
"id": "ff6d8150e8d5e606", "id": "ff6d8150e8d5e606",
@ -1080,9 +1068,7 @@
"2d5ec93a6ad16ce2" "2d5ec93a6ad16ce2"
], ],
"x": 34, "x": 34,
"y": 239, "y": 239
"w": 1332,
"h": 382
}, },
{ {
"id": "753e14252442d87d", "id": "753e14252442d87d",
@ -1217,9 +1203,7 @@
"6b039ef7895476e2" "6b039ef7895476e2"
], ],
"x": 14, "x": 14,
"y": 439, "y": 439
"w": 1452,
"h": 422
}, },
{ {
"id": "eeafd13be593ae69", "id": "eeafd13be593ae69",
@ -1260,9 +1244,7 @@
"8c29a2e1a06c5524" "8c29a2e1a06c5524"
], ],
"x": 54, "x": 54,
"y": 19, "y": 19
"w": 2152,
"h": 282
}, },
{ {
"id": "0c81dfaed25d225c", "id": "0c81dfaed25d225c",
@ -1300,9 +1282,7 @@
"37bdac2c9a4e2837" "37bdac2c9a4e2837"
], ],
"x": 54, "x": 54,
"y": 39, "y": 39
"w": 1732,
"h": 382
}, },
{ {
"id": "19b0e082db0643ac", "id": "19b0e082db0643ac",
@ -8880,7 +8860,7 @@
"type": "function", "type": "function",
"z": "e44b1e7a8ef7ae1d", "z": "e44b1e7a8ef7ae1d",
"name": "Invert", "name": "Invert",
"func": "var daynight = msg.payload\n\nif (daynight = 1) {\n msg.payload = 0\n} else if (daynight = 0) {\n msg.payload = 1\n}\n\nreturn msg;", "func": "var daynight = msg.payload\n\nif (daynight === 1) {\n msg.payload = 0\n} else if (daynight === 0) {\n msg.payload = 1\n}\n\nreturn msg;",
"outputs": 1, "outputs": 1,
"noerr": 0, "noerr": 0,
"initialize": "", "initialize": "",