- 积分
- 896
- 金钱
- 791
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
高级会员
- 积分
- 896
- 金钱
- 791
- HASS币
- 0
|
发表于 2023-2-10 08:26:45
|
显示全部楼层
本帖最后由 cxz7411 于 2023-2-10 08:30 编辑
[
{
"id": "738747e3a7efec0f",
"type": "api-call-service",
"z": "315241eea03eb53d",
"name": "打开玄关灯",
"server": "1322427d28179114",
"version": 5,
"debugenabled": false,
"domain": "switch",
"service": "turn_on",
"areaId": [],
"deviceId": [],
"entityId": [
"switch.isa_kg03hl_dd9c_left_switch_service"
],
"data": "",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 830,
"y": 120,
"wires": [
[
"44deb376f221f035"
]
]
},
{
"id": "afc0b42dc7a05828",
"type": "api-call-service",
"z": "315241eea03eb53d",
"name": "关闭玄关灯",
"server": "1322427d28179114",
"version": 5,
"debugenabled": false,
"domain": "switch",
"service": "turn_off",
"areaId": [],
"deviceId": [],
"entityId": [
"switch.isa_kg03hl_dd9c_left_switch_service"
],
"data": "",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 1190,
"y": 220,
"wires": [
[
"9740e457f5ba2665"
]
]
},
{
"id": "019adaac41bf4c4e",
"type": "api-current-state",
"z": "315241eea03eb53d",
"name": "环境光_移动",
"server": "1322427d28179114",
"version": 3,
"outputs": 2,
"halt_if": "0",
"halt_if_type": "str",
"halt_if_compare": "is",
"entity_id": "sensor.bmgl01_event_p8ec00_motion_illumination",
"state_type": "str",
"blockInputOverrides": false,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "entityState"
}
],
"for": "0",
"forType": "num",
"forUnits": "minutes",
"override_topic": false,
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"x": 630,
"y": 120,
"wires": [
[
"738747e3a7efec0f"
],
[]
]
},
{
"id": "9443b75c056bec68",
"type": "server-state-changed",
"z": "315241eea03eb53d",
"name": "人员移动事件",
"server": "1322427d28179114",
"version": 4,
"exposeToHomeAssistant": false,
"haConfig": [
{
"property": "name",
"value": ""
},
{
"property": "icon",
"value": ""
}
],
"entityidfilter": "sensor.bmgl01_event_p8ec00_motion",
"entityidfiltertype": "exact",
"outputinitially": false,
"state_type": "str",
"haltifstate": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 1,
"output_only_on_state_change": false,
"for": "0",
"forType": "num",
"forUnits": "minutes",
"ignorePrevStateNull": false,
"ignorePrevStateUnknown": false,
"ignorePrevStateUnavailable": false,
"ignoreCurrentStateUnknown": false,
"ignoreCurrentStateUnavailable": false,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "entityState"
},
{
"property": "data",
"propertyType": "msg",
"value": "",
"valueType": "eventData"
},
{
"property": "topic",
"propertyType": "msg",
"value": "",
"valueType": "triggerId"
}
],
"x": 150,
"y": 160,
"wires": [
[
"c4630e517468b60c"
]
]
},
{
"id": "0402a48a73912b65",
"type": "ha-wait-until",
"z": "315241eea03eb53d",
"name": "延时等待",
"server": "1322427d28179114",
"version": 2,
"outputs": 2,
"entityId": "sensor.bmgl01_event_p8ec00_motion",
"entityIdFilterType": "exact",
"property": "payload",
"comparator": "is",
"value": "123",
"valueType": "str",
"timeout": "35",
"timeoutType": "num",
"timeoutUnits": "seconds",
"checkCurrentState": true,
"blockInputOverrides": true,
"outputProperties": [],
"entityLocation": "data",
"entityLocationType": "none",
"x": 1020,
"y": 220,
"wires": [
[],
[
"afc0b42dc7a05828"
]
]
},
{
"id": "c4630e517468b60c",
"type": "api-current-state",
"z": "315241eea03eb53d",
"name": "判断玄关灯",
"server": "1322427d28179114",
"version": 3,
"outputs": 2,
"halt_if": "off",
"halt_if_type": "str",
"halt_if_compare": "is",
"entity_id": "switch.isa_kg03hl_dd9c_left_switch_service",
"state_type": "str",
"blockInputOverrides": false,
"outputProperties": [],
"for": "0",
"forType": "num",
"forUnits": "minutes",
"override_topic": false,
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"x": 330,
"y": 160,
"wires": [
[
"019adaac41bf4c4e"
],
[
"a7ef649c114660e0"
]
]
},
{
"id": "44deb376f221f035",
"type": "function",
"z": "315241eea03eb53d",
"name": "设置变量",
"func": "context.set (\"kaideng\",true);\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1000,
"y": 120,
"wires": [
[
"0402a48a73912b65"
]
]
},
{
"id": "9740e457f5ba2665",
"type": "function",
"z": "315241eea03eb53d",
"name": "设置变量",
"func": "context.set (\"kaideng\",false);\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1360,
"y": 220,
"wires": [
[]
]
},
{
"id": "a7ef649c114660e0",
"type": "function",
"z": "315241eea03eb53d",
"name": "判断变量",
"func": "if( context.get (\"kaideng\")==true){return msg;}\nreturn null;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 620,
"y": 200,
"wires": [
[
"0402a48a73912b65"
]
]
},
{
"id": "1322427d28179114",
"type": "server",
"name": "Home Assistant",
"addon": false,
"rejectUnauthorizedCerts": true,
"ha_boolean": "",
"connectionDelay": false,
"cacheJson": false,
"heartbeat": false,
"heartbeatInterval": "",
"statusSeparator": "",
"enableGlobalContextStore": false
}
]
导出的.txt.pdf
(7.87 KB, 下载次数: 12)
去掉.pdf
|
|