// Devices
This farm contains 4 wind turbines:
| ID | Name | Location |
turbine-alpha | Alpha | North Platform |
turbine-beta | Beta | North Platform |
turbine-gamma | Gamma | South Platform |
turbine-delta | Delta | East Platform |
// Device Publishes (subscribe to receive)
Telemetry data sent every 5 seconds per turbine.
{
"turbineId": "turbine-alpha",
"turbineName": "Alpha",
"farmId": "your-farm-id",
"timestamp": "2024-01-15T10:30:00.000Z",
"windSpeed": 8.5,
"windDirection": 245.3,
"ambientTemperature": 12.4,
"rotorSpeed": 14.2,
"powerOutput": 1250.5,
"nacelleDirection": 243.1,
"bladePitch": 7.2,
"generatorTemp": 52.3,
"gearboxTemp": 48.1,
"vibration": 2.45,
"status": "running" //can also be "stopped"
}
Alerts triggered when sensor values exceed thresholds.
{
"turbineId": "turbine-alpha",
"farmId": "your-farm-id",
"timestamp": "2024-01-15T10:30:00.000Z",
"severity": "warning",
"message": "Generator temperature elevated"
}
// Device Subscribes (publish to control)
Send commands to control turbine behavior. Replace {turbineId} with specific ID.
Set Reporting Interval
{
"action": "setInterval",
"value": 10
}
action string - must be "setInterval"
value number - interval in seconds (1-60)
Stop Turbine
{
"action": "stop",
"reason": "maintenance"
}
action string - must be "stop"
reason string (optional) - reason for stopping
Start Turbine
{
"action": "start"
}
action string - must be "start"
Set Blade Pitch
{
"action": "setPitch",
"angle": 15.5
}
action string - must be "setPitch"
angle number - pitch angle in degrees (0-30)