---
updatedAt: 2025-06-25T01:15:32.000Z
agentTools:
  projectIndex: https://lan.developer.lifx.com/llms.txt
---

# Field types

## Simple types

### Uint8

A `1` byte positive integer.

### Uint16

A `2` byte positive integer.

### Uint32

A `4` byte positive integer.

### Uint64

An `8` byte positive integer

### Int16

A `2` byte negative or positive integer

### Float

A `4` byte float

### Bytes

An array of bytes

### String

A `NULL` terminated unicode string

### Bool

A `1` **bit** representing `true` or `false`

### BoolInt

A `1` byte integer where `0` represents `false` and `1` represents `true`

### Reserved

These are bytes that are reserved for future use. You should always set these to `0`.

## Structures

### Color

This packet represents a single [HSBK](https://lan.developer.lifx.com/docs/representing-color-with-hsbk) value. It is used in packets that set a different [HSBK](https://lan.developer.lifx.com/docs/representing-color-with-hsbk) value for devices with multiple zones.

|                                                |
| :--------------------------------------------- |
|                                                |
| `hue`: [Uint16](https://lan.developer.lifx.com/docs/field-types#uint16)        |
| `saturation`: [Uint16](https://lan.developer.lifx.com/docs/field-types#uint16) |
| `brightness`: [Uint16](https://lan.developer.lifx.com/docs/field-types#uint16) |
| `kelvin`: [Uint16](https://lan.developer.lifx.com/docs/field-types#uint16)     |

### Tile

This represents the information for a single device in a chain. It is used by the [StateDeviceChain (702)](https://lan.developer.lifx.com/docs/information-messages#statedevicechain---packet-702) packet

<HTMLBlock>{`
<table style="width: 100%; border-collapse: collapse;">
<thead>
<tr>
  <th style="border: 1px solid #ddd; padding: 8px;"></th>
</tr>
</thead>
<tbody>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"></td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p><code>accel_meas_x</code>: <a href="doc:field-types#int16">Int16</a><br>See <a href="doc:tile-control#tile-orientation">Tile Orientation</a></p>
</td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p><code>accel_meas_y</code>: <a href="doc:field-types#int16">Int16</a><br>See <a href="doc:tile-control#tile-orientation">Tile Orientation</a></p>
</td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p><code>accel_meas_z</code>: <a href="doc:field-types#int16">Int16</a><br>See <a href="doc:tile-control#tile-orientation">Tile Orientation</a></p>
</td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p><code>reserved6</code>: 2 <a href="doc:field-types#reserved">Reserved</a> bytes</p>
</td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p><code>user_x</code>: <a href="doc:field-types#float">Float</a><br>See <a href="doc:tile-control#tile-positioning">Tile Positions</a></p>
</td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p><code>user_y</code>: <a href="doc:field-types#float">Float</a><br>See <a href="doc:tile-control#tile-positioning">Tile Positions</a></p>
</td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p><code>width</code>: <a href="doc:field-types#uint8">Uint8</a><br>The number of zones that make up each row</p>
</td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p><code>height</code>: <a href="doc:field-types#uint8">Uint8</a><br>The number of zones that make up each column</p>
</td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p><code>supported_frame_buffers</code>: <a href="doc:field-types#uint8">Uint8</a><br>The number of frame buffers supported by the device</p>
</td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p><code>device_version_vendor</code>: <a href="doc:field-types#uint32">Uint32</a><br>The vendor id of the device (See <a href="doc:information-messages#stateversion---packet-33">StateVersion (33)</a>)</p>
</td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p><code>device_version_product</code>: <a href="doc:field-types#uint32">Uint32</a><br>The product id of the device (See <a href="doc:information-messages#stateversion---packet-33">StateVersion (33)</a>)</p>
</td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p><code>reserved7</code>: 4 <a href="doc:field-types#reserved">Reserved</a> bytes</p>
</td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p><code>firmware_build</code>: <a href="doc:field-types#uint64">Uint64</a><br>The epoch of the time the firmware was created (See <a href="doc:information-messages#statehostfirmware---packet-15">StateHostFirmware (15)</a>)</p>
</td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p><code>reserved8</code>: 8 <a href="doc:field-types#reserved">Reserved</a> bytes</p>
</td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p><code>firmware_version_minor</code>: <a href="doc:field-types#uint16">Uint16</a><br>The minor component of the firmware version (See <a href="doc:information-messages#statehostfirmware---packet-15">StateHostFirmware (15)</a>)</p>
</td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p><code>firmware_version_major</code>: <a href="doc:field-types#uint16">Uint16</a><br>The major component of the firmware version (See <a href="doc:information-messages#statehostfirmware---packet-15">StateHostFirmware (15)</a>)</p>
</td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p><code>reserved9</code>: 4 <a href="doc:field-types#reserved">Reserved</a> bytes</p>
</td>
</tr>
</tbody>
</table>
`}</HTMLBlock>

<br />

## Enums

### Services

*UInt8*

* **1**: UDP
* **2**: RESERVED1
* **3**: RESERVED2
* **4**: RESERVED3
* **5**: RESERVED4

### Direction

*UInt8*

* **0**: REVERSED (moving towards zone 0)
* **1**: NOT\_REVERSED (moving away from zone 0)

### Waveform

*UInt8*

* **0**: SAW
* **1**: SINE
* **2**: HALF\_SINE
* **3**: TRIANGLE
* **4**: PULSE

### MultiZoneApplicationRequest

*UInt8*

* **0**: NO\_APPLY
* **1**: APPLY
* **2**: APPLY\_ONLY

### MultiZoneEffectType

*UInt8*

* **0**: OFF
* **1**: MOVE
* **2**: RESERVED1
* **3**: RESERVED2

### MultiZoneExtendedApplicationRequest

*UInt8*

* **0**: NO\_APPLY
* **1**: APPLY
* **2**: APPLY\_ONLY

### TileEffectType

*UInt8*

* **0**: OFF
* **1**: RESERVED1
* **2**: MORPH
* **3**: FLAME
* **4**: RESERVED2
* **5**: SKY

### TileEffectSkyType

*UInt8*

* **0**: SUNRISE
* **1**: SUNSET
* **2**: CLOUDS

### TileEffectSkyPalette

*Note: This is not an enum, but a reference for the offsets used to specify different colors in the Sky Effect.*

* **0**: SKY
* **1**: NIGHT\_SKY
* **2**: DAWN\_SKY
* **3**: DAWN\_SUN
* **4**: FULL\_SUN
* **5**: FINAL\_SUN

### LightLastHevCycleResult

*UInt8*

* **0**: SUCCESS
* **1**: BUSY
* **2**: INTERRUPTED\_BY\_RESET
* **3**: INTERRUPTED\_BY\_HOMEKIT
* **4**: INTERRUPTED\_BY\_LAN
* **5**: INTERRUPTED\_BY\_CLOUD
* **255**: NONE