[{"id":"8156e53a.b080a8","type":"tab","label":"流程 1","disabled":false,"info":""},{"id":"1fd79b2c.e293f5","type":"change","z":"8156e53a.b080a8","name":"处理payload","rules":[{"t":"change","p":"payload","pt":"msg","from":"on","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"off","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":220,"wires":[["f7b67acc.6ff828"]]},{"id":"864614cd.6053b8","type":"server-state-changed","z":"8156e53a.b080a8","name":"空净灯光变化","server":"4fe495c1.9b0e5c","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"switch.xiaomi_ap_light","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"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":"topic","propertyType":"msg","value":"0/On","valueType":"str"}],"x":130,"y":160,"wires":[["1fd79b2c.e293f5"]]},{"id":"fa321585.6b3b28","type":"server-state-changed","z":"8156e53a.b080a8","name":"空净童锁变化","server":"4fe495c1.9b0e5c","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"switch.xiaomi_ap_childlock","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"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":"topic","propertyType":"msg","value":"1/On","valueType":"str"}],"x":130,"y":220,"wires":[["1fd79b2c.e293f5"]]},{"id":"a7095fc8.547da","type":"server-state-changed","z":"8156e53a.b080a8","name":"空净提示音变化","server":"4fe495c1.9b0e5c","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"switch.xiaomi_ap_buzzer","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"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":"topic","propertyType":"msg","value":"2/On","valueType":"str"}],"x":140,"y":280,"wires":[["1fd79b2c.e293f5"]]},{"id":"f7b67acc.6ff828","type":"redmatic-homekit-universal","z":"8156e53a.b080a8","bridgeConfig":"a3e56d23.6b363","name":"空气净化器","services":[{"subtype":"0","service":"Switch","name":"灯"},{"subtype":"1","service":"Switch","name":"儿童锁"},{"subtype":"2","service":"Switch","name":"提示音"}],"x":470,"y":220,"wires":[["3fe5063a.474c3a","ada752fa.410d3"]]},{"id":"335014cc.a7f52c","type":"api-call-service","z":"8156e53a.b080a8","name":"打开空净灯光","server":"4fe495c1.9b0e5c","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.xiaomi_ap_light","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1020,"y":120,"wires":[[]]},{"id":"3fe5063a.474c3a","type":"switch","z":"8156e53a.b080a8","name":"判断什么开关","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"0/On","vt":"str"},{"t":"eq","v":"1/On","vt":"str"},{"t":"eq","v":"2/On","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":640,"y":220,"wires":[["d1db3940.ed04b8"],["f9fd95b1.3db168"],["a30a1c2c.1d368"]]},{"id":"d1db3940.ed04b8","type":"switch","z":"8156e53a.b080a8","name":"状态","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"true","vt":"jsonata"},{"t":"eq","v":"false","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":2,"x":830,"y":160,"wires":[["335014cc.a7f52c"],["ac7f5960.6f3e88"]]},{"id":"ac7f5960.6f3e88","type":"api-call-service","z":"8156e53a.b080a8","name":"关闭空净灯光","server":"4fe495c1.9b0e5c","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.xiaomi_ap_light","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1020,"y":180,"wires":[[]]},{"id":"203c6735.411be8","type":"api-call-service","z":"8156e53a.b080a8","name":"打开空净童锁","server":"4fe495c1.9b0e5c","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.xiaomi_ap_childlock","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1020,"y":240,"wires":[[]]},{"id":"f9fd95b1.3db168","type":"switch","z":"8156e53a.b080a8","name":"状态","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"true","vt":"jsonata"},{"t":"eq","v":"false","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":2,"x":830,"y":280,"wires":[["203c6735.411be8"],["4cb01bb.1074be4"]]},{"id":"4cb01bb.1074be4","type":"api-call-service","z":"8156e53a.b080a8","name":"关闭空净童锁","server":"4fe495c1.9b0e5c","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.xiaomi_ap_childlock","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1020,"y":300,"wires":[[]]},{"id":"b221669e.7cf6a8","type":"api-call-service","z":"8156e53a.b080a8","name":"打开空净提示音","server":"4fe495c1.9b0e5c","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.xiaomi_ap_buzzer","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1020,"y":360,"wires":[[]]},{"id":"a30a1c2c.1d368","type":"switch","z":"8156e53a.b080a8","name":"状态","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"true","vt":"jsonata"},{"t":"eq","v":"false","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":2,"x":830,"y":400,"wires":[["b221669e.7cf6a8"],["e9d55ff2.12869"]]},{"id":"e9d55ff2.12869","type":"api-call-service","z":"8156e53a.b080a8","name":"关闭空净提示音","server":"4fe495c1.9b0e5c","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.xiaomi_ap_buzzer","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1020,"y":420,"wires":[[]]},{"id":"ada752fa.410d3","type":"debug","z":"8156e53a.b080a8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":600,"y":380,"wires":[]},{"id":"4fe495c1.9b0e5c","type":"server","name":"Home Assistant","version":1,"legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true},{"id":"a3e56d23.6b363","type":"redmatic-homekit-bridge","name":"RedMatic Bridge","username":"CC:22:3D:5D:86:35","pincode":"590-41-447","port":"51820"}]