I want o switch a relay when my temp is under a certain value, and switch back when the value is reached back.
I Use a BME280 to measure and a relay connected to gpio12 I have figured out to switch the relay with following rule
Code: Select all
On System#Boot do
gpio,13,1
endon
on Aussen#temperature do
if %eventvalue1% > 27
gpio,13,0
endif
else
on Aussen#temperature do
if %eventvalue1% < 27
gpio,13,1
endif
endon