mirror of
https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git
synced 2025-09-08 15:10:45 +02:00
= Fix MotionDetection example (#817)
This commit is contained in:
@@ -21,7 +21,7 @@ if [ "$1" == "on" ]; then
|
|||||||
source /system/sdcard/scripts/common_functions.sh
|
source /system/sdcard/scripts/common_functions.sh
|
||||||
|
|
||||||
# Check external service to see it anyone present.
|
# Check external service to see it anyone present.
|
||||||
presence=$(curl http://openhab/rest/items/PresenceAtHome/state 2>/dev/null)
|
presence=$(/system/sdcard/bin/curl http://openhab/rest/items/PresenceAtHome/state 2>/dev/null)
|
||||||
|
|
||||||
if [ "$presence" == "OFF" ] ; then
|
if [ "$presence" == "OFF" ] ; then
|
||||||
# No-one is meant to be here, but motion detected. Send email.
|
# No-one is meant to be here, but motion detected. Send email.
|
||||||
|
Reference in New Issue
Block a user