1
0
mirror of https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git synced 2025-09-02 04:32:52 +02:00

= Fix MotionDetection example (#817)

This commit is contained in:
tetreum
2018-12-01 11:13:24 +01:00
committed by jmtatsch
parent e0938b82f4
commit 0668d35168

View File

@@ -21,7 +21,7 @@ if [ "$1" == "on" ]; then
source /system/sdcard/scripts/common_functions.sh
# 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
# No-one is meant to be here, but motion detected. Send email.