Skip to content

Instantly share code, notes, and snippets.

@blacklight
Created October 17, 2019 09:40
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 blacklight/37c2e22b42e4851522edcf5e5e84dd27 to your computer and use it in GitHub Desktop.
Save blacklight/37c2e22b42e4851522edcf5e5e84dd27 to your computer and use it in GitHub Desktop.
event.hook.OnGasAboveThreshold:
if:
type: platypush.message.event.http.hook.WebhookEvent
hook: gas_alert
then:
- if ${data.get('state') != 'ok'}:
-
action: pushbullet.send_note
args:
title: ${data.get('title')}
body: Detected alerting levels from your gas sensors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment