Adapter for HID devices e.g. Apple Remote
Completly redesigned
Execute the following command in the iobroker root directory (e.g. in /opt/iobroker)
npm install iobroker.hid
There are two state groups, raw and key. the key group will only be fired, is a mapping is found.
Only one of the states xxx.double, xxx.single and xxx.long will change on an event. The state xxx.dsl gets the results .double, single or long. Action indicates down, up or repeat.
Add or edit the mapping section in the io-package.json file to see the names of the key codes. This is not necessary, the raw data states will be created anyway.
"mappings": {
"26017F2A55": "AllLightsOn-(AM)",
"26017F1867": "AllLightsOff-(Memory)",
"26857A21DE": "OK",
"26857A55AA": "ESC"
},