Adapter for HID devices e.g. Apple Remote
This adapter was initialy created by @soef at https://github.com/soef/ioBroker.hid but not maintained any more, so we moved it to iobroker-community so that bugs could be fixed. thanks @soef for his work.
Please install bia Admin
It can be that the following additional things are needed
iob fix
sudo apt install libusb-1.0-0-dev
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"
},
The MIT License (MIT)
Copyright (c) 2024 iobroker-community-adapters iobroker-community-adapters@gmx.de Copyright (c) 2015-2023 ioBroker-Community, soef soef@gmx.net
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.