 							'value' : dp.$.value #todo: type according to valuetype
 							'set' : (newValue) ->
 								module.exports.setState @ccu,@id,newValue
+							'update' : () ->
+								value = module.exports.getState @ccu,@id
 			return res

		'new_value': value
								 })

module.exports.getDataPoints = (addr) ->
	res = []
	idx=0

				'qs' : vars
				'url' : "http://#{host}/config/xmlapi/#{script}.cgi"
				'withCredentials' : false
				'scheme' : 'http' #a bug in browserify?

parseXml = (xml) ->
	xml2js.parseStringAsync xml
