NEWS
Mediatasten mit rpi-keyboard node
-
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
-
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" } ]