@TestCenter does this help? Using the "Selector switch" in Domoticz (tutorial)