Home Connect und Node Red

Node-RED als CCU3/RaspberryMatic Addon, WebApp, HomeKit, ...

Moderator: Co-Administratoren

Wüstinger
Beiträge: 6
Registriert: 21.12.2021, 14:06
System: CCU

Re: Home Connect und Node Red

Beitrag von Wüstinger » 29.12.2021, 22:18

Moin Totti,
wünsche frohe Weihnachten gehabt zu haben.

Bei meiner Waschmaschine und den Wäschetrockner war das Ganze sehr kompliziert. Ich habe es nicht hinbekommen einfach nur "Start" zu befehlen.
Daher ließt das Event-Node jetzt den Status aus, über eine simple Logik wird das entsprechende Programm gewählt und dann mit der PV-Anlage gestartet.

Backofen habe ich leider nicht.

Besten Gruß
Wüstinger

maxx3105
Beiträge: 281
Registriert: 19.10.2018, 16:07
Hat sich bedankt: 156 Mal
Danksagung erhalten: 49 Mal

Re: Home Connect und Node Red

Beitrag von maxx3105 » 12.11.2023, 18:57

Falls es noch jemand benötigt.

Code: Alles auswählen

[
    {
        "id": "43008764f2d3c265",
        "type": "home-connect-request",
        "z": "22a7f815.6b4008",
        "auth": "",
        "name": "",
        "tag": "programs",
        "operationId": "get_selected_program",
        "haid": "",
        "body": "",
        "optionkey": "",
        "programkey": "",
        "settingkey": "",
        "commandkey": "",
        "statuskey": "",
        "imagekey": "",
        "x": 740,
        "y": 160,
        "wires": [
            [
                "dbe690a10366033e"
            ]
        ]
    },
    {
        "id": "d95ea26eb0c8737f",
        "type": "home-connect-request",
        "z": "22a7f815.6b4008",
        "auth": "",
        "name": "start selected programm",
        "tag": "programs",
        "operationId": "start_program",
        "haid": "",
        "body": "",
        "optionkey": "",
        "programkey": "",
        "settingkey": "",
        "commandkey": "",
        "statuskey": "",
        "imagekey": "",
        "x": 1310,
        "y": 160,
        "wires": [
            []
        ]
    },
    {
        "id": "083337f3eb3b5fda",
        "type": "home-connect-request",
        "z": "22a7f815.6b4008",
        "auth": "",
        "name": "",
        "tag": "status",
        "operationId": "get_status",
        "haid": "",
        "body": "",
        "optionkey": "",
        "programkey": "",
        "settingkey": "",
        "commandkey": "",
        "statuskey": "",
        "imagekey": "",
        "x": 330,
        "y": 160,
        "wires": [
            [
                "22efc0e80d26eb7e"
            ]
        ]
    },
    {
        "id": "22efc0e80d26eb7e",
        "type": "switch",
        "z": "22a7f815.6b4008",
        "name": "Fernstart aktiviert",
        "property": "payload.data.status[3].value",
        "propertyType": "msg",
        "rules": [
            {
                "t": "true"
            },
            {
                "t": "false"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 510,
        "y": 160,
        "wires": [
            [
                "43008764f2d3c265"
            ],
            [
                "325225c016638834"
            ]
        ]
    },
    {
        "id": "325225c016638834",
        "type": "delay",
        "z": "22a7f815.6b4008",
        "name": "",
        "pauseType": "delay",
        "timeout": "10",
        "timeoutUnits": "minutes",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "allowrate": false,
        "outputs": 1,
        "x": 150,
        "y": 160,
        "wires": [
            [
                "083337f3eb3b5fda"
            ]
        ]
    },
    {
        "id": "dbe690a10366033e",
        "type": "change",
        "z": "22a7f815.6b4008",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.data.key",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 950,
        "y": 160,
        "wires": [
            [
                "5389673da0a8a1aa"
            ]
        ]
    },
    {
        "id": "5389673da0a8a1aa",
        "type": "function",
        "z": "22a7f815.6b4008",
        "name": "function 1",
        "func": "var program = msg.payload;\n {\n\n    msg.body = {\n        \"data\": {\n            \"key\": program,\n            \"options\": []\n        }\n\n    }\n}\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1120,
        "y": 160,
        "wires": [
            [
                "d95ea26eb0c8737f"
            ]
        ]
    },
    {
        "id": "b0d8b223.2d024",
        "type": "home-connect-auth",
        "name": "Home_Connect",
        "simulation_mode": false,
        "scope": "IdentifyAppliance Control Monitor Settings",
        "callback_url": "http://XXX.XXX.XXX.XX/addons/red/homeconnect/auth/callback"
    }
]

Antworten

Zurück zu „RedMatic“