From 0d2206a6c5c678cced5dcffba61dd7ac51dd3fef Mon Sep 17 00:00:00 2001 From: Pascal Berger Date: Fri, 23 Aug 2019 14:14:20 +0200 Subject: [PATCH] Set limits for which the sensor should be considered down --- docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index fd64c43..53cb603 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -38,7 +38,7 @@ check_services () { state="1" fi - output="$output { \"channel\": \"$service\", \"value\": \"$state\" }," + output="$output { \"channel\": \"$service\", \"value\": \"$state\", \"limitmode\": 1, \"limitminerror\": \"1\", \"limitmaxerror\": \"1\" }," done output="$output { \"channel\": \"updated\", \"value\": \"$(date +%s)\", \"showchart\": 0, \"showtable\": 0 } ] } }" ;;