请教大佬AWTRIX怎么把BME280的温湿度接入到HA

请教大佬AWTRIX怎么把BME280的温湿度接入到HA

自己造个设备去举例吧,其它的都类似
AWTRIX的通知消息不滚动的最多只能五个字还是六个字,多了就开始滚动
1212

流在下面
[
{
“id”: “4617d9e4.920018”,
“type”: “inject”,
“z”: “88764568.8d7278”,
“name”: “”,
“topic”: “”,
“payload”: “”,
“payloadType”: “date”,
“repeat”: “”,
“crontab”: “”,
“once”: false,
“onceDelay”: 0.1,
“x”: 890,
“y”: 1660,
“wires”: [
[
“f4038f79.226d8”
]
]
},
{
“id”: “f4038f79.226d8”,
“type”: “function”,
“z”: “88764568.8d7278”,
“name”: “”,
“func”: “temp = 30\nbat = 60.8\nhum = 52\nlink = 199\nmsg.payload = {}\nmsg.payload.temp = temp\nmsg.payload.battery = bat\nmsg.payload.hum = hum\nmsg.payload.linkquality = link\nreturn msg;”,
“outputs”: 1,
“noerr”: 0,
“x”: 1060,
“y”: 1660,
“wires”: [
[
“5fe06a30.60ba54”
]
]
},
{
“id”: “5fe06a30.60ba54”,
“type”: “function”,
“z”: “88764568.8d7278”,
“name”: “awtrix”,
“func”: “msg.payload = {\n “name”: “test”,\n “force”:true,\n “moveIcon”:true,\n “repeat”:2,\n “soundfile”:1,\n “text”: TEMP${msg.payload.temp},\n “color”:[\n 255,\n 255,\n 255\n ]\n}\nreturn msg;”,
“outputs”: 1,
“noerr”: 0,
“x”: 1230,
“y”: 1660,
“wires”: [
[
“2d87986c.031358”
]
]
},
{
“id”: “2d87986c.031358”,
“type”: “mqtt out”,
“z”: “88764568.8d7278”,
“name”: “awtrixBlue状态”,
“topic”: “awtrixRed/notify”,
“qos”: “”,
“retain”: “”,
“broker”: “d63db49d.6f27f8”,
“x”: 1420,
“y”: 1660,
“wires”: []
},
{
“id”: “d63db49d.6f27f8”,
“type”: “mqtt-broker”,
“z”: “”,
“name”: “”,
“broker”: “3.0.7.31”,
“port”: “1883”,
“clientid”: “”,
“usetls”: false,
“compatmode”: false,
“keepalive”: “60”,
“cleansession”: true,
“birthTopic”: “”,
“birthQos”: “0”,
“birthPayload”: “”,
“closeTopic”: “”,
“closeQos”: “0”,
“closePayload”: “”,
“willTopic”: “”,
“willQos”: “0”,
“willPayload”: “”
}
]

谢谢医生!我试试去

医生你这好像是把传感器往awtrix里面塞,我需要读取awtrix里面app的信息出来 :grinning:

不是有那个应用吗?
SCL接D1,SDA接D3,剩下3。3V和GND也连上

亲测有效,好像需要第二次上电才能正常