- 积分
- 276
- 金钱
- 241
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 276
- 金钱
- 241
- HASS币
- 0
|
发表于 2024-9-9 19:57:14
|
显示全部楼层
[
{
"id": "328a3bb306039caa",
"type": "api-call-service",
"z": "724075cff78956a2",
"name": "低速",
"server": "65bef38af2beb021",
"version": 5,
"debugenabled": false,
"domain": "climate",
"service": "set_fan_mode",
"areaId": [],
"deviceId": [
"744e40fa7fbbe9747ea4b49350ff8e45"
],
"entityId": [],
"data": "{\"fan_mode\":\"low\"}",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 930,
"y": 260,
"wires": [
[]
]
},
{
"id": "e9a014f5cecee429",
"type": "api-call-service",
"z": "724075cff78956a2",
"name": "高速",
"server": "65bef38af2beb021",
"version": 5,
"debugenabled": false,
"domain": "climate",
"service": "set_fan_mode",
"areaId": [],
"deviceId": [
"744e40fa7fbbe9747ea4b49350ff8e45"
],
"entityId": [],
"data": "{\"fan_mode\":\"high\"}",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 930,
"y": 180,
"wires": [
[]
]
},
{
"id": "882a473e7d6f7c01",
"type": "server-state-changed",
"z": "724075cff78956a2",
"name": "1F客厅",
"server": "65bef38af2beb021",
"version": 5,
"outputs": 1,
"exposeAsEntityConfig": "",
"entityId": "sensor.cgllc_s1_1f02_temperature",
"entityIdType": "exact",
"outputInitially": true,
"stateType": "str",
"ifState": "",
"ifStateType": "num",
"ifStateOperator": "is",
"outputOnlyOnStateChange": true,
"for": "0",
"forType": "num",
"forUnits": "minutes",
"ignorePrevStateNull": false,
"ignorePrevStateUnknown": false,
"ignorePrevStateUnavailable": false,
"ignoreCurrentStateUnknown": false,
"ignoreCurrentStateUnavailable": false,
"outputProperties": [
{
"property": "qingpingtemp",
"propertyType": "msg",
"value": "",
"valueType": "entityState"
}
],
"x": 170,
"y": 220,
"wires": [
[
"ec43b79841b5deef"
]
]
},
{
"id": "ec43b79841b5deef",
"type": "api-current-state",
"z": "724075cff78956a2",
"name": "面板",
"server": "65bef38af2beb021",
"version": 3,
"outputs": 2,
"halt_if": "off",
"halt_if_type": "str",
"halt_if_compare": "is_not",
"entity_id": "climate.cubee_th125t_ce56_thermostat",
"state_type": "str",
"blockInputOverrides": false,
"outputProperties": [
{
"property": "mianban",
"propertyType": "msg",
"value": "",
"valueType": "entity"
}
],
"for": "0",
"forType": "num",
"forUnits": "minutes",
"override_topic": false,
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"x": 290,
"y": 220,
"wires": [
[
"805a5c95ff0fcc47"
],
[]
]
},
{
"id": "858062d1d825eb01",
"type": "function",
"z": "724075cff78956a2",
"name": "function 3",
"func": "msg.payload = (msg.qingpingtemp - msg.mianban.attributes.temperature)\nreturn msg",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 680,
"y": 220,
"wires": [
[
"fca4d720b9742ea0"
]
]
},
{
"id": "fca4d720b9742ea0",
"type": "switch",
"z": "724075cff78956a2",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "gt",
"v": "2.6",
"vt": "num"
},
{
"t": "btwn",
"v": "2.5",
"vt": "num",
"v2": "1.6",
"v2t": "num"
},
{
"t": "lte",
"v": "1.5",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 3,
"x": 810,
"y": 220,
"wires": [
[
"e9a014f5cecee429"
],
[
"395cdeefab7edd60"
],
[
"328a3bb306039caa"
]
]
},
{
"id": "395cdeefab7edd60",
"type": "api-call-service",
"z": "724075cff78956a2",
"name": "中速",
"server": "65bef38af2beb021",
"version": 5,
"debugenabled": false,
"domain": "climate",
"service": "set_fan_mode",
"areaId": [],
"deviceId": [
"744e40fa7fbbe9747ea4b49350ff8e45"
],
"entityId": [],
"data": "{\"fan_mode\":\"medium\"}",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 930,
"y": 220,
"wires": [
[]
]
},
{
"id": "b788000279de62fa",
"type": "api-call-service",
"z": "724075cff78956a2",
"name": "制冷2",
"server": "65bef38af2beb021",
"version": 5,
"debugenabled": false,
"domain": "climate",
"service": "set_hvac_mode",
"areaId": [],
"deviceId": [],
"entityId": [
"climate.cubee_th125t_ce56_thermostat"
],
"data": "{\"hvac_mode\":\"cool\"}",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 550,
"y": 200,
"wires": [
[
"858062d1d825eb01"
]
]
},
{
"id": "8e031ebf1cac58d2",
"type": "api-call-service",
"z": "724075cff78956a2",
"name": "停止2",
"server": "65bef38af2beb021",
"version": 5,
"debugenabled": false,
"domain": "climate",
"service": "set_hvac_mode",
"areaId": [],
"deviceId": [],
"entityId": [
"climate.cubee_th125t_ce56_thermostat"
],
"data": "{\"hvac_mode\":\"heat\"}",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 550,
"y": 240,
"wires": [
[]
]
},
{
"id": "805a5c95ff0fcc47",
"type": "switch",
"z": "724075cff78956a2",
"name": "温度阈值",
"property": "qingpingtemp",
"propertyType": "msg",
"rules": [
{
"t": "gte",
"v": "(msg.mianban.attributes.temperature)+1",
"vt": "jsonata"
},
{
"t": "lte",
"v": "mianban.attributes.temperature",
"vt": "msg"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 420,
"y": 220,
"wires": [
[
"b788000279de62fa"
],
[
"8e031ebf1cac58d2"
]
]
},
{
"id": "65bef38af2beb021",
"type": "server",
"name": "Home Assistant",
"version": 5,
"addon": false,
"rejectUnauthorizedCerts": false,
"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
}
] |
|