Page 1 of 1
blocks random switch on and off
Posted: Sunday 10 March 2019 19:56
by Gianni
i try this blocky to control the temp en humidity of my kitchen.
It need only work from 7 tot 22h but i test the blocky without the time because it's even not work now

it's random switch on and off (within the range) so sometimes the fan turn if it's nod needed or not turn when needed.

- Knipsel4.JPG (42.78 KiB) Viewed 1068 times
Re: blocks random switch on and off
Posted: Wednesday 27 March 2019 9:06
by kuifje
Gianni,
i think you have to work with user variables.
Because now the fan can switch on when the temperature is 19 degrees ore more but at the same time the humudity can drop under 59%, so the fan stops again.
"if temp>19 or hum>60 and (user variable) koeling keuken switch = 0
"do set (user variable) koeling keuken switch = 1
"do set koeling keuken switch = on
else if
"if temp<18 or hum<59 and (user variable) koeling keuken switch = 1
"do set (user variable) koeling keuken switch = 0
"do set koeling keuken switch = off
try and let me know
greetings
Kuifje
Re: blocks random switch on and off
Posted: Wednesday 27 March 2019 21:32
by Gianni
Hello Kuifje
it's a little better but not fine
i made a user variable with an int of 0
the i make this blocky

- Knipsel9.JPG (76.17 KiB) Viewed 998 times
and this is my log
looks like every 5 min i got a on and off

- Knipsel10.JPG (64.91 KiB) Viewed 998 times
and this is my temp/hum log
its never go over the 30° and a hum of 50%

- Knipsel11.JPG (70.05 KiB) Viewed 998 times
so what triggerd this blocky to go on and off

Re: blocks random switch on and off
Posted: Wednesday 27 March 2019 21:42
by Gianni
ok find 1 problem looking if this help
change temp >35 or hum < 60 to temp >35 of hum >60

Re: blocks random switch on and off
Posted: Thursday 28 March 2019 21:10
by Gianni
nope does not work i think there is a problem with the difference between temp and hum
If the temp go down the hum go up and then i got this log
Code: Select all
2019-03-28 20:24:00 Off
2019-03-28 20:23:00 On
2019-03-28 20:22:00 Off
2019-03-28 20:21:00 On
2019-03-28 20:20:00 Off
2019-03-28 20:19:06 On
2019-03-28 20:19:00 Off
2019-03-28 20:18:00 On
2019-03-28 20:17:00 Off
2019-03-28 20:16:00 On
2019-03-28 20:15:00 Off
2019-03-28 20:14:06 On
2019-03-28 20:14:00 Off
2019-03-28 20:13:00 On
2019-03-28 20:12:00 Off
2019-03-28 20:11:00 On
2019-03-28 20:10:00 Off
2019-03-28 20:09:05 On
2019-03-28 20:09:00 Off
2019-03-28 20:08:00 On
2019-03-28 20:07:00 Off
2019-03-28 20:06:00 On
2019-03-28 20:05:00 Off
2019-03-28 20:04:05 On
2019-03-28 20:04:00 Off