Page 1 of 1

Selector not working

Posted: Sunday 02 December 2018 16:56
by tvurce
1) defined virtual Selector switch for manual control
2) defined Event for this Selector

But when Selector switch is changed, nothing happens... Any hint? Thanks
selector.png
selector.png (32.79 KiB) Viewed 1449 times
selector-event.png
selector-event.png (65.68 KiB) Viewed 1449 times

Re: Selector not working

Posted: Sunday 02 December 2018 19:18
by mrf68
I think you need to place the number of the rule after the = sign, not the name you gave it.

So:
if selector = 0 then
if selector = 10 then .....

Re: Selector not working

Posted: Sunday 02 December 2018 19:33
by StanHD
I use the selector level like this:-

Image

Re: Selector not working

Posted: Monday 03 December 2018 9:20
by tvurce
mrf68 wrote: Sunday 02 December 2018 19:18 I think you need to place the number of the rule after the = sign, not the name you gave it.

So:
if selector = 0 then
if selector = 10 then .....
I tried this before playing with strings, but with no luck.

Re: Selector not working

Posted: Monday 03 December 2018 13:30
by tvurce
HM, I tried add some log messages for IF ELSE conditions. And in log, there are right messages based on selected value on Selector switch. So, condition is working right. But setting setpoints is not working.

Re: Selector not working

Posted: Thursday 13 December 2018 14:57
by tvurce
Another observations:

Created virtual switch and it can control Setpoints. So no problem with blockly conditions, no problem with SetSetpoint... may be, problem is with switch selector virtual device.

Re: Selector not working

Posted: Thursday 13 December 2018 15:15
by StanHD
tvurce wrote: Monday 03 December 2018 9:20
mrf68 wrote: Sunday 02 December 2018 19:18 I think you need to place the number of the rule after the = sign, not the name you gave it.

So:
if selector = 0 then
if selector = 10 then .....
I tried this before playing with strings, but with no luck.
Have you tried it like this:-

if selector = Level % 10 then .....

Because I have that working for sure. ;)

Re: Selector not working

Posted: Saturday 15 December 2018 11:18
by tvurce
No, selector as Level in % does not working for me. So as not working only number.

Only way is to check conditions as "string". It is working. Not sure why not work directly SetPoint for radiator valves, but when I am controling from selector virtual thermostat, it works as I wish.