1.1.33 • Published 4 months ago

homebridge-sleepmepro v1.1.33

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Homebridge SleepMePro Plugin

A Homebridge plugin for controlling your SleepMe device through Apple HomeKit. This integration allows you to control the temperature of your SleepMe device and take advantage of HomeKit automation capabilities.

Features

  • Control your SleepMe device temperature from HomeKit
  • View current and target temperature in your Home app
  • Monitor heating state
  • Set scheduled temperature changes
  • "Warm Awake" feature for gradual temperature increase before wake times

Installation

You can install this plugin through the Homebridge UI or manually using npm:

npm install -g homebridge-sleepmepro

Configuration

Add the following to the "accessories" section of your Homebridge config.json:

{
  "accessory": "SleepMeAccessory",
  "name": "SleepMe Bed",
  "apiToken": "YOUR_SLEEPME_API_TOKEN",
  "unit": "C",
  "temperatureSchedule": [
    {
      "day": "everyday",
      "time": "22:00",
      "temperature": 28
    },
    {
      "day": "monday",
      "time": "06:30",
      "temperature": 20,
      "isWakeTime": true,
      "warmAwakeSettings": {
        "warmUpEnabled": true,
        "warmUpDuration": 30,
        "warmUpTemperature": 32
      }
    }
  ]
}

Configuration Options

ParameterTypeDefaultDescription
accessoryStringRequiredMust be "SleepMeAccessory"
nameStringRequiredName of your accessory that will appear in HomeKit
apiTokenStringRequiredYour SleepMe API token
unitString"C"Temperature unit: "C" for Celsius, "F" for Fahrenheit
temperatureScheduleArray[]Schedule for automatic temperature changes

Temperature Schedule

Each schedule entry supports the following properties:

PropertyTypeDescription
dayStringDay of the week (lowercase) or "everyday"
timeStringTime in 24-hour format (HH:MM)
temperatureNumberTarget temperature
isWakeTimeBooleanWhether this is a wake-up time (for warm awake feature)
warmAwakeSettingsObjectSettings for the warm awake feature

Warm Awake Settings

PropertyTypeDescription
warmUpEnabledBooleanEnable/disable warm-up before wake time
warmUpDurationNumberMinutes before wake time to start warming
warmUpTemperatureNumberPeak temperature for warm-up period

API Rate Limiting

The plugin implements rate limiting to prevent excessive API calls to the SleepMe servers. It limits calls to 9 requests per minute.

Troubleshooting

Authentication Issues

If you see "Authentication failed" errors in your Homebridge logs, verify that your API token is correct and not expired.

Device Status Errors

If the plugin fails to retrieve device status, check your network connection and ensure your SleepMe device is online and properly set up in the SleepMe app.

Development

Building

npm run build

Testing

npm test

Obtaining an API Token

To obtain your SleepMe API token: 1. Contact SleepMe customer support 2. Use the SleepMe developer portal (if available) 3. Use network inspection tools while logged into the SleepMe app

License

This project is licensed under the MIT License - see the LICENSE file for details.

Disclaimer

This plugin is not officially associated with SleepMe. Use at your own risk.

1.1.33

4 months ago

1.1.32

4 months ago

1.1.31

4 months ago

1.1.30

4 months ago

1.1.29

4 months ago

1.1.28

4 months ago

1.1.27

4 months ago

1.1.26

4 months ago

1.1.25

4 months ago

1.1.24

4 months ago

1.1.23

4 months ago

1.1.22

4 months ago

1.1.21

4 months ago

1.1.18

4 months ago

1.1.17

4 months ago

1.1.16

4 months ago

1.1.15

4 months ago

1.1.14

4 months ago

1.1.13

4 months ago

1.1.12

4 months ago

1.1.11

4 months ago

1.1.10

4 months ago

1.1.9

4 months ago

1.1.8

4 months ago

1.1.7

4 months ago

1.1.6

4 months ago

1.1.5

4 months ago

1.1.4

4 months ago

1.1.3

4 months ago

1.1.2

4 months ago

0.0.7

4 months ago

1.1.1

4 months ago

0.1.1

4 months ago

0.1.0

4 months ago

0.0.4

4 months ago

0.0.3

4 months ago

0.0.2

4 months ago

0.0.1

4 months ago