💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
本文主要解释如果将wifi温度计WTH8266-T接入homeassistant系统,阅读时间大概五分钟。 # 实际效果 ## 实际效果 ![WTH8266](http://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/eMonitor-20181103-L1.jpg) ## 接入HomeAssistant 系统 ![home assistant](https://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/HA-20191122-4.jpg) 可以监控与采集的数据包括 温度。 # 接入教程 ## 1 安装HomeAssistant 系统 参考网络相关教程 ## 2 下载源码放到 custom_components 目录下 [源码地址:https://github.com/lewei50/homeassistant/tree/master/custom_components/devicebit](https://github.com/lewei50/homeassistant/tree/master/custom_components/devicebit) ![](https://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/HA-20191122-8.jpg) ![](https://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/HA-20191122-1.jpg) ![](https://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/HA-20191122-2.jpg) ## 3 修改configuration.yaml,在sensor:下添加 ```yaml sensor: - platform: devicebit host: 192.168.1.12 name: wifiht ``` ![](https://leweidoc.oss-cn-hangzhou.aliyuncs.com/lewei50/img/HA-20191122-3.jpg) ## Reference - [1 AirMonitor with HomeAssistant](http://lwkits.com/doc/htmonitor/product-introduction.html) - [2 WTH series catelogue](http://lwkits.com/doc/htmonitor/product-catelogue.html) - [3 WIFIHT program](https://github.com/lewei50/esp8266-arduino/tree/master/WATH8266)