GraphQL: Send Setpoints
To send a command to the device (e.g., turning it OFF), use the createSetpoint
mutation:
mutation createSetpoint {
createSetpointBoolean(setpoints: [
{
characteristicUuid: "dfdd98be-a12a-4977-a9af-9485ed859e77",
componentUuid: "00f80405-55a3-4d8e-91c3-14a10f028cf9",
serviceUuid: "cb6b38a7-824f-4529-843f-acad06a67e69",
systemUuid: "e787f31a-7dad-460c-9b32-701513c3b2d3",
value: false
}
]) {
receiptIds {
receiptId
}
}
}
- The receiptId is sent back to the device as confirmation
- This enables a command history, tracking when commands were sent and whether the device confirmed or rejected them