Skip to content

Instantly share code, notes, and snippets.

@shmick
Created February 11, 2024 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shmick/f6651901077237862d064204c5806e4e to your computer and use it in GitHub Desktop.
Save shmick/f6651901077237862d064204c5806e4e to your computer and use it in GitHub Desktop.
The automation yaml for ppp0 stats
alias: UXG ppp0 stats
description: UXG ppp0 stats
trigger:
- platform: webhook
allowed_methods:
- POST
local_only: true
webhook_id: "uxg_ppp0_stats"
condition: []
action:
- alias: Update Data Received
event: set_ppp0_data_received
event_data:
state: "{{ trigger.json.data_received }}"
- alias: Update Data Sent
event: set_ppp0_data_sent
event_data:
state: "{{ trigger.json.data_sent }}"
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment