From 6ff1b31155a154b3694452174c07428497ae8c6a Mon Sep 17 00:00:00 2001 From: Daniel Hall Date: Fri, 14 Aug 2015 16:50:41 +1000 Subject: [PATCH 1/2] Document messages for groups --- messages/device.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/messages/device.md b/messages/device.md index d6ff69b..43e273d 100644 --- a/messages/device.md +++ b/messages/device.md @@ -34,6 +34,10 @@ * [GetInfo - 34](#getinfo---34) * [StateInfo - 35](#stateinfo---35) * [Acknowledgement - 45](#acknowledgement---45) + * [GetLocation - 48](#getlocation---48) + * [StateLocation - 50](#statelocation---50) + * [GetGroup - 51](#getgroup---51) + * [StateGroup - 53](#stategroup---53) * [EchoRequest - 58](#echorequest---58) * [EchoResponse - 59](#echoresponse---59) @@ -340,6 +344,38 @@ Provides run-time information of device. Response to any message sent with _ack\_required_ set to 1. See [message header frame address](../header.md#frame-address). +### GetLocation - 48 + +Ask the bulb to return its location information. +No payload is required. +Causes the device to transmit a [StateLocation](statelocation---50) message. + +### StateLocation - 50 + +Device location. + +| Field | Type | +|-------|------| +| location | byte array, size: 16 | +| label | string, size: 32 | +| updated_at | unsigned 64-bit integer | + +### GetGroup - 51 + +Ask the bulb to return its group membership information. +No payload is required. +Causes the device to transmit a [StateGroup](stategroup---58) message. + +### StateGroup - 53 + +Device group. + +| Field | Type | +|-------|------| +| group | byte array, size: 16 | +| label | string, size: 32 | +| updated_at | unsigned 64-bit integer | + ### EchoRequest - 58 Request an arbitrary payload be echoed back. From 6518ebf55f9841f86432b9328216c86b4d9ff8fc Mon Sep 17 00:00:00 2001 From: deepfryed Date: Mon, 17 Aug 2015 14:07:11 +1000 Subject: [PATCH 2/2] fix state group link --- messages/device.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/messages/device.md b/messages/device.md index 43e273d..4053b39 100644 --- a/messages/device.md +++ b/messages/device.md @@ -364,7 +364,7 @@ Device location. Ask the bulb to return its group membership information. No payload is required. -Causes the device to transmit a [StateGroup](stategroup---58) message. +Causes the device to transmit a [StateGroup](stategroup---53) message. ### StateGroup - 53