|
本帖最后由 yylwhy 于 2019-9-15 20:43 编辑
参考各种帖子还没解决特此求教。
N1 + 一键安装的
配置如下
--------------------------------------------------------------------------------
mqtt:
broker: 10.0.0.207
port: 1883
username: mqtt
password: mqtt
discovery: false
#温湿度
sensor:
- platform: mqtt
name: "wendu"
state_topic: "tele/test1/SENSOR"
value_template: "{{ value_json['DHT11'].Temperature }}"
unit_of_measurement: "°C"
- platform: mqtt
name: "shidu"
state_topic: "tele/test1/SENSOR"
value_template: "{{ value_json['DHT11'].Humidity }}"
unit_of_measurement: "%"
--------------------------------------------------------------------------------
04:09:40 MQT: tele/tset1/SENSOR = {"Time":"2019-09-14T04:09:40","DHT11":{"Temperature":27.8,"Humidity":36.0},"TempUnit":"C"}
---------------------------------------------------------------------------------
1
2
|
|