- 积分
- 276
- 金钱
- 252
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 276
- 金钱
- 252
- HASS币
- 0
|
发表于 2024-4-29 12:39:25
|
显示全部楼层
[
{
"id": "af54bc4aac4eaa99",
"type": "switch",
"z": "524fd291281a4058",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "on",
"vt": "str"
},
{
"t": "eq",
"v": "off",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 270,
"y": 260,
"wires": [
[
"c0e5494756cea2b5"
],
[
"29707c1bf4ae40fc"
]
]
},
{
"id": "1572bcf5589e7b06",
"type": "server-state-changed",
"z": "524fd291281a4058",
"name": "客厅存在",
"server": "dc22e9ed00108105",
"version": 5,
"outputs": 1,
"exposeAsEntityConfig": "",
"entityId": "binary_sensor.unknown_still_target_2",
"entityIdType": "exact",
"outputInitially": false,
"stateType": "str",
"ifState": "",
"ifStateType": "str",
"ifStateOperator": "is",
"outputOnlyOnStateChange": 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": 100,
"y": 260,
"wires": [
[
"af54bc4aac4eaa99"
]
]
},
{
"id": "c0e5494756cea2b5",
"type": "api-current-state",
"z": "524fd291281a4058",
"name": "室内光照度",
"server": "dc22e9ed00108105",
"version": 3,
"outputs": 2,
"halt_if": "10",
"halt_if_type": "num",
"halt_if_compare": "lte",
"entity_id": "sensor.ke_ting_hong_wai_chuan_gan_qi_illuminance_lux",
"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": 770,
"y": 200,
"wires": [
[
"3611ff9203772f2b"
],
[]
]
},
{
"id": "3611ff9203772f2b",
"type": "time-switch",
"z": "524fd291281a4058",
"name": "",
"lat": "28.1821",
"lon": "113.1055",
"startTime": "09:00",
"endTime": "22:00",
"startOffset": 0,
"endOffset": 0,
"x": 950,
"y": 200,
"wires": [
[
"69bb695928bd5409"
],
[
"3e0d42523cb396b8"
]
]
},
{
"id": "69bb695928bd5409",
"type": "api-current-state",
"z": "524fd291281a4058",
"name": "温度",
"server": "dc22e9ed00108105",
"version": 3,
"outputs": 1,
"halt_if": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"entity_id": "sensor.cleargrass_dk1_a682_temperature_humidity_sensor",
"state_type": "str",
"blockInputOverrides": false,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "entityState"
},
{
"property": "data",
"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": 1130,
"y": 200,
"wires": [
[
"7fd57fcab85ce752"
]
]
},
{
"id": "7fd57fcab85ce752",
"type": "range",
"z": "524fd291281a4058",
"minin": "10",
"maxin": "30",
"minout": "350",
"maxout": "150",
"action": "scale",
"round": true,
"property": "payload",
"name": "",
"x": 1280,
"y": 200,
"wires": [
[
"9acbb18f2ebabcf8"
]
]
},
{
"id": "9acbb18f2ebabcf8",
"type": "api-call-service",
"z": "524fd291281a4058",
"name": "客厅灯日常",
"server": "dc22e9ed00108105",
"version": 5,
"debugenabled": false,
"domain": "light",
"service": "turn_on",
"areaId": [],
"deviceId": [],
"entityId": [
"light.tian_hua_deng_dai"
],
"data": "{\t \"brightness\": 255,\t \"color_temp\": msg.payload\t}",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 1470,
"y": 200,
"wires": [
[
"bed30ea4c416280c"
]
]
},
{
"id": "dc22e9ed00108105",
"type": "server",
"name": "Home Assistant",
"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": "at: ",
"statusYear": "hidden",
"statusMonth": "short",
"statusDay": "numeric",
"statusHourCycle": "h23",
"statusTimeFormat": "h:m",
"enableGlobalContextStore": true
}
] |
|