Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Mediatasten mit rpi-keyboard node

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Mediatasten mit rpi-keyboard node

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

      Hallo,

      ich würde mir gerne über ioBroker mit meiner https://www.amazon.de/Andoer%C2%AE-Tragbare-Drahtlose-Fernbedienung-Tastatursteuerung-Type-2/dp/B00WDSCTR4 und meinem Raspberry pi eine Universalfernbedienungen bauen. Dazu muss ich natürlich den Tastendruck der Fernbedienung in den ioBroker bringen. Dies funktioniert auch größtenteils mit der rpi-keyboard node dort erhalte ich den jeweiligen Keycode der Taste, außer bei den Mediatasten (also Play, Pause, Vol up …) die mir natürlich sehr wichtig sind.

      Es währe toll wenn mir jemand ein Tipp geben könnte wie ich noch die Mediatasten in ioBroker einlesen könnte.

      Danke im Voraus

      Tobi

      1 Reply Last reply Reply Quote 0
      • T
        ToB204 last edited by

        so hab es jetzt selbst hin bekommen mit node-red-contrib-usbhid.

        Hier für alle die es interessiert noch den Flow

        [
            {
                "id": "b64f12a4.82f57",
                "type": "ioBroker out",
                "z": "b9b83901.0efa78",
                "name": "Tasten druck",
                "topic": "Tasten_druck",
                "ack": "true",
                "autoCreate": "true",
                "x": 1210,
                "y": 600,
                "wires": []
            },
            {
                "id": "65258308.49279c",
                "type": "rpi-keyboard",
                "z": "b9b83901.0efa78",
                "name": "",
                "x": 790,
                "y": 580,
                "wires": [
                    [
                        "c8a0770f.28c178"
                    ]
                ]
            },
            {
                "id": "5ab4c722.7dbe88",
                "type": "HIDdevice",
                "z": "b9b83901.0efa78",
                "connection": "4fbd6b73.15efb4",
                "name": "Fernbedienung",
                "x": 240,
                "y": 640,
                "wires": [
                    [
                        "a92ab222.942b5"
                    ],
                    []
                ]
            },
            {
                "id": "a92ab222.942b5",
                "type": "function",
                "z": "b9b83901.0efa78",
                "name": "Select ip Part 1",
                "func": "msg.payload = msg.payload[1];\nreturn msg;",
                "outputs": 1,
                "noerr": 0,
                "x": 420,
                "y": 640,
                "wires": [
                    [
                        "73cff708.3d01a8"
                    ]
                ]
            },
            {
                "id": "73cff708.3d01a8",
                "type": "switch",
                "z": "b9b83901.0efa78",
                "name": "Alles über 0",
                "property": "payload",
                "propertyType": "msg",
                "rules": [
                    {
                        "t": "gt",
                        "v": "0",
                        "vt": "num"
                    }
                ],
                "checkall": "true",
                "repair": false,
                "outputs": 1,
                "x": 590,
                "y": 640,
                "wires": [
                    [
                        "3ace679a.a3a588"
                    ]
                ]
            },
            {
                "id": "3ace679a.a3a588",
                "type": "function",
                "z": "b9b83901.0efa78",
                "name": " + 1000",
                "func": "msg.payload = (msg.payload + 1000);\nreturn msg;",
                "outputs": 1,
                "noerr": 0,
                "x": 750,
                "y": 640,
                "wires": [
                    [
                        "c8a0770f.28c178"
                    ]
                ]
            },
            {
                "id": "c8a0770f.28c178",
                "type": "deduplicate",
                "z": "b9b83901.0efa78",
                "name": "nur einmal",
                "keyproperty": "",
                "expiry": "1",
                "x": 990,
                "y": 600,
                "wires": [
                    [
                        "b64f12a4.82f57"
                    ],
                    []
                ]
            },
            {
                "id": "4fbd6b73.15efb4",
                "type": "HIDConfig",
                "z": "",
                "vid": "8985",
                "pid": "16",
                "name": "Mx3"
            }
        ]
        

        2538_flow.jpg

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

        Support us

        ioBroker
        Community Adapters
        Donate

        800
        Online

        31.7k
        Users

        79.9k
        Topics

        1.3m
        Posts

        1
        2
        601
        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