Skip to content
Joe Keenan edited this page Jul 11, 2019 · 1 revision

Here's a simple example of sending a notification via Python scripting.

dev = indigo.devices[IOLINCID] # "IO Linc"
if not dev.states["binaryInput1"]:
    pushPlugin = indigo.server.getPlugin("io.thechad.indigoplugin.pushover")
    props = {   
        'msgTitle': "Indigo Alert", 
        'msgBody': "The garage door is OPEN!!", 
    }
    if pushPlugin.isEnabled():
        pushPlugin.executeAction("send", props=props)

Clone this wiki locally