action:
- service: notify.mobile_app_iphone
data:
message: 到家了,需要开门吗?
data:
actions:
- identifier: KAIMEN
title: 开门
activationMode: background
authenticationRequired: true
destructive: true
icon: sfsymbols:checkmark.seal
- identifier: CANCEL
title: 取消
activationMode: background
authenticationRequired: true
destructive: false
icon: sfsymbols:xmark.seal
push:
sound: Alert_ActivityGoalAttained_Haptic.caf
这个自动化代码是推送信息到手机上,长按信息会弹出是否 打开或取消的选项。Node-RED上怎样填上这些代码?
|