项目作者: Mo0812

项目描述 :
Homebridge plugin to use devices provided by mk-home-server like the thermometer service of mk-home-temp
高级语言: JavaScript
项目地址: git://github.com/Mo0812/homebridge-mkht.git
创建时间: 2020-12-27T18:05:06Z
项目社区:https://github.com/Mo0812/homebridge-mkht

开源协议:Apache License 2.0

下载


homebridge-mkht

The homebridge-mkht plugin for the homebridge project allows to integrate mk-home-temp via a running mk-home-server instance.
It will

Installation

Clone this repository on the device your homebridge instance is running on:

  1. git clone git@github.com:Mo0812/homebridge-mkht.git

Change into the plugins directory:

  1. cd homebridge-mkht

Install the needed dependencies:

  1. npm install

Link the plugin with the running homebridge instance:

  1. npm link

Configuration

With finishing the steps above, the plugin should appear in homebridge.

Now the mk-home-server instance need to be registered as an Accessory in the homebridge configuration.

The needed information are the IP address of the mk-home-server instance, the port of its REST API and the device ID of the attached mk-home-temp instance (which should be connected to the mk-home-server instance):

  1. ...
  2. "accessories": [
  3. {
  4. "accessory": "MKHTemp",
  5. "name": "DEVICE NAME",
  6. "mkhs": {
  7. "ipAddr": "127.0.0.1",
  8. "port": "8000",
  9. "deviceId": 1
  10. }
  11. }
  12. ],
  13. ...

Now the temperature and humidity sensor should appear as Accessories in homebridge and can be used in HomeKit.