chenxulejt 发表于 2019-7-12 15:53:37

谢谢,学习学习

jfla0515 发表于 2019-7-20 19:28:03


就喜欢楼主的node red系列教程

jfla0515 发表于 2019-7-20 19:29:15


就喜欢楼主的node red系列教程

Nchyn 发表于 2019-7-21 10:59:52

感谢楼主分享

jozhi 发表于 2019-7-23 15:12:58

趕緊來學習一下..謝謝分享

myganwei 发表于 2019-7-26 16:16:07

感谢分享。

yuyamin 发表于 2019-7-26 22:14:07

来好好学习学习

tinac84623 发表于 2019-7-30 12:37:04

謝謝教學~~很實用

80885555 发表于 2019-8-2 03:11:08

[{"id":"1ad56e7c.8467f2","type":"server-state-changed","z":"b6b9a1dc.b520b","name":"老妈","server":"22982e1e.8f49c2","entityidfilter":"device_tracker.2","entityidfiltertype":"substring","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":110,"y":560,"wires":[["b3f50790.092cd8"]]},{"id":"b3f50790.092cd8","type":"function","z":"b6b9a1dc.b520b","name":"到家推送","func":"var message =  "";//msg.topic; //msg.payload;\nvar subtitle = "";//子标题\nvar type ="";\nvar title="";\nif (msg.payload === 'home') \n{\n    type = "到家";\n}\nelse\n{\n    type= "离家";\n}\nmsg.payload = {};\nif (flow.get('notify_arrivedhome') === true){\n    if(msg.topic==='device_tracker.2')\n    {\n        message= "老妈"+type ;\n    }\n    if(msg.topic==='device_tracker.1')\n    {\n        message= "果果"+type ;\n    }\n    if(msg.topic==='device_tracker.1')\n    {\n        message= "老爸"+type ;\n    }\n    msg.payload.data = {"title":title,"message":message,"data":{"subtitle":subtitle,"push":{"badge":0,"category":"notify_checkfamily"}}};\n    return msg; \n}\n\n","outputs":1,"noerr":0,"x":280,"y":620,"wires":[["4c8c01cc.0bed"]],"icon":"node-red/feed.png"},{"id":"4c8c01cc.0bed","type":"api-call-service","z":"b6b9a1dc.b520b","name":"推送提醒","server":"22982e1e.8f49c2","service_domain":"notify","service":"ios_freddy","data":"","mergecontext":"123","output_location":"","output_location_type":"none","x":440,"y":620,"wires":[[]],"inputLabels":["1"]},{"id":"4320af79.708c7","type":"server-state-changed","z":"b6b9a1dc.b520b","name":"老爸","server":"22982e1e.8f49c2","entityidfilter":"device_tracker.1","entityidfiltertype":"substring","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":110,"y":620,"wires":[["b3f50790.092cd8"]]},{"id":"3476d93e.bdc136","type":"server-state-changed","z":"b6b9a1dc.b520b","name":"果果","server":"22982e1e.8f49c2","entityidfilter":"device_tracker.1","entityidfiltertype":"substring","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":110,"y":680,"wires":[["b3f50790.092cd8"]]},{"id":"22982e1e.8f49c2","type":"server","z":"","name":"Home Assistant"}]

80885555 发表于 2019-8-2 03:12:47

RE: Node Red 系列教程之五 深入了解HomeAssistant REST API [修改]
页: 9 10 11 12 13 14 15 16 17 18 [19] 20 21 22 23 24 25 26 27 28
查看完整版本: Node Red 系列教程之五 深入了解HomeAssistant REST API