|
发表于 2023-9-6 17:27:15
|
显示全部楼层
[{"id":"6e11a160.6d6be","type":"api-current-state","z":"f5950339.f19eb","name":"1","server":"19170cf5.155303","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"switch.3dda_yin_ji","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":230,"y":600,"wires":[["2c1c2fbe.6e96b"]]},{"id":"cb413974.57de98","type":"inject","z":"f5950339.f19eb","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":90,"y":600,"wires":[["6e11a160.6d6be"]]},{"id":"136cad8f.c63692","type":"debug","z":"f5950339.f19eb","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":730,"y":720,"wires":[]},{"id":"2c1c2fbe.6e96b","type":"change","z":"f5950339.f19eb","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"state1","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":410,"y":600,"wires":[["1779c547.64fceb"]]},{"id":"1779c547.64fceb","type":"api-current-state","z":"f5950339.f19eb","name":"2","server":"19170cf5.155303","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"switch.zhu_wo_dian_feng_shan","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":230,"y":660,"wires":[["fb97adc9.a3515"]]},{"id":"1d6752b6.771ebd","type":"api-current-state","z":"f5950339.f19eb","name":"3","server":"19170cf5.155303","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"switch.chuang_tou_cha_zuo","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":230,"y":720,"wires":[["f6b17eac.be82f"]]},{"id":"fb97adc9.a3515","type":"change","z":"f5950339.f19eb","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"state2","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":410,"y":660,"wires":[["1d6752b6.771ebd"]]},{"id":"f6b17eac.be82f","type":"change","z":"f5950339.f19eb","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"state3","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":410,"y":720,"wires":[["5b059ca6.aa2474"]]},{"id":"5b059ca6.aa2474","type":"function","z":"f5950339.f19eb","name":"","func":"if(flow.get('state1') == 'on' && flow.get('state2') == 'on' && flow.get('state3') == 'on'){\n msg.payload = '你想发送的东西'\n return msg;\n}else{\n msg.state1 = flow.get('state1')\n msg.state2 = flow.get('state2')\n msg.state3 = flow.get('state3')\n return msg\n}\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":590,"y":720,"wires":[["136cad8f.c63692"]]},{"id":"19170cf5.155303","type":"server","name":"Home Assistant"}][{"id":"6e11a160.6d6be","type":"api-current-state","z":"f5950339.f19eb","name":"1","server":"19170cf5.155303","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"switch.3dda_yin_ji","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":230,"y":600,"wires":[["2c1c2fbe.6e96b"]]},{"id":"cb413974.57de98","type":"inject","z":"f5950339.f19eb","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":90,"y":600,"wires":[["6e11a160.6d6be"]]},{"id":"136cad8f.c63692","type":"debug","z":"f5950339.f19eb","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":730,"y":720,"wires":[]},{"id":"2c1c2fbe.6e96b","type":"change","z":"f5950339.f19eb","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"state1","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":410,"y":600,"wires":[["1779c547.64fceb"]]},{"id":"1779c547.64fceb","type":"api-current-state","z":"f5950339.f19eb","name":"2","server":"19170cf5.155303","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"switch.zhu_wo_dian_feng_shan","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":230,"y":660,"wires":[["fb97adc9.a3515"]]},{"id":"1d6752b6.771ebd","type":"api-current-state","z":"f5950339.f19eb","name":"3","server":"19170cf5.155303","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"switch.chuang_tou_cha_zuo","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":230,"y":720,"wires":[["f6b17eac.be82f"]]},{"id":"fb97adc9.a3515","type":"change","z":"f5950339.f19eb","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"state2","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":410,"y":660,"wires":[["1d6752b6.771ebd"]]},{"id":"f6b17eac.be82f","type":"change","z":"f5950339.f19eb","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"state3","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":410,"y":720,"wires":[["5b059ca6.aa2474"]]},{"id":"5b059ca6.aa2474","type":"function","z":"f5950339.f19eb","name":"","func":"if(flow.get('state1') == 'on' && flow.get('state2') == 'on' && flow.get('state3') == 'on'){\n msg.payload = '你想发送的东西'\n return msg;\n}else{\n msg.state1 = flow.get('state1')\n msg.state2 = flow.get('state2')\n msg.state3 = flow.get('state3')\n return msg\n}\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":590,"y":720,"wires":[["136cad8f.c63692"]]},{"id":"19170cf5.155303","type":"server","name":"Home Assistant"}] |
|