From 55f840978580d2df80ace0bbc8e8ddb7e662cebf Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Thu, 15 Aug 2024 14:24:42 +0300 Subject: [PATCH] update and cleanup rules --- config/EspEasyRules.txt | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/config/EspEasyRules.txt b/config/EspEasyRules.txt index ea6d4c4..0bd578b 100644 --- a/config/EspEasyRules.txt +++ b/config/EspEasyRules.txt @@ -30,32 +30,22 @@ On Soil#RH do endif endOn -//Time events GMT (17:00 is 14:00GMT) +//Time events GMT (17:00 is 14:00GMT) summer=120, autumn=60 On Clock#Time=All,%sunrise% do Publish %sysname%/Water/start,{"sunrise":"%sunrise%"} - event,manualwatering=20 + event,manualwatering=120 endon On Clock#Time=All,%sunset% do Publish %sysname%/Water/start,{"sunset":"%sunset%"} - event,manualwatering=20 + event,manualwatering=120 endon -On Clock#Time=All,**:** do - Publish %sysname%/ping,{"ssid":"%ssid%"|"rssi":"%rssi%"|"time":"%systime%"|"%lcltime%"|"%ip%"|"temp":"[bmp#Temperature]"} - //event,manualwatering=2 -endon - -//On Clock#Time=All,**:*5 do -// Publish %sysname%/state/time,{"time":"%systime%"} -// event,manualwatering=5 -//endon - -On Clock#Time=All,**:00 do +//On Clock#Time=All,**:00 do //event,nightwatering=3 - Publish %sysname%/ping,{"soil":"[Soil#RH]","temp":"[bmp#Temperature]","hum":"[bmp#Humidity]","press":"[bmp#Pressure]"} -Publish %sysname%/ping,{"temp":"[bmp#Temperature]"} -endon + //Publish %sysname%/ping,{"ssid":"%ssid%"|"rssi":"%rssi%"|"time":"%systime%"|"%lcltime%"|"%ip%"|"temp":"[bmp#Temperature]"} + //Publish %sysname%/ping,{"soil":"[Soil#RH]","temp":"[bmp#Temperature]","hum":"[bmp#Humidity]","press":"[bmp#Pressure]"} +//endon On nightwatering do If %systime% < %sunrise% //12:00:00