From f2fd582ba1e4ec3f7106d1282a086166e7cc8599 Mon Sep 17 00:00:00 2001 From: Mike Degatano Date: Tue, 8 Nov 2022 03:29:13 -0500 Subject: [PATCH] Document `/os/boards/{board}` endpoints (#1526) * Document `/os/boards/{board}` endpoints * Missed closing tag --- docs/api/supervisor/endpoints.md | 48 ++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/docs/api/supervisor/endpoints.md b/docs/api/supervisor/endpoints.md index 403e9956..21d75305 100644 --- a/docs/api/supervisor/endpoints.md +++ b/docs/api/supervisor/endpoints.md @@ -2086,6 +2086,54 @@ Move datadisk to a new location, **This will also reboot the device!** + + +Returns information about your board if it has features or settings +that can be modified from Home Assistant. The value for `board` +is the value in the `board` field returned by `/os/info`. + +Boards with such options are documented below. + + + + + +If running on a yellow board, returns current values for its settings. + +**Returned data:** + +| key | type | description | +| ------------- | ------- | ---------------------------- | +| disk_led | boolean | Is the disk LED enabled | +| heartbeat_led | boolean | Is the heartbeat LED enabled | +| power_led | boolean | Is the power LED enabled | + +**Example response:** + +```json +{ + "disk_led": true, + "heartbeat_led": true, + "power_led": false +} +``` + + + + + +If running on a yellow board, changes one or more of its settings. + +**Payload:** + +| key | type | description | +| ------------- | ------- | ---------------------------------------- | +| disk_led | boolean | Enable/disable disk LED enabled | +| heartbeat_led | boolean | Enable/disable the heartbeat LED enabled | +| power_led | boolean | Enable/disable the power LED enabled | + + + ### Resolution