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

mcchots/homebridge-mqtt-humidity: Get Humidity Sensor data via MQTT in Homebridg ...

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

开源软件名称:

mcchots/homebridge-mqtt-humidity

开源软件地址:

https://github.com/mcchots/homebridge-mqtt-humidity

开源编程语言:

JavaScript 100.0%

开源软件介绍:

DEPRECATION NOTICE


This package is deprecated. Please use homebridge-mqtthing instead. It is more mature, better tested, and offers additional-features.


homebridge-mqtt-humidity

Get Humidity Sensor data via MQTT in Homebridge

Installation

sudo npm install -g homebridge-mqtt-humidity

Sample HomeBridge Configuration

{
  "bridge": {
    "name": "HomeBridge",
    "username": "CC:33:3B:D3:CE:32",
    "port": 51826,
    "pin": "321-45-123"
  },

  "description": "",

  "accessories": [
			{
      "accessory": "mqtt-humidity",
      "name": "Living Room Humidity",
      "url": "mqtt://10.0.0.5",
      "topic": "home/livingroom/humidity/percentage",
      "refresh_topic": "home/livingroom/humidity/get",
      "charge_topic": "home/livingroom/humidity/charge",
      "batt_topic: "home/livingroom/humidity/battery",
      "batt_low_perc": "25",
      "username": "username",
      "password": "password",
      "serial": "HMH-54D3X"
			}
  ],

  "platforms": []
}

serial allows you to change the serial number to a custom value if you need it.

batt_topic, charge_topic and bat_low_perc are for battery powered sensors.

  • batt_low_perc overrides the default 20% value.
  • charge_topic is for charging state. It requires values of either 0 or 1 for off and on respectively.

refresh_topic lets you publish to a topic to refresh the current temperature value. This is useful in cases where your device publishes infrequently and you need an update between intervals. It requires your device to monitor this topic for requests. A request will published everytime homebridge makes a request, for example on opening the app.

All five options are are optional as well as username and password if you don't use MQTT authentication.

Credits

homebridge-mqttswitch

homebridge-mqttgaragedoor

homebridge-ds18b20




鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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