Page 1 of 1
"If watts" dont work? (blockly)
Posted: Sunday 25 September 2016 17:08
by Evelen
Ok.
Why don't this work?
IF watt-utilety < 5
Set dummy-button = on
when the watts is above 5 nothing happening, when the watts is under 5 nothing happening.
why?
This is shat I want to do:
If the watts is above a value (5) a dummy should go to "on"
When det watt is under a value (4) for 10 minutes set dummy to "off".
Is this posible?
Re: "If watts" dont work? (blockly)
Posted: Sunday 25 September 2016 18:15
by Derik
please share the print of the blockley..
Re: "If watts" dont work? (blockly)
Posted: Sunday 25 September 2016 18:32
by Evelen
Here it is:

- Uten navn.png (14.92 KiB) Viewed 1816 times
Re: "If watts" dont work? (blockly)
Posted: Sunday 25 September 2016 20:38
by Derik
u have to use mutiple options with this type of blockley. [ use the other or make more blockleys with the button ]
Then you have check in your blockley, if vaskemaskin = off ,after x you want, set vaskemaskin on
Re: "If watts" dont work? (blockly)
Posted: Monday 26 September 2016 13:44
by Evelen
ohh, okey, worked (Y)
now, how do i set "if watts is below 4 for 10 minutes"
Re: "If watts" dont work? (blockly)
Posted: Monday 26 September 2016 19:37
by Derik
Evelen wrote:ohh, okey, worked (Y)
now, how do i set "if watts is below 4 for 10 minutes"
Unfortunly not possible with a blockley
Hope this option will be available sometime...
Perhaps you can make a dummy switch that is counting ...
Re: "If watts" dont work? (blockly)
Posted: Monday 26 September 2016 22:13
by Evelen
hmmm.
maybe this will work?

- Uten navn.png (56.43 KiB) Viewed 1716 times
Re: "If watts" dont work? (blockly)
Posted: Monday 26 September 2016 22:20
by Derik
Evelen wrote:hmmm.
maybe this will work?
Uten navn.png
I hope
Let me now...
I need some counters in blockley to..
Re: "If watts" dont work? (blockly)
Posted: Monday 26 September 2016 23:24
by Evelen
Re: "If watts" dont work? (blockly)
Posted: Friday 30 September 2016 23:01
by Evelen
^ this is now fixed after update to newest beta.
Now, this turn on the dummy at 300W+, but never turns it down, the variable is set to "not_running", but the dummy (vaskemaskin) is still on and never goes off

- Uten navn.png (43.22 KiB) Viewed 1645 times
Re: "If watts" dont work? (blockly)
Posted: Saturday 01 October 2016 0:22
by booster
changing a uservariable via an event will not trigger the eventsystem, therefore your latest else-if will not occur.
But why using a user variable at all? (I dont see its benefit from your blockly)
why not switching Vaskemaskin itself off after 120 secs?