Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: earthquake_automation
- description: 地震預報通知
- trigger:
- - platform: webhook
- allowed_methods:
- - POST
- local_only: true
- webhook_id: trigger_ea_command
- condition: []
- action:
- - variables:
- lv: "{{ trigger.json.level[:1] | int }}"
- time: "{{ trigger.json.seconds }}"
- - alias: Line通知
- action: rest_command.linebot_message
- data:
- who: "USERID"
- msg_text: 警告!{{ lv }}級地震將在{{ time }}秒後抵達
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement