@digispace/cloud-connector
v1.0.0
Published
Digispace Gateway and cloud connector
Downloads
6
Maintainers
Readme
Digispace Cloud Connector for Node-RED
A Node-RED node for connecting to Digispace Gateway and retrieving device information.
Installation
You can install this node directly from the Node-RED palette manager or manually with npm:
npm install @digispace/cloud-connectorFeatures
- Connect to different Digispace environments (Local, Dev, Staging, Production)
- Custom URL support for specialized deployments
- Retrieve device information based on building, floor, and zone hierarchy
- Secure API key authentication
Configuration
The node requires the following configuration:
- Environment: Select from Local, Dev, Staging, Production, or Custom
- Custom URL: Required only when the Environment is set to Custom
- API Key: Your Digispace API authentication key
- Tenant ID: Your Digispace tenant identifier
- Building ID: The building ID from which to retrieve device information
Usage
- Drag the Digispace Connector node from the palette to your flow
- Configure the node with your credentials and IDs
- Connect an input node to trigger the device retrieval
- Connect an output node to process the retrieved device information
The node will output a list of all devices found in the specified building.
Example Flow
[
{
"id": "f6f2187d.f17ca8",
"type": "DS-Connector",
"name": "Get Building Devices",
"environment": "Production",
"tenantId": "123",
"buildingId": "456",
"wires": [
[
"c6f7a86d.2f9ee8"
]
]
},
{
"id": "a7e190e5.bca9d",
"type": "inject",
"name": "Trigger",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"wires": [
[
"f6f2187d.f17ca8"
]
]
},
{
"id": "c6f7a86d.2f9ee8",
"type": "debug",
"name": "Devices",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"wires": []
}
]Output Format
The node outputs an array of device objects with the following structure:
[
{
"id": "123",
"name": "Thermostat 1",
"type": "thermostat",
"zoneId": "45",
"status": "online",
"properties": {}
},
...
]License
ISC © AVM Solutions
