[
{
"id": "2f872d0f32d6c25d",
"type": "api-get-history",
"z": "d9447677b2be8105",
"name": "获取历史状态",
"server": "2c1f138838630b28",
"version": 0,
"startdate": "msg.payload.start",
"enddate": "msg.payload.end",
"entityid": "sensor.today_all_dianjia",
"entityidtype": "is",
"useRelativeTime": false,
"relativeTime": "2 hour",
"flatten": false,
"output_type": "array",
"output_location_type": "msg",
"output_location": "payload",
"x": 680,
"y": 960,
"wires": [
[
"36d7e1d806c565ab"
]
]
},
{
"id": "36d7e1d806c565ab",
"type": "debug",
"z": "d9447677b2be8105",
"name": "debug 427",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1110,
"y": 960,
"wires": []
},
{
"id": "ca5b914ab6776a45",
"type": "function",
"z": "d9447677b2be8105",
"name": "function 9",
"func": "\nmsg.payload = {\n "start": "2025-02-14T23:45:00+00:00",\n "end": "2025-02-14T23:59:00+00:00"\n}\n\n// 返回消息\nreturn msg;\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 360,
"y": 960,
"wires": [
[
"2f872d0f32d6c25d",
"a1c6f499ae7160ca"
]
]
},
{
"id": "afe261d310b9cf49",
"type": "inject",
"z": "d9447677b2be8105",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 130,
"y": 960,
"wires": [
[
"ca5b914ab6776a45"
]
]
},
{
"id": "a1c6f499ae7160ca",
"type": "debug",
"z": "d9447677b2be8105",
"name": "debug 429",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 690,
"y": 1100,
"wires": []
},
{
"id": "2c1f138838630b28",
"type": "server",
"name": "Home Assistant",
"version": 5,
"addon": false,
"rejectUnauthorizedCerts": true,
"ha_boolean": "y|yes|true|on|home|open",
"connectionDelay": true,
"cacheJson": true,
"heartbeat": true,
"heartbeatInterval": "30",
"areaSelector": "id",
"deviceSelector": "id",
"entitySelector": "id",
"statusSeparator": ": ",
"statusYear": "hidden",
"statusMonth": "short",
"statusDay": "numeric",
"statusHourCycle": "default",
"statusTimeFormat": "h:m",
"enableGlobalContextStore": false
}
]