blocks random switch on and off

Moderator: leecollings

Post Reply
Gianni
Posts: 230
Joined: Saturday 21 July 2018 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Home@Belgium
Contact:

blocks random switch on and off

Post 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
Knipsel4.JPG (42.78 KiB) Viewed 1064 times
User avatar
kuifje
Posts: 36
Joined: Wednesday 25 October 2017 16:38
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Heemskerk
Contact:

Re: blocks random switch on and off

Post 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
Gianni
Posts: 230
Joined: Saturday 21 July 2018 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Home@Belgium
Contact:

Re: blocks random switch on and off

Post 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
Knipsel9.JPG (76.17 KiB) Viewed 994 times
and this is my log
looks like every 5 min i got a on and off
Knipsel10.JPG
Knipsel10.JPG (64.91 KiB) Viewed 994 times
and this is my temp/hum log
its never go over the 30° and a hum of 50%
Knipsel11.JPG
Knipsel11.JPG (70.05 KiB) Viewed 994 times
so what triggerd this blocky to go on and off :-)
Gianni
Posts: 230
Joined: Saturday 21 July 2018 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Home@Belgium
Contact:

Re: blocks random switch on and off

Post by Gianni »

ok find 1 problem looking if this help

change temp >35 or hum < 60 to temp >35 of hum >60 :-)
Gianni
Posts: 230
Joined: Saturday 21 July 2018 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Home@Belgium
Contact:

Re: blocks random switch on and off

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest