Skip to content

Instantly share code, notes, and snippets.

# Python template - reading arguments, calling a command, handling errors and returning results
res = []
# Constant and mandatory arguments
args = demisto.args()
fileid = args["file"]
orig_path = "demisto"
tags = args.get("tags")
blueprint:
name: Motion-activated Switch
description: Turn on a switch when motion is detected.
domain: automation
source_url: https://gist.githubusercontent.com/compsecmonkey/7bb1478d7c30552f592e61bcc2482577/raw/58e371841ff804b44cecb679923fd8fc70530828/Motion_activated_Switch.yaml
input:
motion_entity:
name: Motion Sensor
selector:
entity:
19c778081d2bbf4619c778081d2bbf46
237984

Keybase proof

I hereby claim:

  • I am compsecmonkey on github.
  • I am compsecmonkey (https://keybase.io/compsecmonkey) on keybase.
  • I have a public key ASCaXzEi9yX2ywuyIFel6hBNWBigdgl8a9CuYIwzpBySPAo

To claim this, I am signing this object: