
			}
		});	
	}

	// Set level of the location selector
	// /json.htm?type=command&param=switchlight&idx=IDX&switchcmd=Set%20Level&level=LEVEL
	// LEVEL = level of your selector (This number can be found in the edit selectors page, in the column "Level", 0 = Off)

	// Get the level names from the loction selector switch
	function setLocation() {
		// Get the IDX of the domoticz location selector switch
		var deviceIDX = document.getElementById("idx").getAttribute('data-value');
		// Get the lev