ThingsHub allows serving device data over a websocket connection. Clients can connect to such an integration and will receive live device data.

Integration Configuration

ParameterDescription
nameThe Integration's display name.
typeThe string WebSocket.
descriptionA textual description of the integration.
selectorSee the section Labels and Selectors.

{
  "name": "Room Sensors via Websocket",
  "type": "WebSocket"
  "description": "Serves room sensor data over a websocket.",
  "selector": {
    "$or": [
      "roomsensors"
    ]
  }
}
CODE

Receiving the Data

Upon creation of the Integration, the returned object contains the name of the websocket URL via which the state updates will be sent.