|  Developer
Updated on May 9, 2022

cloud.controller_subscribe_abstracts

Connection Type:

  • Hub sends subscription list to cloud whenever this list is changed or hub is connected to the cloud
Edit
Field Type Required Description
abstracts array + List of abstract subscriptions on hub
abstracts[].abstract_uuid string + Abstract unique id
abstracts[].device_id string + Device id of corresponding subscription
abstracts[].mappings array + List of abstracts
abstracts[].mappings[].capability string + Capability of an abstract
abstracts[].mappings[].variable string + Variable of an abstract
abstracts[].mappings[].item_id string + Item id of corresponding abstract
abstracts[].mappings[].value string or int + Value of an abstract. NOTE: cloud supports only string/int values
Edit

NOTE: Failed requests will be resent 3 times with 1 min intervals and later requests will be sent with 10 min intervals.

NOTE: Cloud might unable to setup their suite quickly enough, so the first request might fail. The request must be resent with at least 30 sec timeout.

Edit
Edit
				
					{
    "id": "_request_id_",
    "method": "cloud.controller_subscribe_abstracts",
    "api": 1,
    "params": {
      "abstracts": [
         {
            "abstract_uuid": "1234-abcd-...",
            "device_id": "72613916",
            "mappings": [
              {
               "capability": "power",
               "variable": "status",
               "item_id": "32829327",
               "value": 1
              },
              {
               "capability": "indicator",
               "variable": "status",
               "item_id": "36281629",
               "value": "test-string"
              }
            ]
         },
         ...
      ]
   }
}				
			
Edit
				
					{
    "error": null,
    "id": "_ID_",
    "method": "hub.cloud.subscription.create",
    "result": {},
}