el from the location selector
		var levelValue = document.getElementById("locationlist").value;
		var requestUrl = "json.htm?type=command&param=switchlight&idx=" + deviceIDX + "&switchcmd=Set%20Level&level=" + levelValue;
		console.log(requestUrl);
		$.ajax({
			url: requestUrl,
			async: false,
			dataType: 'json',
			success: function (data) {
				if (data.status != "OK"){
					console.log("[ERROR] Set Location - device not found (status: " + data.status + ", title: " + data.title + ")");
					