『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 5594|回复: 14

[流程系列] node-red 进出实现的求助。

[复制链接]

26

主题

552

帖子

1955

积分

金牌会员

Rank: 6Rank: 6

积分
1955
金钱
1398
HASS币
40
发表于 2019-7-27 00:26:49 | 显示全部楼层 |阅读模式
捣鼓了一个晚上,还是跟yaml 写一样,冲突了。就是想不通,求大神支招。

一个门磁,一个感应开关。

进入:门打开后开灯,门关了,到了感应器关灯。
出去:感应器有人开灯,感应器无人,出门后关灯。

我捣鼓的思路了,门打开后看灯状态后面忽略,门关后因为不知道何时人才能到达感应器,所以启动2分钟每隔0.5秒循环去查看感应器状态,后面忽略。

但是2个都在循环内就冲突了。开门后只需要检测到一次感应器即可跳出循环。请教用什么来实现?


前天弄好了node-red,想把yaml改过来。脑瓜子嗡嗡的!!


sx.PNG

[{"id":"2cabf1.08291c1","type":"server-state-changed","z":"a5e1c34c.debfe8","name":"门磁状态","server":"1d7a7351.b1125d","version":1,"entityidfilter":"binary_sensor.menci1","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":100,"y":100,"wires":[["acda8d5f.1e0608"],["1b7e1aa.c3fd4e5"]]},{"id":"c655a173.d9ce58","type":"delay","z":"a5e1c34c.debfe8","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":460,"y":180,"wires":[["5813018c.e08b68"]]},{"id":"5813018c.e08b68","type":"api-call-service","z":"a5e1c34c.debfe8","name":"开灯","server":"1d7a7351.b1125d","service_domain":"switch","service":"turn_on","data":"{"entity_id":"switch.didi"}","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":650,"y":160,"wires":[[]]},{"id":"8d33c6ba.4d388","type":"api-current-state","z":"a5e1c34c.debfe8","name":"感应器状态","server":"1d7a7351.b1125d","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"binary_sensor.pir1","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":570,"y":80,"wires":[["a097e556.a4f9"],[]]},{"id":"acda8d5f.1e0608","type":"looptimer","z":"a5e1c34c.debfe8","duration":"0.5","units":"Second","maxloops":"120","maxtimeout":"2","maxtimeoutunits":"Minute","name":"循环","x":290,"y":80,"wires":[["8d33c6ba.4d388"],[]]},{"id":"c256e984.e8bba8","type":"server-state-changed","z":"a5e1c34c.debfe8","name":"感应器状态","server":"1d7a7351.b1125d","version":1,"entityidfilter":"binary_sensor.pir1","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":100,"y":440,"wires":[["5893467.e817a38"],["7341cab7.22604c"]]},{"id":"404286d2.4be838","type":"api-call-service","z":"a5e1c34c.debfe8","name":"关灯","server":"1d7a7351.b1125d","service_domain":"switch","service":"turn_off","data":"{"entity_id":"switch.didi"}","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":910,"y":80,"wires":[[]]},{"id":"a097e556.a4f9","type":"delay","z":"a5e1c34c.debfe8","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":740,"y":80,"wires":[["404286d2.4be838"]]},{"id":"7341cab7.22604c","type":"looptimer","z":"a5e1c34c.debfe8","duration":"0.5","units":"Second","maxloops":"120","maxtimeout":"2","maxtimeoutunits":"Minute","name":"循环","x":230,"y":360,"wires":[["c65dbe50.1992f8"],[]]},{"id":"c65dbe50.1992f8","type":"api-current-state","z":"a5e1c34c.debfe8","name":"门磁状态","server":"1d7a7351.b1125d","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"binary_sensor.menci1","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":480,"y":380,"wires":[[],["384b079e.45d0b"]]},{"id":"e58378ce.9276a8","type":"delay","z":"a5e1c34c.debfe8","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":420,"y":480,"wires":[["46391d28.0e0734"]]},{"id":"46391d28.0e0734","type":"api-call-service","z":"a5e1c34c.debfe8","name":"开灯","server":"1d7a7351.b1125d","service_domain":"switch","service":"turn_on","data":"{"entity_id":"switch.didi"}","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":630,"y":480,"wires":[[]]},{"id":"5893467.e817a38","type":"api-current-state","z":"a5e1c34c.debfe8","name":"灯状态","server":"1d7a7351.b1125d","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"switch.didi","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":250,"y":480,"wires":[[],["e58378ce.9276a8"]]},{"id":"384b079e.45d0b","type":"delay","z":"a5e1c34c.debfe8","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":620,"y":360,"wires":[["f13afb5a.58e108"]]},{"id":"1b7e1aa.c3fd4e5","type":"api-current-state","z":"a5e1c34c.debfe8","name":"灯状态","server":"1d7a7351.b1125d","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"switch.didi","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":270,"y":180,"wires":[[],["c655a173.d9ce58"]]},{"id":"f13afb5a.58e108","type":"api-call-service","z":"a5e1c34c.debfe8","name":"关灯","server":"1d7a7351.b1125d","service_domain":"switch","service":"turn_off","data":"{"entity_id":"switch.didi"}","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":810,"y":360,"wires":[[]]},{"id":"1d7a7351.b1125d","type":"server","z":"","name":"Home Assistant(dgmax)","legacy":false,"hassio":true,"rejectUnauthorizedCerts":true,"ha_boolean":"http://hassio/homeassistant","connectionDelay":true}]



回复

使用道具 举报

0

主题

42

帖子

739

积分

高级会员

Rank: 4

积分
739
金钱
697
HASS币
0
发表于 2019-7-27 13:50:05 | 显示全部楼层
首先我认为你表达的设计不够严谨。(设备可能误触,而意外导致灯保持开启)

其次本人小白,不知道怎么跳出循环,但我觉得应该尽量避免局部循环,可以利用变量实现各种效果。

然后如果让我利用你的设备,套用你的想法去设计,我或许使用以下方法:

QQ截图201907271315260.png

[{"id":"81157761.3a9db8","type":"tab","label":"流程1","disabled":false,"info":""},{"id":"e512cf6b.2d07b","type":"inject","z":"81157761.3a9db8","name":"","topic":"","payload":"","payloadType":"date","repeat":"1","crontab":"","once":false,"onceDelay":0.1,"x":120,"y":60,"wires":[["f11ac2f.6e3e34"]]},{"id":"f11ac2f.6e3e34","type":"link out","z":"81157761.3a9db8","name":"总刷新","links":["e890d1fa.afd1a"],"x":235,"y":60,"wires":[]},{"id":"4e35efa8.1574f","type":"comment","z":"81157761.3a9db8","name":"总的刷新(1s)","info":"","x":120,"y":20,"wires":[]},{"id":"3689c60b.b02fda","type":"comment","z":"81157761.3a9db8","name":"新的刷新","info":"","x":100,"y":120,"wires":[]},{"id":"e890d1fa.afd1a","type":"link in","z":"81157761.3a9db8","name":"新设备的刷新","links":["f11ac2f.6e3e34"],"x":55,"y":160,"wires":[["4ed21b56.981a64"]]},{"id":"ed9174a8.04bec8","type":"api-current-state","z":"81157761.3a9db8","name":"","server":"a8e8aa96.e5afd8","outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is_not","override_topic":false,"entity_id":"门","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":670,"y":160,"wires":[["19e9b199.8bbd8e"],["6f1103fc.3620ec"]]},{"id":"45aebd60.ddc5e4","type":"comment","z":"81157761.3a9db8","name":"门 为 on","info":"","x":640,"y":120,"wires":[]},{"id":"c0bae111.cd232","type":"comment","z":"81157761.3a9db8","name":"门 为 off","info":"","x":640,"y":200,"wires":[]},{"id":"4ed21b56.981a64","type":"api-current-state","z":"81157761.3a9db8","name":"","server":"a8e8aa96.e5afd8","outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is_not","override_topic":false,"entity_id":"灯","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":270,"y":160,"wires":[["bac509b.2a7e6f8"],["fe669f86.cb37b"]]},{"id":"b0cdf7c7.4a77a8","type":"comment","z":"81157761.3a9db8","name":"灯 为 off","info":"","x":240,"y":120,"wires":[]},{"id":"cf95d0e1.1b742","type":"comment","z":"81157761.3a9db8","name":"灯 为 on","info":"","x":240,"y":200,"wires":[]},{"id":"bac509b.2a7e6f8","type":"time-range-switch","z":"81157761.3a9db8","name":"","lat":"","lon":"","startTime":"17:00","endTime":"07:00","startOffset":0,"endOffset":0,"x":470,"y":160,"wires":[["ed9174a8.04bec8"],[]]},{"id":"7ef9057a.2b01ac","type":"comment","z":"81157761.3a9db8","name":"时间筛选","info":"","x":460,"y":120,"wires":[]},{"id":"99ac6b02.7b71d8","type":"switch","z":"81157761.3a9db8","name":"global.door_light == on","property":"door_light","propertyType":"global","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"neq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":1200,"y":260,"wires":[["3f48667e.d3b4fa"],["dfad14bc.c6c788"]]},{"id":"f6d49d11.f9166","type":"api-call-service","z":"81157761.3a9db8","name":"","server":"a8e8aa96.e5afd8","service_domain":"","service":"","data":"{"entity_id":"灯"}","mergecontext":"","output_location":"payload","output_location_type":"msg","x":890,"y":240,"wires":[[]]},{"id":"bdd7a402.4961e8","type":"comment","z":"81157761.3a9db8","name":"开 灯","info":"","x":890,"y":200,"wires":[]},{"id":"6629732a.171b5c","type":"comment","z":"81157761.3a9db8","name":"变量door_light 为on","info":"","x":1190,"y":220,"wires":[]},{"id":"fe669f86.cb37b","type":"api-current-state","z":"81157761.3a9db8","name":"","server":"a8e8aa96.e5afd8","outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is_not","override_topic":false,"entity_id":"传感器","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":680,"y":360,"wires":[["84178cee.2ad4"],["c42181cc.65889"]]},{"id":"5d00af59.f82cf","type":"comment","z":"81157761.3a9db8","name":"传感器 为 on","info":"","x":650,"y":320,"wires":[]},{"id":"71624100.53566","type":"comment","z":"81157761.3a9db8","name":"传感器 为 off","info":"","x":650,"y":400,"wires":[]},{"id":"c42181cc.65889","type":"switch","z":"81157761.3a9db8","name":"light_time > 0 / <= 0","property":"light_time","propertyType":"global","rules":[{"t":"gt","v":"0","vt":"num"},{"t":"lte","v":"0","vt":"num"}],"checkall":"false","repair":false,"outputs":2,"x":930,"y":400,"wires":[["d0ed30ed.f5041"],["e1bf2832.6b3858"]]},{"id":"d0ed30ed.f5041","type":"function","z":"81157761.3a9db8","name":"light_time -= 1","func":"global.set('light_time',global.get('light_time','store')-1,'store');\n\nreturn msg;","outputs":1,"noerr":0,"x":1180,"y":380,"wires":[[]]},{"id":"dfb8f11f.ad3e2","type":"comment","z":"81157761.3a9db8","name":"变量LightTime <= 0","info":"","x":930,"y":440,"wires":[]},{"id":"3214b24b.59c78e","type":"comment","z":"81157761.3a9db8","name":"变量LightTime - 1","info":"","x":1180,"y":340,"wires":[]},{"id":"5b28e421.bd9a8c","type":"api-call-service","z":"81157761.3a9db8","name":"","server":"a8e8aa96.e5afd8","service_domain":"","service":"","data":"{"entity_id":"灯"}","mergecontext":"","output_location":"payload","output_location_type":"msg","x":1650,"y":460,"wires":[[]]},{"id":"7c9127e0.db5618","type":"comment","z":"81157761.3a9db8","name":"关 灯","info":"","x":1650,"y":420,"wires":[]},{"id":"1ac29994.15d396","type":"comment","z":"81157761.3a9db8","name":"变量LightTime > 0","info":"","x":930,"y":360,"wires":[]},{"id":"e1bf2832.6b3858","type":"change","z":"81157761.3a9db8","name":"global.sensor_light = off","rules":[{"t":"set","p":"sensor_light","pt":"global","to":"off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1210,"y":460,"wires":[["3d156532.0014ca"]],"icon":"node-red/hash.png"},{"id":"9720be68.6ddc","type":"comment","z":"81157761.3a9db8","name":"变量sensor_light 变 off","info":"","x":1200,"y":420,"wires":[]},{"id":"4abe06df.fdfa08","type":"change","z":"81157761.3a9db8","name":"global.door_light = on","rules":[{"t":"set","p":"door_light","pt":"global","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1200,"y":160,"wires":[["7585db9b.eab7b4"]],"icon":"node-red/hash.png"},{"id":"ea5833bf.dfef3","type":"comment","z":"81157761.3a9db8","name":"变量door_light 变 on","info":"","x":1190,"y":120,"wires":[]},{"id":"3f48667e.d3b4fa","type":"change","z":"81157761.3a9db8","name":"light_time = 5","rules":[{"t":"set","p":"light_time","pt":"global","to":"5","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1440,"y":260,"wires":[[]],"icon":"node-red/hash.png"},{"id":"4bced12.82bfe3","type":"comment","z":"81157761.3a9db8","name":"变量LightTime 为 5(s)","info":"","x":1460,"y":220,"wires":[]},{"id":"dfad14bc.c6c788","type":"change","z":"81157761.3a9db8","name":"light_time = 60","rules":[{"t":"set","p":"light_time","pt":"global","to":"60","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1440,"y":340,"wires":[[]],"icon":"node-red/hash.png"},{"id":"dda7d1b2.54461","type":"comment","z":"81157761.3a9db8","name":"变量LightTime 为 60(s)","info":"","x":1460,"y":300,"wires":[]},{"id":"3d156532.0014ca","type":"change","z":"81157761.3a9db8","name":"global.door_light = off","rules":[{"t":"set","p":"door_light","pt":"global","to":"off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1460,"y":460,"wires":[["5b28e421.bd9a8c","6ce82b5.681afd4"]],"icon":"node-red/hash.png"},{"id":"b2187818.5d0118","type":"comment","z":"81157761.3a9db8","name":"变量door_light 变 off","info":"","x":1450,"y":420,"wires":[]},{"id":"84178cee.2ad4","type":"change","z":"81157761.3a9db8","name":"global.sensor_light = on","rules":[{"t":"set","p":"sensor_light","pt":"global","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":950,"y":320,"wires":[["99ac6b02.7b71d8"]],"icon":"node-red/hash.png"},{"id":"90569a3.51be668","type":"comment","z":"81157761.3a9db8","name":"变量sensor_light 变 on","info":"","x":940,"y":280,"wires":[]},{"id":"19e9b199.8bbd8e","type":"switch","z":"81157761.3a9db8","name":"global.sensor_light != on","property":"sensor_light","propertyType":"global","rules":[{"t":"neq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":950,"y":160,"wires":[["4abe06df.fdfa08"]]},{"id":"7ff0092e.3c3088","type":"comment","z":"81157761.3a9db8","name":"变量sensor_light 非on (为off)","info":"","x":960,"y":120,"wires":[]},{"id":"262d3bfb.a2c184","type":"comment","z":"81157761.3a9db8","name":"变量door_light 非on","info":"","x":1190,"y":300,"wires":[]},{"id":"7585db9b.eab7b4","type":"change","z":"81157761.3a9db8","name":"light_time = 300","rules":[{"t":"set","p":"light_time","pt":"global","to":"300","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1440,"y":160,"wires":[["f6d49d11.f9166"]],"icon":"node-red/hash.png"},{"id":"adac99b9.8c71b8","type":"comment","z":"81157761.3a9db8","name":"变量LightTime 为 300(s)","info":"","x":1460,"y":120,"wires":[]},{"id":"9adc81b6.1c8d","type":"comment","z":"81157761.3a9db8","name":"传感器 为 on","info":"","x":650,"y":240,"wires":[]},{"id":"6f1103fc.3620ec","type":"api-current-state","z":"81157761.3a9db8","name":"","server":"a8e8aa96.e5afd8","outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is_not","override_topic":false,"entity_id":"传感器","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":680,"y":280,"wires":[["84178cee.2ad4","f6d49d11.f9166"],[]]},{"id":"6ce82b5.681afd4","type":"change","z":"81157761.3a9db8","name":"light_time = 30","rules":[{"t":"set","p":"light_time","pt":"global","to":"30","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1680,"y":380,"wires":[[]],"icon":"node-red/hash.png"},{"id":"256a7698.8dad1a","type":"comment","z":"81157761.3a9db8","name":"变量LightTime 为 30(s)","info":"","x":1700,"y":340,"wires":[]},{"id":"a8e8aa96.e5afd8","type":"server","z":"","name":"Home Assistant"}]


实现的效果:
1.只有指定时间内才能开启灯光。
2.打开门时会开启灯光,保持300秒 或 经过传感器后5秒关灯。
3.执行完第2点后,路过传感器时,灯会保持开启60秒后关灯。
4.手动开启灯光后,将保持30秒后关闭。

可能存在的问题:
1.将有1秒钟的延迟。
2.灯的保持开启的时间可能不尽人意。
3.相对占用更多的运行资源。

最后,各种场景,会有各种方法,希望楼主能找到适合自己的方法。

回复

使用道具 举报

7

主题

1974

帖子

5657

积分

论坛元老

流水无味

Rank: 8Rank: 8

积分
5657
金钱
3683
HASS币
145

灌水之王

发表于 2019-7-27 16:13:12 | 显示全部楼层
luox 发表于 2019-7-27 13:50
首先我认为你表达的设计不够严谨。(设备可能误触,而意外导致灯保持开启)

其次本人小白,不知道怎么跳出 ...

传文件,现在论坛代码出错的
回复

使用道具 举报

26

主题

552

帖子

1955

积分

金牌会员

Rank: 6Rank: 6

积分
1955
金钱
1398
HASS币
40
 楼主| 发表于 2019-7-27 22:16:55 | 显示全部楼层
本帖最后由 dgmax 于 2019-7-27 22:18 编辑
luox 发表于 2019-7-27 13:50
首先我认为你表达的设计不够严谨。(设备可能误触,而意外导致灯保持开启)

其次本人小白,不知道怎么跳出 ...

多谢你,初入node坑不会用变量。求个可以学习的网站,官网打不开

嗯代码无法导入。

回复

使用道具 举报

40

主题

3057

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11135
金钱
8028
HASS币
182
发表于 2019-7-27 23:00:37 | 显示全部楼层
本帖最后由 neroxps 于 2019-7-27 23:09 编辑

需求分析

看楼主的意思应该和我的人数判断差不多,也是两个传感器一组,来判断人进去还是离开,我总结了下有以下几点。

开灯条件:

  1. 当门打开,立即开灯(楼主可以自己加亮度或者时间条件,我这里没有体现)
  2. 当人走进走廊人体传感器触发,立即开灯。

关灯条件:

  1. 当人体传感器触发后,一直循环等待门磁ON,如果门磁ON了,就等待门磁OFF,代表人开门进屋里,灯关闭。
  2. 当人体传感器触发后,但是循环等待2分钟依然等不到门打开,代表人进来,又折返,灯关闭。
  3. 当门磁ON,代表门打开,一直循环等待人体传感器 ON,如果人体传感器 ON,就等待人体传感器 OFF,代表人离开了,灯关闭。

特殊条件:

  1. 如果人体传感器或门一直打开,即使2分钟时间到达,也会重新进入循环2分钟,不会应该执行关灯。

实践

条件列明后,就可以很好理解,其实两个传感器,人从门里出去,就是门磁开做触发点(或者传感器ON),他们关闭不应该当作触发条件,两个传感器作为联动条件,A传感器打开,到B传感器打开,然后B传感器OFF,最好能检测 A传感器也OFF,那么就代表人从哪里离开了,详细逻辑可以看看我之前写的人数检测帖子。 《廉价人体存在解决方案,区域人数统计》

未实现的条件

当人打开门,然后走到人体传感器触发区域,然后又折返,一直开着门,超过2分钟。这样当人体传感器OFF后,十秒后会关灯。其实可以加检测条件,在第二次循环流程那边,加给条件,当两个传感器都OFF了,才关灯。当然这其实也有问题,就是人开门关门后,不走,就坐在门口前面也会关灯。例如楼主晚上要在门口干点什么吧哈哈。

写在最后

循环里面使用次数,不要使用时间,否则超时不生效。例如如果楼主要2分钟,每0.5秒触发一次,那么就写 240次,我这因为方便调试设的次数比较短,你自己修改下。

TIM截图20190727225936.png
flows.rar (2.54 KB, 下载次数: 43)






评分

参与人数 2金钱 +25 收起 理由
z741554038 + 5 N大无处不在,学习到了
xieahui + 20 666 来学习下参数

查看全部评分

Nero
回复

使用道具 举报

175

主题

2956

帖子

7555

积分

超级版主

我就是六神

Rank: 8Rank: 8

积分
7555
金钱
4574
HASS币
398

活跃会员教程狂人灌水之王

QQ
发表于 2019-7-29 09:19:07 | 显示全部楼层
回复

使用道具 举报

7

主题

1974

帖子

5657

积分

论坛元老

流水无味

Rank: 8Rank: 8

积分
5657
金钱
3683
HASS币
145

灌水之王

发表于 2019-7-29 16:26:51 | 显示全部楼层
jyz_0501 发表于 2019-7-29 09:19
https://detail.tmall.com/item.htm?spm=a1z0d.6639537.1997196601.670.206c7484mH0lrP&id=562389133726

...

统计客流量应该不错!!  
回复

使用道具 举报

2

主题

287

帖子

996

积分

论坛积极会员

积分
996
金钱
709
HASS币
0
发表于 2019-7-31 16:12:52 | 显示全部楼层
这是放在进出门的吧,房间好像有点不好使
回复

使用道具 举报

26

主题

552

帖子

1955

积分

金牌会员

Rank: 6Rank: 6

积分
1955
金钱
1398
HASS币
40
 楼主| 发表于 2019-8-1 20:50:43 | 显示全部楼层

多谢N神指点!  《廉价人体存在解决方案,区域人数统计》这贴子我有读过。
回复

使用道具 举报

40

主题

3057

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11135
金钱
8028
HASS币
182
发表于 2019-8-1 20:52:43 | 显示全部楼层
dgmax 发表于 2019-8-1 20:50
多谢N神指点!  《廉价人体存在解决方案,区域人数统计》这贴子我有读过。 ...

这flow可以精简下的,因为出和进来的部分流程可以复用。不过最好是自己能理解,写完过了半个月,再回来看,一眼就知道怎么改才是最好的~
Nero
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-20 08:04 , Processed in 0.068896 second(s), 37 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表