Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Node-Red
    5. Homematic IP Rolladen - HMIP-BROLL in Homekit

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Homematic IP Rolladen - HMIP-BROLL in Homekit

    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      magic2910 last edited by magic2910

      Hallo zusammen,

      ich habe nun endlich meine HMIP-BROLLs erfolgreich über Node Red in Apple Homekit gebracht.
      Da ich bisher nicht wirklich etwas dazu gefunden habe anbei mein Skript.
      (Ich bin auf eine CCU3 gewechselt, da ich viele Werte nicht über den AP bekommen habe)
      Homekit zeigt sauber den aktuellen Status an und beendet diesen auch, wenn die Aktion über den Taster ausgelöst wurde.

      Input nehme ich hm-rpc.0.xxxxxxxxx.3 und im output hm-rpc.0.xxxxxxxx.4

      3c2433ad-0578-4dab-ba0b-84d622cbb549-image.png

      [
          {
              "id": "2a5d5250.f178be",
              "type": "tab",
              "label": "Flow 1",
              "disabled": false,
              "info": ""
          },
          {
              "id": "432490.00908b7",
              "type": "homekit-service",
              "z": "2a5d5250.f178be",
              "isParent": true,
              "bridge": "55c29aac.7d8e64",
              "parentService": "",
              "name": "Rolladen Büro",
              "serviceName": "WindowCovering",
              "topic": "",
              "filter": false,
              "manufacturer": "EQ3",
              "model": "HMIP-BROLL",
              "serialNo": "123456",
              "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": "{}",
              "x": 840,
              "y": 200,
              "wires": [
                  [
                      "e42ab19c.8579e"
                  ],
                  []
              ],
              "icon": "node-red/debug.svg"
          },
          {
              "id": "e42ab19c.8579e",
              "type": "function",
              "z": "2a5d5250.f178be",
              "name": "convert HMIP",
              "func": "return { payload: msg.payload.TargetPosition } ;",
              "outputs": 1,
              "noerr": 0,
              "x": 1120,
              "y": 200,
              "wires": [
                  [
                      "6afa8d1d.bbd974"
                  ]
              ]
          },
          {
              "id": "6afa8d1d.bbd974",
              "type": "ioBroker out",
              "z": "2a5d5250.f178be",
              "name": "Büro",
              "topic": "hm-rpc.0..4.LEVEL",
              "ack": "false",
              "autoCreate": "false",
              "stateName": "",
              "role": "",
              "stateUnit": "",
              "stateMin": "",
              "stateMax": "",
              "x": 1290,
              "y": 200,
              "wires": []
          },
          {
              "id": "f893eeec.8e964",
              "type": "ioBroker in",
              "z": "2a5d5250.f178be",
              "name": "Büro",
              "topic": "hm-rpc.0..3.LEVEL",
              "payloadType": "value",
              "onlyack": "",
              "func": "all",
              "gap": "",
              "fireOnStart": "true",
              "x": 150,
              "y": 180,
              "wires": [
                  [
                      "cf23e464.8cc838"
                  ]
              ]
          },
          {
              "id": "ed5896fe.761f68",
              "type": "ioBroker in",
              "z": "2a5d5250.f178be",
              "name": "Büro State",
              "topic": "hm-rpc.0..3.ACTIVITY_STATE",
              "payloadType": "value",
              "onlyack": "",
              "func": "all",
              "gap": "",
              "fireOnStart": "true",
              "x": 160,
              "y": 240,
              "wires": [
                  [
                      "cf23e464.8cc838"
                  ]
              ]
          },
          {
              "id": "1056fa0c.2aba86",
              "type": "function",
              "z": "2a5d5250.f178be",
              "name": "HomeMagic",
              "func": "var pos = msg.payload[0];\nvar posstate = msg.payload[1];\n\nif(posstate === \"3\"){\n msg.payload={\n   CurrentPosition: Number(pos),\n   TargetPosition: Number(pos),\n   PositionState: Number(posstate)\n }\n} else if(posstate === \"2\") {\n msg.payload={\n   CurrentPosition: Number(pos),\n   PositionState: Number(posstate)\n }\n} else  {\n msg.payload={\n   CurrentPosition: Number(pos),\n   PositionState: Number(posstate)\n }\n}\nreturn msg;",
              "outputs": 1,
              "noerr": 0,
              "x": 590,
              "y": 200,
              "wires": [
                  [
                      "432490.00908b7"
                  ]
              ]
          },
          {
              "id": "cf23e464.8cc838",
              "type": "join",
              "z": "2a5d5250.f178be",
              "name": "",
              "mode": "custom",
              "build": "array",
              "property": "payload",
              "propertyType": "msg",
              "key": "topic",
              "joiner": "\\n",
              "joinerType": "str",
              "accumulate": false,
              "timeout": "",
              "count": "2",
              "reduceRight": false,
              "reduceExp": "",
              "reduceInit": "",
              "reduceInitType": "num",
              "reduceFixup": "",
              "x": 390,
              "y": 200,
              "wires": [
                  [
                      "1056fa0c.2aba86"
                  ]
              ]
          },
          {
              "id": "55c29aac.7d8e64",
              "type": "homekit-bridge",
              "z": "",
              "bridgeName": "HomeBroker",
              "pinCode": "123-45-678",
              "port": "",
              "allowInsecureRequest": false,
              "manufacturer": "ioBroker",
              "model": "ioBroker",
              "serialNo": "1337",
              "customMdnsConfig": false,
              "mdnsMulticast": true,
              "mdnsInterface": "",
              "mdnsPort": "",
              "mdnsIp": "",
              "mdnsTtl": "",
              "mdnsLoopback": true,
              "mdnsReuseAddr": true,
              "allowMessagePassthrough": false
          }
      ]
      
      W 1 Reply Last reply Reply Quote 0
      • W
        WeiserWolf @magic2910 last edited by

        @magic2910 Das Thema ist zwar schon sehr alt, aber ich bin froh es gefunden zu haben 🙂 Danke dafür!
        Aber bei mir wird das LOG immer wieder geflutet mit folgender Meldung:

        [ioBroker NodeRed 6229@Rolladen Office@Rolladen Office@Position State] characteristic was supplied illegal value: number 3 exceeded maximum of 2
        

        Wie kann ich das unterbinden?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        Support us

        ioBroker
        Community Adapters
        Donate

        1.0k
        Online

        31.7k
        Users

        79.7k
        Topics

        1.3m
        Posts

        2
        2
        1140
        Loading More Posts
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes
        Reply
        • Reply as topic
        Log in to reply
        Community
        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
        The ioBroker Community 2014-2023
        logo