COmpleted pdate code to parse domoticz switches and variables, modified request building logic to utilise values from domoticz (idx,vType etc)