[{"id":"c840862b52305784","type":"api-current-state","z":"f7f2d3c3b9a5a56a","name":"床左人体传感器","server":"82097e214d37b9e6","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"binary_sensor.lu_mi_ren_ti_chuan_gan_qi_occupancy","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"chuangzuo","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":340,"y":280,"wires":[["fba1b5bea15df45c"]]},{"id":"fba1b5bea15df45c","type":"api-current-state","z":"f7f2d3c3b9a5a56a","name":"床右人体传感器","server":"82097e214d37b9e6","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"binary_sensor.lu_mi_ren_ti_chuan_gan_qi_chuang_you_occupancy","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"chuangyou","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":520,"y":280,"wires":[["3fbd872068cf3231"]]},{"id":"6a8dff3136cce887","type":"inject","z":"f7f2d3c3b9a5a56a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":190,"y":280,"wires":[["c840862b52305784"]]},{"id":"8aa6f2acc9eb4e8f","type":"debug","z":"f7f2d3c3b9a5a56a","name":"debug 29","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":860,"y":280,"wires":[]},{"id":"3fbd872068cf3231","type":"function","z":"f7f2d3c3b9a5a56a","name":"function 4","func":"var a = msg.chuangzuo\nvar b = msg.chuangyou\n\nif(a == "on" ){\n return { payload: "youren" }\n} else if(b == "on" ){\n return { payload: "youren" }\n}else{\n return { payload: "wuren" }\n}\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":700,"y":280,"wires":[["8aa6f2acc9eb4e8f"]]},{"id":"82097e214d37b9e6","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":": ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"default","statusTimeFormat":"h:m","enableGlobalContextStore":false}]