Selector not working

Moderator: leecollings

Post Reply
tvurce
Posts: 30
Joined: Saturday 27 October 2018 19:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Selector not working

Post 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 1374 times
selector-event.png
selector-event.png (65.68 KiB) Viewed 1374 times
mrf68

Re: Selector not working

Post 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 .....
User avatar
StanHD
Posts: 347
Joined: Friday 12 July 2013 16:09
Target OS: Windows
Domoticz version:
Location: East Sussex, UK
Contact:

Re: Selector not working

Post by StanHD »

I use the selector level like this:-

Image
Domoticz Main - Intel nuc, Windows, RFXTRX433E. Lan Relay Boards, Aeon Z-Stick Gen 5, Evohome HGI80, Milight WiFi, MySensors Ethernet Gateway, Harmony Hub
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
tvurce
Posts: 30
Joined: Saturday 27 October 2018 19:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Selector not working

Post 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.
tvurce
Posts: 30
Joined: Saturday 27 October 2018 19:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Selector not working

Post 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.
tvurce
Posts: 30
Joined: Saturday 27 October 2018 19:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Selector not working

Post 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.
User avatar
StanHD
Posts: 347
Joined: Friday 12 July 2013 16:09
Target OS: Windows
Domoticz version:
Location: East Sussex, UK
Contact:

Re: Selector not working

Post 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. ;)
Domoticz Main - Intel nuc, Windows, RFXTRX433E. Lan Relay Boards, Aeon Z-Stick Gen 5, Evohome HGI80, Milight WiFi, MySensors Ethernet Gateway, Harmony Hub
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
tvurce
Posts: 30
Joined: Saturday 27 October 2018 19:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Selector not working

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

Who is online

Users browsing this forum: No registered users and 1 guest