- subscribe(DOMString property, VehiclePropertyCallback successCallback, optional VehiclePropertyErrorCallback errorCallback);
-
- /**
- * \brief set the given property to value
- * \arg DOMString property property to set
- * \arg VehiclePropertyType value value to set
- * \arg VehiclePropertyCallback successCallback callback if operation is successfull
- * \arg VehiclePropertyErrorCallback errorCallback callback if error has been called.
- **/
- set(DOMString property, VehiclePropertyType value, optional VehiclePropertyCallback successCallback, optional VehiclePropertyErrorCallback errorCallback);
-
- /**
- * \brief get values for a given property within a certain past time period between 'startTime' and 'endTime'
- * \arg DOMString property property to request
- * \arg Date startTime, starting period of time.
- * \arg Date endTime, ending period of time.
- * \arg VehiclePropertyListCallback successCallback. Callback with the result of the method call
- * \arg VehiclePropertyErrorCallback errorCallback. Callback if an error has occurred.
- **/
- getHistory(DOMString property, Date startTime, Date endTime, VehiclePropertyListCallback successCallback, optional VehiclePropertyErrorCallback errorCallback);
+ void subscribe(DOMString objectType, VehiclePropertyCallback successCallback, optional unsigned short zone, optional VehiclePropertyErrorCallback errorCallback);
+
+ /**
+ * \brief set the given objectType to value
+ * \param objectType object type to set
+ * \param value value to set, should contain zone information if there is a zone ie "zone" : 0
+ * \param errorCallback callback if error during set.
+ **/
+ void set(DOMString objectType, object value, optional VehiclePropertyErrorCallback errorCallback);
+
+ /**
+ * \brief get values for a given objectType within a certain past time period between 'startTime' and 'endTime'
+ * \param objectType object type to request
+ * \param zone in which the objectType is located or 0 if no zone.
+ * \param startTime starting period of time.
+ * \param endTime ending period of time.
+ * \param successCallback Callback with the result of the method call
+ * \param errorCallback Callback if an error has occurred.
+ **/
+ void getHistory(DOMString objectType, unsigned short zone, Date startTime, Date endTime, VehiclePropertyListCallback successCallback, optional VehiclePropertyErrorCallback errorCallback);
+
+ /**
+ * \brief list zones available for a given object type
+ * \param DOMString object type to request, ie "HVAC"
+ **/
+ sequence<unsigned short> listZones(DOMString objectType);