Somehow i can't get it working 100% with the Let command.
When soil humidity is higher than 900 it should set varia#2 to 2. And if this var#2 is 2 it should trigger a relay and increment a second variable (The incrementation of the second variable works). But somehow it doesn't enter the "if [var#2]=2 do".
Code: Select all
on Soil#Analog do
SendToHTTP,192.168.8.115,8080,/json.htm?param=udevice&type=command&idx=25&nvalue=[Soil#Analog]
if [soil#Analog]>900 do
timerSet,1,2
Let,2,[var#2]=2
endif
endon
On Rules#Timer=1 do
if [var#2]=2 do
GPIO,12,1
Let,1,[var#1]+1
timerSet,2,2
endif
endon
On Rules#Timer=2 do
if [var#1]=3 do
GPIO,12,0
Let,1,[var#1]=0
Let,2,[var#2]=0
else
GPIO,12,0
timerSet,1,6
endif
endon
I am also not really sure how it all works with the Let command.
What exactly does the number 1 stand for: Let,
1,[VAR#
1]+1
And my Dummy devices don't change it's value. So with the Let command i can have a variable without connected to a Dummy device?
So the Let command has nothing to do with TaskValueSet ?
Sorry for my maybe stupid questions.