在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:krisbreuker/homebridge-gpio-onoff开源软件地址:https://github.com/krisbreuker/homebridge-gpio-onoff开源编程语言:JavaScript 100.0%开源软件介绍:Homebridge GPIOSupports triggering General Purpose Input Output (GPIO) pins on platforms supporting the onoff package. It is based on homebridge-gpio, but using the onoff package instead of pi-gpio to be able to listen for changes in pin values. Requirements
Installation
ConfigurationExample {
"accessories": [
{
"accessory": "GPIO-OnOff",
"name": "GPIO-7",
"pin": 7,
"direction": "out"
}
]
}
By default, a simple 'Switch' accessory is created, which will be set to 'On' or 'Off' by a change in the input value. It is possible to change the service type and even the {
"accessories": [
{
"accessory": "GPIO-OnOff",
"name": "GPIO-7",
"pin": 7,
"direction": "in",
"edge": "both",
"activeLow": true,
"hapService": "LightSensor",
"hapCharacteristic": "CurrentAmbientLightLevel",
"trueValue": 100000,
"falseValue": 0.0001
}
]
}
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论