找回密码
 立即注册
楼主: alei643

[教程系列] Node Red 系列教程之一 初识Node Red

 火... [复制链接]

0

主题

54

回帖

345

积分

中级会员

积分
345
金钱
291
HASS币
0
发表于 2019-8-1 20:32:41 来自手机 | 显示全部楼层
弃暗投明
回复

使用道具 举报

5

主题

67

回帖

708

积分

高级会员

积分
708
金钱
636
HASS币
0
发表于 2019-8-1 22:39:26 | 显示全部楼层
谢谢大佬的付出
回复

使用道具 举报

0

主题

32

回帖

114

积分

注册会员

积分
114
金钱
82
HASS币
0
发表于 2019-8-2 02:03:22 | 显示全部楼层
[{"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"}]
回复

使用道具 举报

2

主题

106

回帖

922

积分

高级会员

积分
922
金钱
814
HASS币
0
发表于 2019-8-3 16:22:14 来自手机 | 显示全部楼层
学习一下
回复

使用道具 举报

0

主题

15

回帖

217

积分

中级会员

积分
217
金钱
202
HASS币
0
发表于 2019-8-4 13:57:17 来自手机 | 显示全部楼层
01-0221-nnnhhhh068286
回复

使用道具 举报

9

主题

351

回帖

1192

积分

金牌会员

积分
1192
金钱
832
HASS币
0
发表于 2019-8-5 14:14:04 | 显示全部楼层
谢谢分享,学习一下!
回复

使用道具 举报

1

主题

28

回帖

1980

积分

金牌会员

积分
1980
金钱
1951
HASS币
0
发表于 2019-8-5 15:51:59 | 显示全部楼层
我要开始好好学习了
回复

使用道具 举报

slwl 

2

主题

84

回帖

720

积分

高级会员

积分
720
金钱
634
HASS币
0
发表于 2019-8-5 19:44:19 | 显示全部楼层
有安装教程吗
回复

使用道具 举报

0

主题

26

回帖

519

积分

高级会员

积分
519
金钱
493
HASS币
0
发表于 2019-8-6 09:09:56 | 显示全部楼层
隐藏了啥内容。
回复

使用道具 举报

2

主题

44

回帖

729

积分

论坛DIY达人

积分
729
金钱
678
HASS币
20
发表于 2019-8-6 17:03:46 | 显示全部楼层
学习一下
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )

GMT+8, 2025-5-19 11:14 , Processed in 0.114664 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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