Add autoclose of the solenoid when the soil moisture has reached the set level

This commit is contained in:
lejubila
2021-08-28 11:38:05 +02:00
parent 2001b09937
commit 81ce03e90a
4 changed files with 59 additions and 6 deletions

View File

@@ -256,7 +256,7 @@ function socket_server_command {
if [ "empty$arg2" == "empty" ]; then
json_error 0 "Alias sensor not specified"
else
sensor_status_set $arg2 $arg3 &> /dev/null
sensor_status_set $arg2 $arg3 $arg4 &> /dev/null
json_status
fi
;;