Devices
Devices, zones, temperatures and who may change them.
A device is one Orion bed. Each device has zones, the sides of the bed, and each zone holds its own temperature.
Device ids
Every request names a device by its id. Listing your devices returns the id of each one, with its zones, its temperature range and what you may do on it.
The serial number printed on the bed is for display only. Requests take the id.
Zones
A device with two zones has zone_a and zone_b. Lying in bed on your back, zone_a is on your left and zone_b is on your right. Seen from the foot of the bed, they are the other way round.
Each zone also names the person sleeping on it, so you can pick a zone by person instead of by side.
Temperatures
Every temperature is in degrees Celsius.
A zone has a target, the temperature you set, and a measured temperature, what the bed is at right now. The two differ while the bed heats or cools.
Each device has a range it can reach. A target outside that range is not refused: the bed moves it to the nearest temperature it can reach.
To set both sides in one request, give each zone its own target:
Thermal relief
Thermal relief runs a zone at full heat or full cooling for a set time, then puts it back as it was. It lasts 1 to 120 minutes, 30 by default.
Use it to warm or cool the bed quickly. Set a zone when you want an exact temperature.
Roles
Each person on a device is an owner, an admin or a guest. Owners and admins can act for the other people on the device: move them, set them away and change their schedules. Guests can control the bed, but act only for themselves.
Each device lists what you may do on it under permissions.can. A request you are not allowed to make answers 403 forbidden.