Trying to change a selector value through dzVents (beginner, was using directly LUA before), I read in the doc:
But either I am missunderstanding or it is not working as expected:switchSelector(<[level]|[levelname]>): Function. Switches a selector switch to a specific level ( levelname or level(numeric) required ) levelname must be exact, for level the closest fit will be picked. See the edit page in Domoticz for such a switch to get a list of the values). Supports command options.
My selector has 4 values (Off is not activated):
Level 10: "20"
Level 20 : "30"
Level 30 : "45"
Level 40 : "50"
My understanding is that I have to give as parameter to switchSelector either a level (=integer) or levelname (= string) value.
so I used
Code: Select all
switchSelector('20')But the result was level named "30" which correspond to the level 20.
So even if I pass a string to switchSelector in order to use levelName, it has used the value (from string ?) as the level...
Sounds strange to me but I might missunderstand the doc.