[
{
"id": "fd0b37d28f4ca7ad",
"type": "api-current-state",
"z": "b07b9e629f1e3946",
"name": "家里感觉温度",
"server": "0d791a796fc66ffe",
"version": 3,
"outputs": 1,
"halt_if": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"entity_id": "sensor.wo_de_jia_gan_jue_wen_du",
"state_type": "str",
"blockInputOverrides": false,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "entityState"
},
{
"property": "data",
"propertyType": "msg",
"value": "wo_de_jia_gan_jue_wen_du",
"valueType": "str"
}
],
"for": "0",
"forType": "num",
"forUnits": "minutes",
"override_topic": false,
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"x": 340,
"y": 540,
"wires": [
[
"fc7565f511ea7c7c"
]
]
},
{
"id": "fc7565f511ea7c7c",
"type": "function",
"z": "b07b9e629f1e3946",
"name": "温度查询处理",
"func": "let message = {\n "title": "温度查询",\n "text": "#### 家里的温度 \\n > 感知温度:"+msg.payload+"°C"\n}\nlet dmsg = {\n "msgParam": JSON.stringify(message),\n "msgKey": "sampleMarkdown",\n\n}\n\nglobal.set("dingMsg", JSON.stringify(dmsg));\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 540,
"y": 540,
"wires": [
[
"02b5c8ae84c5521f"
]
]
},
{
"id": "0d791a796fc66ffe",
"type": "server",
"name": "Home Ass",
"version": 5,
"addon": false,
"rejectUnauthorizedCerts": true,
"ha_boolean": "y|yes|true|on|home|open",
"connectionDelay": true,
"cacheJson": true,
"heartbeat": false,
"heartbeatInterval": "30",
"areaSelector": "friendlyName",
"deviceSelector": "friendlyName",
"entitySelector": "friendlyName",
"statusSeparator": ": ",
"statusYear": "hidden",
"statusMonth": "short",
"statusDay": "numeric",
"statusHourCycle": "default",
"statusTimeFormat": "h:m",
"enableGlobalContextStore": false
}
]