homebridge-mqtt-temperature Get Temperature Sensor

我要开发同款
匿名用户2021年12月10日
37阅读
开发技术JavaScript
所属分类其他开源、物联网
授权协议MIT License

作品详情

DEPRECATIONNOTICEThispackageisdeprecated.Pleaseusehomebridge-mqtthinginstead.Itismoremature,bettertested,andoffersadditional-features.homebridge-mqtt-temperature

GetTemperatureSensordataviaMQTTinHomebridge

Installationsudonpminstall-ghomebridge-mqtt-temperatureSampleHomeBridgeConfiguration{"bridge":{"name":"HomeBridge","username":"CC:33:3B:D3:CE:32","port":51826,"pin":"321-45-123"},"description":"","accessories":[{"accessory":"mqtt-temperature","name":"LivingRoomTemperature","url":"mqtt://localhost","topic":"home/livingroom/temperature/value","refresh_topic":"home/livingroom/temperature/get""batt_topic":"home/livingroom/temperature/battery","charge_topic":"home/livingroom/temperature/charge","batt_low_perc":"33","username":"username","password":"password","maxTemperature":"75","minTemperature":"-25","serial":"HMT-34932B"}],"platforms":[]}

maxTemperatureandminTemperatureallowyoutochangethedefaulthighandlowtemperatures.

serialallowsyoutochangetheserialnumbertoacustomvalueifyouneedit.

batt_topic,charge_topicandbat_low_percareforbatterypoweredsensors.

batt_low_percoverridesthedefault20%value.charge_topicisforchargingstate.Itrequiresvaluesofeither0or1foroffandonrespectively.

refresh_topicletsyoupublishtoatopictorefreshthecurrenttemperaturevalue.Thisisusefulincaseswhereyourdevicepublishesinfrequentlyandyouneedanupdatebetweenintervals.Itrequiresyourdevicetomonitorthistopicforrequests.Arequestwillpublishedeverytimehomebridgemakesarequest,forexampleonopeningtheapp.

Allsevenoptionsareareoptionalaswellasusernameandpasswordifyoudon'tuseMQTTauthentication.

Credits

homebridge-mqttswitch

homebridge-mqttgaragedoor

homebridge-ds18b20

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论