verschillende configuratie's
This commit is contained in:
parent
c135fe4d6c
commit
0f5781e395
BIN
Config_Zwembad_U3_R142_1970_1_1.txt
Normal file
BIN
Config_Zwembad_U3_R142_1970_1_1.txt
Normal file
Binary file not shown.
BIN
config.dat
Normal file
BIN
config.dat
Normal file
Binary file not shown.
BIN
config_ESP_Zwembad_U0_Build20113_202119.dat
Normal file
BIN
config_ESP_Zwembad_U0_Build20113_202119.dat
Normal file
Binary file not shown.
23
rules1.txt
Normal file
23
rules1.txt
Normal file
@ -0,0 +1,23 @@
|
||||
On System#Boot do //When the ESP boots, do
|
||||
gpio,14,0
|
||||
timerSet,1,4 //Set Timer 1 for the next event in 30 seconds
|
||||
endon
|
||||
|
||||
On Rules#Timer=1 do //When Timer1 expires, do
|
||||
|
||||
if [out#t] > [in#t]//abs function
|
||||
TaskValueSet,verschil,1,[out#t]-[in#t]
|
||||
else
|
||||
TaskValueSet,verschil,1,[in#t]-[out#t]
|
||||
endif
|
||||
|
||||
Publish domoticz/in,'{"idx":144,"nvalue":0,"svalue":"[verschil#t]"}'
|
||||
Publish domoticz/in,'{"idx":143,"nvalue":0,"svalue":"[out#t]" }'
|
||||
Publish domoticz/in,'{"idx":142,"nvalue":0,"svalue":"[in#t]" }'
|
||||
LCD 2,1,"[verschil#t], [out#t], [in#t]"
|
||||
//LCD 2,1,"[sw#s]"
|
||||
LCD 1,1,'[%ip%]'
|
||||
endif
|
||||
TaskValueSet,11,1,[E1SW1#Switch]
|
||||
timerSet,1,4 //Resets the Timer 1 for another 30 seconds
|
||||
endon
|
0
rules2.txt
Normal file
0
rules2.txt
Normal file
35
rulesWerkend.txt
Normal file
35
rulesWerkend.txt
Normal file
@ -0,0 +1,35 @@
|
||||
On System#Boot do //When the ESP boots, do
|
||||
gpio,14,0
|
||||
timerSet,1,4 //Set Timer 1 for the next event in 30 seconds
|
||||
endon
|
||||
|
||||
On Rules#Timer=1 do //When Timer1 expires, do
|
||||
if [Pomp#state]=1
|
||||
gpio,14,0
|
||||
|
||||
if [out#t] > [in#t]//abs function
|
||||
TaskValueSet,verschil,1,[out#t]-[in#t]
|
||||
else
|
||||
TaskValueSet,verschil,1,[in#t]-[out#t]
|
||||
endif
|
||||
// SendToHTTP api.thingspeak.com,80,/update?api_key=NKVTONNH0NRQAD2T&field1=[in#t]&field2=[out#t]
|
||||
|
||||
// Publish domoticz/in,{"idx":144,"nvalue":[verschil#t],"svalue":"[verschil#t]"}
|
||||
// Publish domoticz/in,{"idx":143,"nvalue":[out#t],"svalue":"[out#t]"}
|
||||
// Publish domoticz/in,{"idx":142,"nvalue":[in#t],"svalue":"[in#t]"}
|
||||
//SendToHttp 85.148.156.144,8080,/json.htm?type=command¶m=udevice&idx=144&svalue=[verschil#t]
|
||||
//SendToHttp 85.148.156.144,8080,/json.htm?type=command¶m=udevice&idx=143&svalue=[out#t]
|
||||
//SendToHttp 85.148.156.144,8080,/json.htm?type=command¶m=udevice&idx=142&svalue=[in#t]
|
||||
//LCD 2,1,[verschil#t]
|
||||
else
|
||||
gpio,14,1
|
||||
// gpio,2,1
|
||||
// LCD 2,1,%uptime%
|
||||
endif
|
||||
// TaskValueSet,11,1,[E1SW1#Switch]
|
||||
// TaskValueSet,dummy,2,[out#t]-[in#t]
|
||||
// TaskValueSet,11,3,5678
|
||||
// TaskValueSet,11,4,9012
|
||||
timerSet,1,4 //Resets the Timer 1 for another 30 seconds
|
||||
endon
|
||||
|
14
setting_esp_easy.txt
Normal file
14
setting_esp_easy.txt
Normal file
@ -0,0 +1,14 @@
|
||||
Welcome to ESP Easy: Zwembad
|
||||
|
||||
MainConfigHardwareDevicesRulesTools
|
||||
|
||||
<> Task Device Name Port IDX/Variable GPIO Values
|
||||
Edit 1 Temperature - DS18b20 bier 28-96-d8-d0-4-0-0-e2 1 GPIO-13 Temperature: 26.50
|
||||
Edit 2 Temperature - DS18b20 water 28-ff-a2-45-52-15-1-e0 2 GPIO-13 Temperature: 25.50
|
||||
Edit 3 Display - LCD2004 dsp1602 1 GPIO-4
|
||||
GPIO-5
|
||||
Edit 4 Temperature & Pressure - BMP085 pressure 3 GPIO-4 Temperature: 36.66
|
||||
GPIO-5 Pressure: 1016.81
|
||||
|
||||
|
||||
Powered by www.letscontrolit.com
|
42
zwembad_rules_laatsterules1.txt
Normal file
42
zwembad_rules_laatsterules1.txt
Normal file
@ -0,0 +1,42 @@
|
||||
On System#Boot do //When the ESP boots, do
|
||||
gpio,14,0
|
||||
timerSet,1,1 //Set Timer 1
|
||||
endon
|
||||
|
||||
On Rules#Timer=1 do //When Timer1 expires, do
|
||||
if [out#t]>[in#t]//abs function
|
||||
TaskValueSet,verschil,1,[out#t]-[in#t]
|
||||
else
|
||||
TaskValueSet,verschil,1,[in#t]-[out#t]
|
||||
endif
|
||||
LCD,1,1 'Opwarming:[Verschil#t]'
|
||||
LCD,2,1 'Pomp:[PompSwitch#state]'
|
||||
// gpio,14,PompSwitch#state
|
||||
timerSet,1,1 //Resets the Timer 1
|
||||
endon
|
||||
|
||||
on Details#state=1 do
|
||||
timerSet,1,4
|
||||
LCDCMD,clear
|
||||
LCD 1,1 '%ip%'
|
||||
LCD 2,1 '%ssid%'//'%sysname%'
|
||||
endon
|
||||
|
||||
on Details#state=11 do
|
||||
timerSet,1,4
|
||||
LCDCMD,clear
|
||||
LCD 1,1 'in:[in#t],uit:[out#t]dak:[dak#t]'
|
||||
LCD 2,1 'uit-in:[verschil#t],[dak#t]'
|
||||
endon
|
||||
|
||||
|
||||
on PompSwitch#state do
|
||||
if [PompSwitch#state]=1
|
||||
gpio,14,1
|
||||
else
|
||||
gpio,14,0
|
||||
endif
|
||||
// timerSet,1,4
|
||||
// LCDCMD,clear
|
||||
// LCD 1,1 '[PompSwitch#state]'
|
||||
endon
|
Loading…
Reference in New Issue
Block a user