skip to Main Content
Sisyphus homekit in...
 
Notifications
Clear all

Sisyphus homekit integration with node-red

1 Posts
1 Users
0 Reactions
1,029 Views
(@robin-glave)
Contributor
Joined: 8 years ago
Posts: 4
Topic starter  

I used node-red running on a RasPi to connect my Sisyphus to HomeKit. I can see the tables state and change brightness and speed and send it into sleep mode.

It's all mapped as "lights" in homekit, but it works, see picture.

It uses the HomeKit-bridged-nodes ( https://flows.nodered.org/node/node-red-contrib-homekit-bridged ).

Flows are pasted below (import to node red), you need to set the IP in every HTTP node to your table's local IP. ( replace all <your sisyphus IP> with e.g. 192.168.0.100)

[
    {
        "id": "9fae6a4f07359a53",
        "type": "tab",
        "label": "Sisi",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "73509f73e6f51240",
        "type": "http request",
        "z": "9fae6a4f07359a53",
        "name": "Status",
        "method": "POST",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "<your sisyphus IP>:3002/sisbot/state",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 590,
        "y": 200,
        "wires": [
            [
                "e378416052644b5a"
            ]
        ]
    },
    {
        "id": "41e11e07a32918a5",
        "type": "debug",
        "z": "9fae6a4f07359a53",
        "name": "Sisiphus",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 780,
        "y": 300,
        "wires": []
    },
    {
        "id": "fc3777898e1070ac",
        "type": "inject",
        "z": "9fae6a4f07359a53",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "300",
        "crontab": "",
        "once": true,
        "onceDelay": "0.5",
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 410,
        "y": 200,
        "wires": [
            [
                "73509f73e6f51240"
            ]
        ]
    },
    {
        "id": "e378416052644b5a",
        "type": "json",
        "z": "9fae6a4f07359a53",
        "name": "",
        "property": "payload",
        "action": "",
        "pretty": false,
        "x": 790,
        "y": 200,
        "wires": [
            [
                "41e11e07a32918a5",
                "39df053a83dd1fba",
                "a8f8972fcca98982",
                "7f4956edc8867b95",
                "4fa0f7929fdf5ddf"
            ]
        ]
    },
    {
        "id": "9bc253a01a47fc47",
        "type": "http request",
        "z": "9fae6a4f07359a53",
        "name": "Brightness",
        "method": "POST",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "<your sisyphus IP>:3002/sisbot/set_brightness",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 670,
        "y": 420,
        "wires": [
            [
                "38fa7a64f8e3342d"
            ]
        ]
    },
    {
        "id": "38fa7a64f8e3342d",
        "type": "json",
        "z": "9fae6a4f07359a53",
        "name": "",
        "property": "payload",
        "action": "",
        "pretty": false,
        "x": 830,
        "y": 420,
        "wires": [
            [
                "c2e66511672b15ad"
            ]
        ]
    },
    {
        "id": "af36a800b4bc3cf9",
        "type": "ui_slider",
        "z": "9fae6a4f07359a53",
        "name": "",
        "label": "Licht",
        "tooltip": "",
        "group": "6554eaffa3deadf7",
        "order": 0,
        "width": 0,
        "height": 0,
        "passthru": false,
        "outs": "end",
        "topic": "topic",
        "topicType": "msg",
        "min": 0,
        "max": "100",
        "step": "5",
        "className": "",
        "x": 170,
        "y": 420,
        "wires": [
            [
                "40a03d00d8309ebb"
            ]
        ]
    },
    {
        "id": "40a03d00d8309ebb",
        "type": "change",
        "z": "9fae6a4f07359a53",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "{\"data\":{\"value\": payload / 100 }}",
                "tot": "jsonata"
            },
            {
                "t": "move",
                "p": "payload",
                "pt": "msg",
                "to": "payload.data",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 350,
        "y": 420,
        "wires": [
            [
                "9bc253a01a47fc47"
            ]
        ]
    },
    {
        "id": "39df053a83dd1fba",
        "type": "change",
        "z": "9fae6a4f07359a53",
        "name": "Brightness?",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.resp[0].brightness",
                "tot": "msg"
            },
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "$number(payload * 100)",
                "tot": "jsonata"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 990,
        "y": 220,
        "wires": [
            [
                "de60c524a09d4ed9",
                "d775e7cc56dbeac6"
            ]
        ]
    },
    {
        "id": "63f2f9f64b897f20",
        "type": "http request",
        "z": "9fae6a4f07359a53",
        "name": "Play",
        "method": "POST",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "<your sisyphus IP>:3002/sisbot/play",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 670,
        "y": 520,
        "wires": [
            [
                "6b0dd9ecaa2e6638"
            ]
        ]
    },
    {
        "id": "9075a0b57341fafe",
        "type": "ui_switch",
        "z": "9fae6a4f07359a53",
        "name": "",
        "label": "Bewegung",
        "tooltip": "",
        "group": "6554eaffa3deadf7",
        "order": 1,
        "width": 0,
        "height": 0,
        "passthru": false,
        "decouple": "true",
        "topic": "topic",
        "topicType": "msg",
        "style": "",
        "onvalue": "true",
        "onvalueType": "bool",
        "onicon": "",
        "oncolor": "",
        "offvalue": "false",
        "offvalueType": "bool",
        "officon": "",
        "offcolor": "",
        "animate": false,
        "className": "",
        "x": 190,
        "y": 560,
        "wires": [
            [
                "9b345ce68657d103"
            ]
        ]
    },
    {
        "id": "9b345ce68657d103",
        "type": "switch",
        "z": "9fae6a4f07359a53",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "true"
            },
            {
                "t": "false"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 330,
        "y": 560,
        "wires": [
            [
                "c7ae165f5a97da02"
            ],
            [
                "26d88f94f53e2873"
            ]
        ]
    },
    {
        "id": "1cdd2ca370b02943",
        "type": "http request",
        "z": "9fae6a4f07359a53",
        "name": "Pause",
        "method": "POST",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "<your sisyphus IP>:3002/sisbot/pause",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 670,
        "y": 580,
        "wires": [
            [
                "7194fd74f010df06"
            ]
        ]
    },
    {
        "id": "c7ae165f5a97da02",
        "type": "change",
        "z": "9fae6a4f07359a53",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "{\"data\":{}}",
                "tot": "jsonata"
            },
            {
                "t": "move",
                "p": "payload",
                "pt": "msg",
                "to": "payload.data",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 510,
        "y": 540,
        "wires": [
            [
                "63f2f9f64b897f20"
            ]
        ]
    },
    {
        "id": "26d88f94f53e2873",
        "type": "change",
        "z": "9fae6a4f07359a53",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "{\"data\":{}}",
                "tot": "jsonata"
            },
            {
                "t": "move",
                "p": "payload",
                "pt": "msg",
                "to": "payload.data",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 510,
        "y": 580,
        "wires": [
            [
                "1cdd2ca370b02943"
            ]
        ]
    },
    {
        "id": "a8f8972fcca98982",
        "type": "change",
        "z": "9fae6a4f07359a53",
        "name": "Playing?",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.resp[0].state",
                "tot": "msg"
            },
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "$boolean(payload=\"playing\")",
                "tot": "jsonata"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 980,
        "y": 140,
        "wires": [
            [
                "220b9afe727d6406",
                "6d7b734893d635eb"
            ]
        ]
    },
    {
        "id": "a08c778833c866a8",
        "type": "http request",
        "z": "9fae6a4f07359a53",
        "name": "Sleep",
        "method": "POST",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "<your sisyphus IP>:3002/sisbot/sleep_sisbot",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 690,
        "y": 700,
        "wires": [
            [
                "cda674dd875afcac"
            ]
        ]
    },
    {
        "id": "49d0ad8faaf2927e",
        "type": "ui_switch",
        "z": "9fae6a4f07359a53",
        "name": "",
        "label": "Schlafen",
        "tooltip": "",
        "group": "6554eaffa3deadf7",
        "order": 1,
        "width": 0,
        "height": 0,
        "passthru": false,
        "decouple": "true",
        "topic": "topic",
        "topicType": "msg",
        "style": "",
        "onvalue": "true",
        "onvalueType": "bool",
        "onicon": "",
        "oncolor": "",
        "offvalue": "false",
        "offvalueType": "bool",
        "officon": "",
        "offcolor": "",
        "animate": false,
        "className": "",
        "x": 200,
        "y": 740,
        "wires": [
            [
                "14949e5be26a1b5a"
            ]
        ]
    },
    {
        "id": "14949e5be26a1b5a",
        "type": "switch",
        "z": "9fae6a4f07359a53",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "true"
            },
            {
                "t": "false"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 350,
        "y": 740,
        "wires": [
            [
                "8bb186b210998b1b"
            ],
            [
                "ae950e9992906e3b"
            ]
        ]
    },
    {
        "id": "1d7febeaa33334d8",
        "type": "http request",
        "z": "9fae6a4f07359a53",
        "name": "Wake",
        "method": "POST",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "<your sisyphus IP>:3002/sisbot/wake_sisbot",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 690,
        "y": 760,
        "wires": [
            [
                "92f657b08207954d"
            ]
        ]
    },
    {
        "id": "8bb186b210998b1b",
        "type": "change",
        "z": "9fae6a4f07359a53",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "{\"data\":{}}",
                "tot": "jsonata"
            },
            {
                "t": "move",
                "p": "payload",
                "pt": "msg",
                "to": "payload.data",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 530,
        "y": 720,
        "wires": [
            [
                "a08c778833c866a8"
            ]
        ]
    },
    {
        "id": "ae950e9992906e3b",
        "type": "change",
        "z": "9fae6a4f07359a53",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "{\"data\":{}}",
                "tot": "jsonata"
            },
            {
                "t": "move",
                "p": "payload",
                "pt": "msg",
                "to": "payload.data",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 530,
        "y": 760,
        "wires": [
            [
                "1d7febeaa33334d8"
            ]
        ]
    },
    {
        "id": "7f4956edc8867b95",
        "type": "change",
        "z": "9fae6a4f07359a53",
        "name": "Sleeping?",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.resp[0].is_sleeping",
                "tot": "msg"
            },
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "$boolean(payload=\"true\")",
                "tot": "jsonata"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 980,
        "y": 60,
        "wires": [
            [
                "580b3e169655659f",
                "12d3c0aafa98ed16"
            ]
        ]
    },
    {
        "id": "a15ad883eefaadd1",
        "type": "ui_slider",
        "z": "9fae6a4f07359a53",
        "name": "",
        "label": "Speed",
        "tooltip": "",
        "group": "6554eaffa3deadf7",
        "order": 0,
        "width": 0,
        "height": 0,
        "passthru": false,
        "outs": "end",
        "topic": "topic",
        "topicType": "msg",
        "min": 0,
        "max": "100",
        "step": "5",
        "className": "",
        "x": 190,
        "y": 880,
        "wires": [
            [
                "4c05864808a3bc6d"
            ]
        ]
    },
    {
        "id": "4c05864808a3bc6d",
        "type": "change",
        "z": "9fae6a4f07359a53",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "{\"data\":{\"value\": payload / 100 }}",
                "tot": "jsonata"
            },
            {
                "t": "move",
                "p": "payload",
                "pt": "msg",
                "to": "payload.data",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 370,
        "y": 880,
        "wires": [
            [
                "caef962c763c04c3"
            ]
        ]
    },
    {
        "id": "caef962c763c04c3",
        "type": "http request",
        "z": "9fae6a4f07359a53",
        "name": "Speed",
        "method": "POST",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "<your sisyphus IP>:3002/sisbot/set_speed",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 650,
        "y": 880,
        "wires": [
            [
                "79ae20d6129a2c45"
            ]
        ]
    },
    {
        "id": "4fa0f7929fdf5ddf",
        "type": "change",
        "z": "9fae6a4f07359a53",
        "name": "Speed?",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.resp[0].speed",
                "tot": "msg"
            },
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "$number(payload * 100)",
                "tot": "jsonata"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 980,
        "y": 300,
        "wires": [
            [
                "5285e529645679cf",
                "d0d6e0221218181e"
            ]
        ]
    },
    {
        "id": "580b3e169655659f",
        "type": "change",
        "z": "9fae6a4f07359a53",
        "name": "Context: Sleeping",
        "rules": [
            {
                "t": "set",
                "p": "Sleeping",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1630,
        "y": 60,
        "wires": [
            []
        ]
    },
    {
        "id": "220b9afe727d6406",
        "type": "change",
        "z": "9fae6a4f07359a53",
        "name": "Context: Playing",
        "rules": [
            {
                "t": "set",
                "p": "Playing",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1620,
        "y": 140,
        "wires": [
            []
        ]
    },
    {
        "id": "de60c524a09d4ed9",
        "type": "change",
        "z": "9fae6a4f07359a53",
        "name": "Context: Brightness",
        "rules": [
            {
                "t": "set",
                "p": "Brightness",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1640,
        "y": 220,
        "wires": [
            []
        ]
    },
    {
        "id": "5285e529645679cf",
        "type": "change",
        "z": "9fae6a4f07359a53",
        "name": "Context: Speed",
        "rules": [
            {
                "t": "set",
                "p": "Speed",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1620,
        "y": 300,
        "wires": [
            []
        ]
    },
    {
        "id": "6b0dd9ecaa2e6638",
        "type": "json",
        "z": "9fae6a4f07359a53",
        "name": "",
        "property": "payload",
        "action": "",
        "pretty": false,
        "x": 830,
        "y": 520,
        "wires": [
            [
                "907d14755a4e2b83"
            ]
        ]
    },
    {
        "id": "7194fd74f010df06",
        "type": "json",
        "z": "9fae6a4f07359a53",
        "name": "",
        "property": "payload",
        "action": "",
        "pretty": false,
        "x": 830,
        "y": 580,
        "wires": [
            [
                "907d14755a4e2b83"
            ]
        ]
    },
    {
        "id": "cda674dd875afcac",
        "type": "json",
        "z": "9fae6a4f07359a53",
        "name": "",
        "property": "payload",
        "action": "",
        "pretty": false,
        "x": 830,
        "y": 700,
        "wires": [
            [
                "496506aff8f78d7a"
            ]
        ]
    },
    {
        "id": "92f657b08207954d",
        "type": "json",
        "z": "9fae6a4f07359a53",
        "name": "",
        "property": "payload",
        "action": "",
        "pretty": false,
        "x": 830,
        "y": 760,
        "wires": [
            [
                "496506aff8f78d7a"
            ]
        ]
    },
    {
        "id": "79ae20d6129a2c45",
        "type": "json",
        "z": "9fae6a4f07359a53",
        "name": "",
        "property": "payload",
        "action": "",
        "pretty": false,
        "x": 830,
        "y": 880,
        "wires": [
            [
                "15ea002c5786ea5b"
            ]
        ]
    },
    {
        "id": "594eee43c3eab60c",
        "type": "change",
        "z": "9fae6a4f07359a53",
        "name": "",
        "rules": [
            {
                "t": "move",
                "p": "payload.resp[0].state",
                "pt": "msg",
                "to": "payload",
                "tot": "msg"
            },
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "$boolean(payload=\"playing\")",
                "tot": "jsonata"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1170,
        "y": 500,
        "wires": [
            [
                "859f5f1de2609321"
            ]
        ]
    },
    {
        "id": "907d14755a4e2b83",
        "type": "switch",
        "z": "9fae6a4f07359a53",
        "name": "",
        "property": "payload.resp",
        "propertyType": "msg",
        "rules": [
            {
                "t": "istype",
                "v": "array",
                "vt": "array"
            },
            {
                "t": "istype",
                "v": "object",
                "vt": "object"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 970,
        "y": 520,
        "wires": [
            [
                "594eee43c3eab60c"
            ],
            [
                "97facbf16990ec80"
            ]
        ],
        "outputLabels": [
            "Array",
            "Object"
        ]
    },
    {
        "id": "97facbf16990ec80",
        "type": "change",
        "z": "9fae6a4f07359a53",
        "name": "",
        "rules": [
            {
                "t": "move",
                "p": "payload.resp.state",
                "pt": "msg",
                "to": "payload",
                "tot": "msg"
            },
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "$boolean(payload=\"playing\")",
                "tot": "jsonata"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1170,
        "y": 540,
        "wires": [
            [
                "859f5f1de2609321"
            ]
        ]
    },
    {
        "id": "859f5f1de2609321",
        "type": "switch",
        "z": "9fae6a4f07359a53",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "neq",
                "v": "Playing",
                "vt": "flow"
            },
            {
                "t": "else"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 1370,
        "y": 520,
        "wires": [
            [
                "a73e29bd6ee47346",
                "220b9afe727d6406"
            ],
            []
        ]
    },
    {
        "id": "a73e29bd6ee47346",
        "type": "link out",
        "z": "9fae6a4f07359a53",
        "name": "Playing",
        "mode": "link",
        "links": [
            "12a89f7554683b42"
        ],
        "x": 1465,
        "y": 520,
        "wires": []
    },
    {
        "id": "12a89f7554683b42",
        "type": "link in",
        "z": "9fae6a4f07359a53",
        "name": "link in 1",
        "links": [
            "a73e29bd6ee47346",
            "6d7b734893d635eb"
        ],
        "x": 45,
        "y": 560,
        "wires": [
            [
                "9075a0b57341fafe",
                "013ed6cf796b5671"
            ]
        ]
    },
    {
        "id": "c2b55d5f0d228713",
        "type": "change",
        "z": "9fae6a4f07359a53",
        "name": "",
        "rules": [
            {
                "t": "move",
                "p": "payload.resp[0].is_sleeping",
                "pt": "msg",
                "to": "payload",
                "tot": "msg"
            },
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "$boolean(payload=\"true\")",
                "tot": "jsonata"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1170,
        "y": 700,
        "wires": [
            [
                "cbc71c17cf020eec"
            ]
        ]
    },
    {
        "id": "496506aff8f78d7a",
        "type": "switch",
        "z": "9fae6a4f07359a53",
        "name": "",
        "property": "payload.resp",
        "propertyType": "msg",
        "rules": [
            {
                "t": "istype",
                "v": "array",
                "vt": "array"
            },
            {
                "t": "istype",
                "v": "object",
                "vt": "object"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 970,
        "y": 720,
        "wires": [
            [
                "c2b55d5f0d228713"
            ],
            [
                "d42f3f175da994bc"
            ]
        ],
        "outputLabels": [
            "Array",
            "Object"
        ]
    },
    {
        "id": "d42f3f175da994bc",
        "type": "change",
        "z": "9fae6a4f07359a53",
        "name": "",
        "rules": [
            {
                "t": "move",
                "p": "payload.resp.is_sleeping",
                "pt": "msg",
                "to": "payload",
                "tot": "msg"
            },
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "$boolean(payload=\"true\")",
                "tot": "jsonata"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1170,
        "y": 740,
        "wires": [
            [
                "cbc71c17cf020eec"
            ]
        ]
    },
    {
        "id": "cbc71c17cf020eec",
        "type": "switch",
        "z": "9fae6a4f07359a53",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "neq",
                "v": "Sleeping",
                "vt": "flow"
            },
            {
                "t": "else"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 1370,
        "y": 720,
        "wires": [
            [
                "330192bde4a80dbc",
                "580b3e169655659f"
            ],
            []
        ]
    },
    {
        "id": "330192bde4a80dbc",
        "type": "link out",
        "z": "9fae6a4f07359a53",
        "name": "link out 1",
        "mode": "link",
        "links": [
            "af6ade35725d93ac"
        ],
        "x": 1495,
        "y": 700,
        "wires": []
    },
    {
        "id": "af6ade35725d93ac",
        "type": "link in",
        "z": "9fae6a4f07359a53",
        "name": "link in 2",
        "links": [
            "330192bde4a80dbc",
            "12d3c0aafa98ed16"
        ],
        "x": 45,
        "y": 740,
        "wires": [
            [
                "49d0ad8faaf2927e",
                "d590150140f5f727"
            ]
        ]
    },
    {
        "id": "15ea002c5786ea5b",
        "type": "change",
        "z": "9fae6a4f07359a53",
        "name": "",
        "rules": [
            {
                "t": "move",
                "p": "payload.resp.speed",
                "pt": "msg",
                "to": "payload",
                "tot": "msg"
            },
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "$number(payload * 100)",
                "tot": "jsonata"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1010,
        "y": 880,
        "wires": [
            [
                "bfd0182b2ef26408"
            ]
        ]
    },
    {
        "id": "bfd0182b2ef26408",
        "type": "switch",
        "z": "9fae6a4f07359a53",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "neq",
                "v": "Speed",
                "vt": "flow"
            },
            {
                "t": "else"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 1190,
        "y": 880,
        "wires": [
            [
                "5285e529645679cf",
                "886a012c9c234912"
            ],
            []
        ]
    },
    {
        "id": "886a012c9c234912",
        "type": "link out",
        "z": "9fae6a4f07359a53",
        "name": "link out 2",
        "mode": "link",
        "links": [
            "2fe116c6b58e03a8"
        ],
        "x": 1295,
        "y": 900,
        "wires": []
    },
    {
        "id": "2fe116c6b58e03a8",
        "type": "link in",
        "z": "9fae6a4f07359a53",
        "name": "link in 3",
        "links": [
            "886a012c9c234912",
            "d0d6e0221218181e"
        ],
        "x": 45,
        "y": 880,
        "wires": [
            [
                "a15ad883eefaadd1",
                "289f7b79dd7ea6ac"
            ]
        ]
    },
    {
        "id": "c2e66511672b15ad",
        "type": "change",
        "z": "9fae6a4f07359a53",
        "name": "",
        "rules": [
            {
                "t": "move",
                "p": "payload.resp.brightness",
                "pt": "msg",
                "to": "payload",
                "tot": "msg"
            },
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "$number(payload * 100)",
                "tot": "jsonata"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1010,
        "y": 380,
        "wires": [
            [
                "b727ec1519b5a181"
            ]
        ]
    },
    {
        "id": "b727ec1519b5a181",
        "type": "switch",
        "z": "9fae6a4f07359a53",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "neq",
                "v": "Brightness",
                "vt": "flow"
            },
            {
                "t": "else"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 1190,
        "y": 380,
        "wires": [
            [
                "de60c524a09d4ed9",
                "579d6da71f12fe9c"
            ],
            []
        ]
    },
    {
        "id": "579d6da71f12fe9c",
        "type": "link out",
        "z": "9fae6a4f07359a53",
        "name": "link out 3",
        "mode": "link",
        "links": [
            "4f409a4348c3336c"
        ],
        "x": 1285,
        "y": 400,
        "wires": []
    },
    {
        "id": "4f409a4348c3336c",
        "type": "link in",
        "z": "9fae6a4f07359a53",
        "name": "link in 4",
        "links": [
            "579d6da71f12fe9c",
            "d775e7cc56dbeac6"
        ],
        "x": 45,
        "y": 420,
        "wires": [
            [
                "af36a800b4bc3cf9",
                "255652d54d50cada"
            ]
        ]
    },
    {
        "id": "12d3c0aafa98ed16",
        "type": "link out",
        "z": "9fae6a4f07359a53",
        "name": "link out 4",
        "mode": "link",
        "links": [
            "af6ade35725d93ac"
        ],
        "x": 1215,
        "y": 80,
        "wires": []
    },
    {
        "id": "6d7b734893d635eb",
        "type": "link out",
        "z": "9fae6a4f07359a53",
        "name": "link out 5",
        "mode": "link",
        "links": [
            "12a89f7554683b42"
        ],
        "x": 1215,
        "y": 160,
        "wires": []
    },
    {
        "id": "d775e7cc56dbeac6",
        "type": "link out",
        "z": "9fae6a4f07359a53",
        "name": "link out 6",
        "mode": "link",
        "links": [
            "4f409a4348c3336c"
        ],
        "x": 1215,
        "y": 240,
        "wires": []
    },
    {
        "id": "d0d6e0221218181e",
        "type": "link out",
        "z": "9fae6a4f07359a53",
        "name": "link out 7",
        "mode": "link",
        "links": [
            "2fe116c6b58e03a8"
        ],
        "x": 1215,
        "y": 320,
        "wires": []
    },
    {
        "id": "a21293aba52b197e",
        "type": "homekit-service",
        "z": "9fae6a4f07359a53",
        "isParent": true,
        "hostType": "0",
        "bridge": "9ecbb87f3de9fb1b",
        "accessoryId": "",
        "parentService": "",
        "name": "Sisiphus Licht",
        "serviceName": "Lightbulb",
        "topic": "",
        "filter": false,
        "manufacturer": "NRCHKB",
        "model": "1.6.1",
        "serialNo": "Default Serial Number",
        "firmwareRev": "1.6.1",
        "hardwareRev": "1.6.1",
        "softwareRev": "1.6.1",
        "cameraConfigVideoProcessor": "ffmpeg",
        "cameraConfigSource": "",
        "cameraConfigStillImageSource": "",
        "cameraConfigMaxStreams": 2,
        "cameraConfigMaxWidth": 1280,
        "cameraConfigMaxHeight": 720,
        "cameraConfigMaxFPS": 10,
        "cameraConfigMaxBitrate": 300,
        "cameraConfigVideoCodec": "libx264",
        "cameraConfigAudioCodec": "libfdk_aac",
        "cameraConfigAudio": false,
        "cameraConfigPacketSize": 1316,
        "cameraConfigVerticalFlip": false,
        "cameraConfigHorizontalFlip": false,
        "cameraConfigMapVideo": "0:0",
        "cameraConfigMapAudio": "0:1",
        "cameraConfigVideoFilter": "scale=1280:720",
        "cameraConfigAdditionalCommandLine": "-tune zerolatency",
        "cameraConfigDebug": false,
        "cameraConfigSnapshotOutput": "disabled",
        "cameraConfigInterfaceName": "",
        "characteristicProperties": "{\"Brightness\":true}",
        "waitForSetupMsg": false,
        "outputs": 2,
        "x": 360,
        "y": 360,
        "wires": [
            [
                "e21fe521a2a12d15"
            ],
            []
        ]
    },
    {
        "id": "255652d54d50cada",
        "type": "function",
        "z": "9fae6a4f07359a53",
        "name": "Convert2input",
        "func": "var input = msg.payload;\nif (input < 101) {\n    if (input < 1) {\n        msg.payload = {\n            \"On\": false\n        }\n    }\n    else {\n        msg.payload = {\n            \"Brightness\": input,\n            \"On\": true\n        }\n    }\n    return msg;\n}",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 180,
        "y": 360,
        "wires": [
            [
                "a21293aba52b197e"
            ]
        ]
    },
    {
        "id": "e21fe521a2a12d15",
        "type": "function",
        "z": "9fae6a4f07359a53",
        "name": "Convert2Value",
        "func": "var b = context.get('b') || 0;\nif (msg.payload.Brightness) {\n    b = msg.payload.Brightness;\n    context.set('b', b);\n    msg.payload = b\n}\n\n// Uncomment lines 9 and 20 to prevent looping\nif (msg.hap.context !== undefined) {\n    if (msg.payload.Brightness === 0) {\n        msg.payload = 0\n    }\n    if (msg.payload.On === false) {\n        msg.payload = 0\n    }\n    if (msg.payload.On === true) {\n        msg.payload = b\n    }\n    return msg\n}",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 560,
        "y": 360,
        "wires": [
            [
                "40a03d00d8309ebb"
            ]
        ]
    },
    {
        "id": "923f9781e64eae44",
        "type": "homekit-service",
        "z": "9fae6a4f07359a53",
        "isParent": true,
        "hostType": "0",
        "bridge": "9ecbb87f3de9fb1b",
        "accessoryId": "",
        "parentService": "",
        "name": "Sisiphus Geschwindigkeit",
        "serviceName": "Lightbulb",
        "topic": "",
        "filter": false,
        "manufacturer": "NRCHKB",
        "model": "1.6.1",
        "serialNo": "Default Serial Number",
        "firmwareRev": "1.6.1",
        "hardwareRev": "1.6.1",
        "softwareRev": "1.6.1",
        "cameraConfigVideoProcessor": "ffmpeg",
        "cameraConfigSource": "",
        "cameraConfigStillImageSource": "",
        "cameraConfigMaxStreams": 2,
        "cameraConfigMaxWidth": 1280,
        "cameraConfigMaxHeight": 720,
        "cameraConfigMaxFPS": 10,
        "cameraConfigMaxBitrate": 300,
        "cameraConfigVideoCodec": "libx264",
        "cameraConfigAudioCodec": "libfdk_aac",
        "cameraConfigAudio": false,
        "cameraConfigPacketSize": 1316,
        "cameraConfigVerticalFlip": false,
        "cameraConfigHorizontalFlip": false,
        "cameraConfigMapVideo": "0:0",
        "cameraConfigMapAudio": "0:1",
        "cameraConfigVideoFilter": "scale=1280:720",
        "cameraConfigAdditionalCommandLine": "-tune zerolatency",
        "cameraConfigDebug": false,
        "cameraConfigSnapshotOutput": "disabled",
        "cameraConfigInterfaceName": "",
        "characteristicProperties": "{\"Brightness\":true}",
        "waitForSetupMsg": false,
        "outputs": 2,
        "x": 390,
        "y": 820,
        "wires": [
            [
                "b15034ee034d525c"
            ],
            []
        ]
    },
    {
        "id": "289f7b79dd7ea6ac",
        "type": "function",
        "z": "9fae6a4f07359a53",
        "name": "Convert2input",
        "func": "var input = msg.payload;\nif (input < 101) {\n    if (input < 1) {\n        msg.payload = {\n            \"On\": false\n        }\n    }\n    else {\n        msg.payload = {\n            \"Brightness\": input,\n            \"On\": true\n        }\n    }\n    return msg;\n}",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 180,
        "y": 820,
        "wires": [
            [
                "923f9781e64eae44"
            ]
        ]
    },
    {
        "id": "b15034ee034d525c",
        "type": "function",
        "z": "9fae6a4f07359a53",
        "name": "Convert2Value",
        "func": "var s = context.get('s') || 0;\nif (msg.payload.Brightness) {\n    s = msg.payload.Brightness;\n    context.set('s', s);\n    msg.payload = s\n}\n\n// Uncomment lines 9 and 20 to prevent looping\nif (msg.hap.context !== undefined) {\n    if (msg.payload.Brightness === 0) {\n        msg.payload = 0\n    }\n    if (msg.payload.On === false) {\n        msg.payload = 0\n    }\n    if (msg.payload.On === true) {\n        msg.payload = s\n    }\n    return msg\n}",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 600,
        "y": 820,
        "wires": [
            [
                "4c05864808a3bc6d"
            ]
        ]
    },
    {
        "id": "dd717e5993d34154",
        "type": "homekit-service",
        "z": "9fae6a4f07359a53",
        "isParent": true,
        "hostType": "0",
        "bridge": "9ecbb87f3de9fb1b",
        "accessoryId": "",
        "parentService": "",
        "name": "Sisiphus Bewegung",
        "serviceName": "Switch",
        "topic": "",
        "filter": false,
        "manufacturer": "NRCHKB",
        "model": "1.6.1",
        "serialNo": "Default Serial Number",
        "firmwareRev": "1.6.1",
        "hardwareRev": "1.6.1",
        "softwareRev": "1.6.1",
        "cameraConfigVideoProcessor": "ffmpeg",
        "cameraConfigSource": "",
        "cameraConfigStillImageSource": "",
        "cameraConfigMaxStreams": 2,
        "cameraConfigMaxWidth": 1280,
        "cameraConfigMaxHeight": 720,
        "cameraConfigMaxFPS": 10,
        "cameraConfigMaxBitrate": 300,
        "cameraConfigVideoCodec": "libx264",
        "cameraConfigAudioCodec": "libfdk_aac",
        "cameraConfigAudio": false,
        "cameraConfigPacketSize": 1316,
        "cameraConfigVerticalFlip": false,
        "cameraConfigHorizontalFlip": false,
        "cameraConfigMapVideo": "0:0",
        "cameraConfigMapAudio": "0:1",
        "cameraConfigVideoFilter": "scale=1280:720",
        "cameraConfigAdditionalCommandLine": "-tune zerolatency",
        "cameraConfigDebug": false,
        "cameraConfigSnapshotOutput": "disabled",
        "cameraConfigInterfaceName": "",
        "characteristicProperties": "{}",
        "waitForSetupMsg": false,
        "outputs": 2,
        "x": 360,
        "y": 480,
        "wires": [
            [
                "62d102a56184237f"
            ],
            []
        ]
    },
    {
        "id": "013ed6cf796b5671",
        "type": "function",
        "z": "9fae6a4f07359a53",
        "name": "Convert2input",
        "func": "    var newMsg = {\n        \"payload\": {\n            \"On\": msg.payload\n        }\n    }\nreturn newMsg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 160,
        "y": 480,
        "wires": [
            [
                "dd717e5993d34154"
            ]
        ]
    },
    {
        "id": "62d102a56184237f",
        "type": "change",
        "z": "9fae6a4f07359a53",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.On",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 570,
        "y": 460,
        "wires": [
            [
                "9b345ce68657d103"
            ]
        ]
    },
    {
        "id": "d590150140f5f727",
        "type": "function",
        "z": "9fae6a4f07359a53",
        "name": "Convert2input",
        "func": "    var newMsg = {\n        \"payload\": {\n            \"On\": msg.payload\n        }\n    }\nreturn newMsg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 160,
        "y": 660,
        "wires": [
            [
                "4aa20118044ebd5c"
            ]
        ]
    },
    {
        "id": "4aa20118044ebd5c",
        "type": "homekit-service",
        "z": "9fae6a4f07359a53",
        "isParent": true,
        "hostType": "0",
        "bridge": "9ecbb87f3de9fb1b",
        "accessoryId": "",
        "parentService": "",
        "name": "Sisiphus Schlafen",
        "serviceName": "Switch",
        "topic": "",
        "filter": false,
        "manufacturer": "NRCHKB",
        "model": "1.6.1",
        "serialNo": "Default Serial Number",
        "firmwareRev": "1.6.1",
        "hardwareRev": "1.6.1",
        "softwareRev": "1.6.1",
        "cameraConfigVideoProcessor": "ffmpeg",
        "cameraConfigSource": "",
        "cameraConfigStillImageSource": "",
        "cameraConfigMaxStreams": 2,
        "cameraConfigMaxWidth": 1280,
        "cameraConfigMaxHeight": 720,
        "cameraConfigMaxFPS": 10,
        "cameraConfigMaxBitrate": 300,
        "cameraConfigVideoCodec": "libx264",
        "cameraConfigAudioCodec": "libfdk_aac",
        "cameraConfigAudio": false,
        "cameraConfigPacketSize": 1316,
        "cameraConfigVerticalFlip": false,
        "cameraConfigHorizontalFlip": false,
        "cameraConfigMapVideo": "0:0",
        "cameraConfigMapAudio": "0:1",
        "cameraConfigVideoFilter": "scale=1280:720",
        "cameraConfigAdditionalCommandLine": "-tune zerolatency",
        "cameraConfigDebug": false,
        "cameraConfigSnapshotOutput": "disabled",
        "cameraConfigInterfaceName": "",
        "characteristicProperties": "{}",
        "waitForSetupMsg": false,
        "outputs": 2,
        "x": 350,
        "y": 660,
        "wires": [
            [
                "86f316975b609b6f"
            ],
            []
        ]
    },
    {
        "id": "86f316975b609b6f",
        "type": "change",
        "z": "9fae6a4f07359a53",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.On",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 570,
        "y": 640,
        "wires": [
            [
                "14949e5be26a1b5a"
            ]
        ]
    },
    {
        "id": "6554eaffa3deadf7",
        "type": "ui_group",
        "name": "Steuerung",
        "tab": "92d95ee4c013a822",
        "order": 1,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "9ecbb87f3de9fb1b",
        "type": "homekit-bridge",
        "bridgeName": "NodeRedBridgeAdapter",
        "pinCode": "4813-2314",
        "port": "",
        "advertiser": "bonjour-hap",
        "allowInsecureRequest": false,
        "manufacturer": "NRCHKB",
        "model": "1.6.1",
        "serialNo": "Default Serial Number",
        "firmwareRev": "1.6.1",
        "hardwareRev": "1.6.1",
        "softwareRev": "1.6.1",
        "customMdnsConfig": false,
        "mdnsMulticast": true,
        "mdnsInterface": "",
        "mdnsPort": "",
        "mdnsIp": "",
        "mdnsTtl": "",
        "mdnsLoopback": true,
        "mdnsReuseAddr": true,
        "allowMessagePassthrough": true
    },
    {
        "id": "92d95ee4c013a822",
        "type": "ui_tab",
        "name": "Sisyphus",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]


   
Quote
Share:

We take your privacy seriously and will only use your personal information to provide you with the products and services you request from us. Please see our privacy policy for more details.

Back To Top
Search
    0
    Your Cart
    Your cart is emptyReturn to Shop