# Nanoleaf

> Read and control Nanoleaf lights on the same network as your Lodol Local installation.

App · 19 actions. Web page: https://docs.lodol.com/docs/integrations/nanoleaf

## Actions

### Get brightness

Get brightness.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Nanoleaf.

**Example output**

```json
{
  "data": {
    "value": 1
  }
}
```

### Get color mode

Get color mode.

**Inputs**: None.

**Outputs**

- `data` (text): The response from Nanoleaf.

**Example output**

```json
{
  "data": "example"
}
```

### Get color temperature

Get color temperature.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Nanoleaf.

**Example output**

```json
{
  "data": {
    "value": 1
  }
}
```

### Get current Nanoleaf effect

Get current Nanoleaf effect.

**Inputs**: None.

**Outputs**

- `data` (text): The response from Nanoleaf.

**Example output**

```json
{
  "data": "example"
}
```

### Get hue

Get hue.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Nanoleaf.

**Example output**

```json
{
  "data": {
    "value": 1
  }
}
```

### Get Nanoleaf device details

Get Nanoleaf device details.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Nanoleaf.

**Example output**

```json
{
  "data": {
    "effects": {
      "effectsList": [
        "example"
      ],
      "select": "example"
    },
    "firmwareVersion": "example",
    "manufacturer": "example",
    "model": "example",
    "name": "example",
    "panelLayout": {},
    "serialNo": "example",
    "state": {
      "brightness": {
        "value": 1
      },
      "colorMode": "example",
      "ct": {
        "value": 1
      },
      "hue": {
        "value": 1
      },
      "on": {
        "value": true
      },
      "sat": {
        "value": 1
      }
    }
  }
}
```

### Get Nanoleaf effects

Get Nanoleaf effects.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Nanoleaf.

**Example output**

```json
{
  "data": {
    "effectsList": [
      "example"
    ],
    "select": "example"
  }
}
```

### Get Nanoleaf layout orientation

Get Nanoleaf layout orientation.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Nanoleaf.

**Example output**

```json
{
  "data": {
    "max": 1,
    "min": 1,
    "value": 1
  }
}
```

### Get Nanoleaf light state

Get Nanoleaf light state.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Nanoleaf.

**Example output**

```json
{
  "data": {
    "brightness": {
      "value": 1
    },
    "colorMode": "example",
    "ct": {
      "value": 1
    },
    "hue": {
      "value": 1
    },
    "on": {
      "value": true
    },
    "sat": {
      "value": 1
    }
  }
}
```

### Get Nanoleaf panel layout

Get Nanoleaf panel layout.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Nanoleaf.

**Example output**

```json
{
  "data": {
    "numPanels": 1,
    "positionData": [
      {
        "o": 1,
        "panelId": 1,
        "shapeType": 1,
        "x": 1,
        "y": 1
      }
    ],
    "sideLength": 1
  }
}
```

### Get power

Get power.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Nanoleaf.

**Example output**

```json
{
  "data": {
    "value": true
  }
}
```

### Get saturation

Get saturation.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Nanoleaf.

**Example output**

```json
{
  "data": {
    "value": 1
  }
}
```

### Identify Nanoleaf device

Identify Nanoleaf device.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Nanoleaf.

**Example output**

```json
{
  "data": {}
}
```

### List Nanoleaf effects

List Nanoleaf effects.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Nanoleaf.

**Example output**

```json
{
  "data": [
    "example"
  ]
}
```

### Select Nanoleaf effect

Select Nanoleaf effect.

**Inputs**

- Effect (`effect`, text, required): Effect from the device’s presets.

**Outputs**

- `data` (object): The response from Nanoleaf.

**Example output**

```json
{
  "data": {}
}
```

### Set Nanoleaf brightness

Set Nanoleaf brightness.

**Inputs**

- Brightness (`brightness`, number, required): Brightness as a percentage. From 0 to 100.

**Outputs**

- `data` (object): The response from Nanoleaf.

**Example output**

```json
{
  "data": {}
}
```

### Set Nanoleaf color

Set Nanoleaf color.

**Inputs**

- Hue (`hue`, number, required): Color hue in degrees. From 0 to 360.
- Saturation (`saturation`, number, required): Color saturation as a percentage. From 0 to 100.

**Outputs**

- `data` (object): The response from Nanoleaf.

**Example output**

```json
{
  "data": {}
}
```

### Set Nanoleaf color temperature

Set Nanoleaf color temperature.

**Inputs**

- Kelvin (`kelvin`, number, required): White light color temperature in kelvin. From 1200 to 6500.

**Outputs**

- `data` (object): The response from Nanoleaf.

**Example output**

```json
{
  "data": {}
}
```

### Set Nanoleaf power

Set Nanoleaf power.

**Inputs**

- On (`on`, true/false, required): Turn the lights on or off.

**Outputs**

- `data` (object): The response from Nanoleaf.

**Example output**

```json
{
  "data": {}
}
```
