Code: Select all
on Solar1#temp do
if [Solar1#temp] > 30
gpio,5,1 //turn on gpio over 30deg
endif
if [Solar1#temp] < 27
gpio,5,0 //turn off gpio under 27deg
endif
endon
Moderators: grovkillen, Stuntteam, TD-er
Code: Select all
on Solar1#temp do
if [Solar1#temp] > 30
gpio,5,1 //turn on gpio over 30deg
endif
if [Solar1#temp] < 27
gpio,5,0 //turn off gpio under 27deg
endif
endon
Code: Select all
on System#Boot do
GPIO,5,0 // Turn off pump
LoopTimerSet,1,120 // 2 minute loop timer
endon
on Rules#Timer=1 do
let,1,[Solar1#temp]-[Water#temp] // Store calculations in variable #1
if [Plugin#GPIO#Pinstate#5] = 1 and [var#1] < 1
// Temperature difference too low, turn off pump
gpio,5,0
endif
if [Plugin#GPIO#Pinstate#5] = 0 and [var#1] > 3
// Temperature difference high enough, turn on pump
gpio,5,1
endif
endon
That's fine.
An extra sensor measuring the water temperature should indeed be added, keeping the water temperature manually isn't going to work very efficientlynobody@all wrote: ↑15 Aug 2023, 15:32 2. where did it came from [Water#temp]- should I create dummy device NAME Water, Values- temp? or add new sensor ds18b20 mounted in water boiler and named water/values temp?
Users browsing this forum: Google [Bot] and 30 guests