Also thanks TD-er, magnificent job
I parse here all the rules from device, just in case...
ruleset1
Code: Select all
on system#boot do
let,2,0
TaskEnable,5
endon
//on Virtualfosa#custom1=1 do
TaskDisable,5
TaskDisable,8
timerSet,2,0
TaskEnable,9
lcdcmd,on
LCD,1,1,"ATENTIE"
LCD,2,1,"Pompa ON %systime%"
LCD,3,1, "Verifica pompa fosa"
LCD,4,1,
endon
//on Virtualfosa#custom1=0 do
//lcdcmd,on
LCD,4,1,"Pompa OFF %systime%"
endon
on switch#state=3 do //doublepress revine lcdtemp
TaskEnable,5
endon
//on switch#state=3 do
lcdcmd,on
LCD,1,1,"WARNING"
LCD,2,1,"Firealarm ON %systime%"
LCD,3,1, "CHECK WATER PUMPS"
//endon
//on switch#state=0 do
gpio,14,0
//publish ,u9149f/568/cmnd/power ,0 //nu merge nefiind conectat la server mqtt
//SendToHTTP ,192.168.4.31,80,"/control?cmd=GPIO,5,0" //another espeasy device
//SendToHTTP ,192.168.4.50,80,"/cm?cmnd=Power%20Off" //another tasmota device,uneori rateaza comanda
endon
//on switch#state=1 do
gpio,14,1
//publish ,u9149f/568/cmnd/power,1 //nu merge nefiind conectat la server mqtt
//SendToHTTP ,192.168.4.31,80,"/control?cmd=GPIO,5,1" //another espeasy device
//SendToHTTP ,192.168.4.50,80,"/cm?cmnd=Power%20On" //another tasmota device,uneori rateaza comanda
endon
ruleset2
Code: Select all
//on releu1#out0=1 do
//on Virtualfosa#custom1=0 do
//let,3,0
timerSet,3,1
let,3,=!%v3% // flip state
if %v3%=1
lcdcmd,on
else
lcdcmd,off
endif
endon
On Rules#Timer=3 do
let,3,=!%v3% // flip state
if %v3%=1
lcdcmd,on
else
lcdcmd,off
endif
timerSet,3,1
endon
//on releu1#out0=0 do //on doubleclick, stop blinking
timerSet,3,0
endon
//on Clock#Time=All,**:** do
//lcdcmd,on
//timerSet,1,5
endon
//on Rules#Timer=1 do
//lcdcmd,off
endon
ruleset3
Code: Select all
On System#Boot do
TaskValueSet 12,1,[bmp#Temperature]
TaskValueSet 12,2,[bmp#Pressure]
TaskValueSet 12,3,[ds#temp]
TaskValueSet 12,4,[VirtualOUTfosa#custom1]
timerSet,1,60
endon
On Rules#Timer=1 do
TaskValueSet 12,1,[bmp#Temperature]
TaskValueSet 12,2,[bmp#Pressure]
TaskValueSet 12,3,[ds#temp]
TaskValueSet 12,4,[VirtualOUTfosa#custom1]
timerSet,1,10
endon
ruleset4
Code: Select all
on switch#state=11 do //longpress
let,2,=!%v2% // flip state
if %v2%=1
// enable lcdpower,ina
TaskEnable,7
TaskEnable,8
TaskDisable,5
timerSet,2,120
else
TaskEnable,5
TaskDisable,8
TaskDisable,7
endif
endon
on Rules#Timer=2 do //switch back to lcdtemp after 2 minutes
TaskEnable,5
TaskDisable,8
TaskDisable,7
endon
A lots of unused lines, trial&error, forgotten...
Needs time and desire to clean up, sort things.
Maybe the new build is more demanding, I see it offer suggestions during writing.
My mistake,sorry
