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 not working
Moderator: leecollings
Re: Selector not working
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 .....
So:
if selector = 0 then
if selector = 10 then .....
- StanHD
- Posts: 347
- Joined: Friday 12 July 2013 16:09
- Target OS: Windows
- Domoticz version:
- Location: East Sussex, UK
- Contact:
Re: Selector not working
I use the selector level like this:-


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
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
-
- Posts: 30
- Joined: Saturday 27 October 2018 19:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Selector not working
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.
-
- Posts: 30
- Joined: Saturday 27 October 2018 19:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Selector not working
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.
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.
- StanHD
- Posts: 347
- Joined: Friday 12 July 2013 16:09
- Target OS: Windows
- Domoticz version:
- Location: East Sussex, UK
- Contact:
Re: Selector not working
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
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
-
- Posts: 30
- Joined: Saturday 27 October 2018 19:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Selector not working
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.
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.
Who is online
Users browsing this forum: No registered users and 1 guest