SleepIQ is a service provided by Select Comfort and sold as an option for Sleep Number beds. The system collects data about the bed (including individual air chamber data for dual chamber beds). This information includes whether or not a sleeper is in bed, the current sleep number setting, the pressure of the air chamber, and it's link status. This data can then be analyzed for any number of purposes, including improving sleep.
The most recent release is SleepIQ API 0.1.0, released February 26, 2017.
To add a dependency on SleepIQ API using Maven, use the following:
<dependency>
<groupId>org.syphr</groupId>
<artifactId>sleepiq-api</artifactId>
<version>0.1.0</version>
</dependency>
To add a dependency using Gradle:
dependencies {
compile 'org.syphr:sleepiq-api:0.1.0'
}
First, create an instance:
SleepIQ sleepiq = SleepIQ.create(new Configuration().withUsername("username")
.withPassword("password"));
Next, pull data:
List<Sleeper> sleepers = sleepiq.getSleepers();
System.out.println(sleepers);
List<Bed> beds = sleepiq.getBeds();
System.out.println(beds);
for (Bed bed : beds)
{
System.out.println(sleepiq.getPauseMode(bed.getBedId()));
}
FamilyStatus familyStatus = sleepiq.getFamilyStatus();
System.out.println(familyStatus);