• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Samfox2/homebridge-domotiga: Supports domotiga devices on HomeBridge Platform

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

Samfox2/homebridge-domotiga

开源软件地址:

https://github.com/Samfox2/homebridge-domotiga

开源编程语言:

JavaScript 100.0%

开源软件介绍:

homebridge-domotiga

npm version Dependency Status npm GitHub last commit Donate

Supports Domotiga devices on HomeBridge platform.

Older version using API 1.0: homebridge-domotiga-1.0 (deprecated)

Switching from homebridge-domotiga (API 1.0)

Users switching from homebridge-domotiga will need to remove their old config in config.json and use the new config. Hence, DomotiGa will show up as brand new device. This is due to the fact that API 2.0 only supports platform plugins and homebridge-domotiga was implemented as an accessory plugin. This means any configurations, alarms, scenes, etc to which the devices were associated will need to be updated with the new DomotiGa devices.

What this plugin does

The latest version (work in progress) supports following (primary) services:

  • TemperatureSensor (temperature)
  • HumiditySensor (humidity)
  • AirQualitySensor (air quality)
  • FakeEveAirQualitySensor (custom Eve service, same as AirQualitySensor with additional ppm value in Eve app)
  • FakeEveWeatherSensor (custom Eve service with airpressure in Eve app)
  • Contact (contact state)
  • LeakSensor (leaksensor state)
  • MotionSensor (motionsensor state)
  • Switch (get/set switch state)
  • Outlet (get/set outlet state)
  • Door (get/set door position)
  • Window (get/set window position)
  • WindowCovering (get/set window covering positon)
  • Powermeter (custom service with power consumption)
  • Light bulb (get/set light bulb state, if supported dimming as well)
  • Thermostat (get/set OpenTherm thermostat)

Domotiga device value numbers (e.g. which device value represents temperature) can be assigned directly within the config.json file. For multi-sensors (e.g. combined temperature/humidity sensors) additional characteristics can be added by defining their domotiga values in config.json (see example below).

Contributing

Intrigued? Missing any domotiga devices? Love HomeKit and Homebridge? - Feel free to contribute by sending pull requests to get this project going in a more generic direction. Or just open an issue if you have more questions or ideas.

Installation

  1. Install homebridge using: npm install -g homebridge
  2. Install this plugin using: npm install -g git+https://github.com/Samfox2/homebridge-domotiga.git or npm install -g homebridge-domotiga
  3. Update your configuration file. See sample-config.json in this repository for a sample.

Configuration

Configuration sample:

"platforms": [
   {
       "platform": "Domotiga",
       "name": "Domotiga",
       "host": "localhost",
       "port": "9090",
       "devices": [
           {
               "name": "Sensor garden",
               "service": "TemperatureSensor",
               "manufacturer": "DIY",
               "model": "TinyTX",
               "device": "81",
               "valueTemperature": "1",
               "valueHumidity": "2",
               "valueAirPressure": "3",
               "valueBattery": "4",
               "lowbattery": "3000"
               "polling": true,
               "pollingInterval": "1000"
           },
           {
               "name": "Sensor gardenhouse",
               "service": "HumiditySensor",
               "manufacturer": "DIY",
               "model": "TinyTX",
               "device": "88",
               "valueHumidity": "2",
               "valueBattery": "4",
               "lowbattery": "3000"
   			"polling": false,
               "pollingInterval": "1000"
           },
           {
               "name": "Combined AirQualitySensor livingroom",
               "service": "AirQualitySensor",
               "device": "83",
               "valueAirQuality": "1",
               "valueTemperature": "2",
               "valueHumidity": "3",
               "valueAirPressure": "4",
               "valueBattery": "5",
               "lowbattery": "3000"
           },
           {
               "name": "Combined AirQualitySensor with ppm display",
               "service": "FakeEveAirQualitySensor",
               "device": "89",
               "valueAirQuality": "1",
               "valueTemperature": "2",
               "valueHumidity": "3",
               "valueAirPressure": "4",
               "valueBattery": "5",
               "lowbattery": "3000"
           },
           {
               "name": "AirQualitySensor bedroom without battery",
               "service": "AirQualitySensor",
               "device": "82",
               "valueAirQuality": "1"
           },
           {
               "name": "PC",
               "service": "Contact",
               "device": "77",
               "valueContact": "1",
               "valueBattery": "2",
               "lowbattery": "3000"
           },
           {
               "name": "Printer",
               "service": "Switch",
               "device": "79",
               "valueSwitch": "1"
           },
           {
               "name": "Utility room",
               "service": "LeakSensor",
               "device": "25",
               "valueLeakSensor": "1",
               "valueBattery": "2",
               "lowbattery": "3000"
           },
           {
               "name": "Entrance",
               "service": "MotionSensor",
               "device": "26",
               "valueMotionSensor": "1",
               "valueBattery": "2",
               "lowbattery": "3000"
           },
           {
               "name": "Outlet",
               "service": "Outlet",
               "device": "72",
               "valueOutlet": "1",
               "valuePowerConsumption": "3",
               "valueTotalPowerConsumption": "7"
           },
           {
               "name": "Powermeter basement",
               "service": "Powermeter",
               "device": "44",
               "valuePowerConsumption": "1",
               "valueTotalPowerConsumption": "2"
           },
           {
               "name": "Switchable Light bulb",
               "service": "Lightbulb",
               "device": "36",
               "valueLight": "1",
               "brightness": false
           },
           {
               "name": "Dimmable Light bulb",
               "service": "Lightbulb",
               "device": "37",
               "valueLight": "1",
               "brightness": true
           },
           {
               "name": "OpenTherm Thermostat",
               "service": "Thermostat",
               "device": "38",
               "valueTargetTemperature": "1",
               "valueTemperature": "2"
           }
       ]
   }
]

Fields:

  • "platform": Must always be Domotiga (required)
  • "name": Can be anything
  • "host": The hostname or ip of the machine running Domotiga (required)
  • "port": The port that Domotiga is using (usually 9090) (required)
  • "service": Service that Domotiga device represents (required)
  • "manufacturer": Manufacturer of accessory (optional)
  • "model": Model of accessory (optional)
  • "device": Domotiga device no. (required)
  • "valueTemperature": Domotiga device value no. of temperature in °C (required for "TemperatureSensor" and "Thermostat")
  • "valueHumidity": Value no. of humidity in % (required for "HumiditySensor")
  • "valueAirPressure": Value no. of air pressure in hPa (required for "FakeEveWeatherSensor")
  • "valueAirQuality": Value no. of the air quality VOC (required for "AirQualitySensor" and "FakeEveAirQualitySensor")
  • "valueContact": Value no. of the contact (required for "Contact")
  • "valueSwitch": Value no. of the switch (required for "Switch")
  • "valueOutlet": Value no. of the outlet (required for "Outlet")
  • "valueDoor": Value no. of the door (required for "Door")
  • "valueWindow": Value no. of the window (required for "Window")
  • "valueWindowCovering": Value no. of the window covering (required for "Window Covering")
  • "valueLeakSensor": Value no. of the leaksensor (required for "LeakSensor")
  • "valueMotionSensor": Value no. of the motionsensor (required for "MotionSensor")
  • "valueLight": Value no. of the light
  • "brightness": Enable/disable dimming with "true" or "false" (required for "Lightbulb")
  • "valueTargetTemperature": Value no. of the thermostat temperature setpoint (for the OpenTherm plugin it should be "1")
  • "valueBattery": Value no. of battery in mV
  • "lowbattery": Min. battery level which activates "low battery warning" in mV
  • "polling": Enable/disable polling with "true" or "false" (optional)
  • "pollingInterval": Number of seconds to wait before polling the database to report open/closed state (optional)

Not yet supported by all homekit apps:

  • "valuePowerConsumption": Value no. of the consumption in W (required for custom "Powermeter")
  • "valueTotalPowerConsumption": Value no. of the total consumption in kWh



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap