ZoneMinder integration into SmartThings

If you install smartthings_cli then you can run a script like this-

#!/bin/bash

# are the lights on?
result=$( /root/smartthings_cli/smartthings_cli.py query switch "Driveway Floods" 2>&1 )
if [[ ! $result =~ True ]] ; then
    # nope, turn them on
    /root/smartthings_cli/smartthings_cli.py set switch "Driveway Floods" on
fi

More info about smartthings_cli-

Rus

1 Like