[{"id":"e135227831d39417","type":"tab","label":"流程 1","disabled":false,"info":"","env":[]},{"id":"afb2edb4e49e233b","type":"server-state-changed","z":"e135227831d39417","name":"热水器","server":"fb000ea.deb91f","version":6,"outputs":2,"exposeAsEntityConfig":"","entities":{"entity":["sensor.re_shui_qi_power"],"substring":[],"regex":[]},"outputInitially":false,"stateType":"num","ifState":"30","ifStateType":"num","ifStateOperator":"gt","outputOnlyOnStateChange":false,"for":"","forType":"num","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"{"device2": "on"}","valueType":"str"},{"property":"topic","propertyType":"msg","value":"device2","valueType":"str"}],"x":190,"y":420,"wires":[["3d85ebe124486fa3"],[]]},{"id":"3d85ebe124486fa3","type":"join","z":"e135227831d39417","name":"","mode":"custom","build":"merged","property":"payload","propertyType":"msg","key":"topic","joiner":"","joinerType":"str","useparts":true,"accumulate":false,"timeout":"900","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":490,"y":390,"wires":[["84b529e8ec823540"]]},{"id":"84b529e8ec823540","type":"function","z":"e135227831d39417","name":"Check conditions","func":"const conditions = [\n msg.payload.device1 === 'on',\n msg.payload.device2 > 30, // 热水器功率大于30\n msg.payload.device3 === 'on'\n];\nif (conditions.every(cond => cond)) {\n return msg; // 满足条件,继续流程\n}\nreturn null; // 不满足条件,不触发","outputs":1,"x":690,"y":390,"wires":[["961e9fe4c45a9270"]]},{"id":"961e9fe4c45a9270","type":"api-call-service","z":"e135227831d39417","name":"开主卫淋浴灯","server":"fb000ea.deb91f","version":7,"action":"switch.turn_on","entityId":["switch.main_bathroom_shower_light"],"x":940,"y":390,"wires":[[]]},{"id":"885ab1b8e1bb4c6f","type":"server-state-changed","z":"e135227831d39417","name":"镜灯","server":"fb000ea.deb91f","version":6,"outputs":2,"exposeAsEntityConfig":"","entities":{"entity":["switch.zhu_wei_ling_huo_l1"],"substring":[],"regex":[]},"outputInitially":false,"stateType":"str","ifState":"on","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":false,"for":"","forType":"num","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"{"device1": "on"}","valueType":"str"},{"property":"topic","propertyType":"msg","value":"device1","valueType":"str"}],"x":190,"y":340,"wires":[["3d85ebe124486fa3"],[]]},{"id":"fb000ea.deb91f","type":"server","name":"kaka Home Assistant","version":5,"addon":false,"rejectUnauthorizedCerts":false,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":false,"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,"info":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI3NGM3ZmE5M2IyNzI0NGYxOTBlM2ZkNjcwMDk5MThjZSIsImlhdCI6MTY1NzY5MjkyNiwiZXhwIjoxOTczMDUyOTI2fQ.AHeeEVxim6oCelpqFbUVTLnEaN1b-r9Li2-bn96Ce9E"}]