npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

homebridge-bed-control

v1.3.8

Published

A homebridge plugin for controlling compatible smart beds.

Downloads

25

Readme

Homebridge Bed Control

Downloads Version GitHub issues GitHub pull requests verified-by-homebridge donate with bitcoin

HomeBridge plugin for compatible smart bed platforms

Copyright © 2024 hbblebc. All rights reserved.

This is an independent plugin and not affiliated with any bed platform company or manufacturer. If you have an issue with the plugin, file a ticket here. The bed companies will not provide support for any problems encountered as a result of using this plugin. Use at your own risk.

This repository contains a smart bed control plugin for homebridge that allows you to control various features of your supported beds. For example, sleep number setting (modeled as a lightbulb), head/foot position, outlets, foot warming, massage, etc. It will detect all the beds on your account and add them automatically.

This plugin uses a cloud API to control the beds (rather than a local network API). As such, downtime is possible if there are network issues or the API is unavailable.

Supported bed platforms

  • sleep number

Installation

Install through homebridge-config-ui-x.

Configuration

Configure in Homebridge UI following config.schema.json.

You can add any devices you don't want showing up in homebridge to the configuration ignore list with the syntax: <bedId>.<bedFeature>. You can find the bedId in the logs after you start the plugin. The possible list of bedFeature values are as follows:

  • privacy
  • foundation
  • <side>.occupancySensor
  • <side>.numberControl
  • <side>.responsiveAir
  • <side>.headControl
  • <side>.footControl
  • <side>.outlet
  • <side>.light
  • <side>.footwarming

Where <side> is one of leftSide, rightSide, or anySide. So a full example might look like:

-9223372018921241066.anySide.occupancySensor

This would ignore both occupancy sensors and hide them from homebridge on the bed matching the specified ID.

Usage

The platform supports the following HomeKit devices:

  • Inflation numbers and head/foot positions are modeled as a lightbulb in HomeKit.
    • This allows you to set the value easily. Keep this in mind when telling Siri to turn off all the lights.
  • Occupancy of the bed is a standard occupancy sensor
  • Outlets and lights are homekit outlets
  • Privacy mode and Responsive Air mode are homekit switches
  • Foot warming is modeled as a thermostat (This is a little odd but easy to learn)
    • The thermostat has 4 modes that map to the following temperature controls:
      • Off -> Off
      • Auto -> Low
      • Cool -> Medium
      • Heat -> High
    • The temperature slider for the thermostat allows you to control the foot warming timer. It only has a range of 50-100, so if you want to set the foot warming timer to a different value, you will need to use the bed app, or create an automation to to set the temperature every X minutes.

All the controls for a single bed will be grouped inside of a single device matching the name of the bed. If you would rather have separate controls, the HomeKit app will let you split the device into separate controls

Privacy Mode

When privacy mode is enabled, the API requests that provide occupancy status will be non-functional. As a result, when privacy mode is enabled for a bed, polling will be disabled and occupancy sensors will not activate when somebody is in bed. If you plan on keeping privacy mode enabled permenantly, I recommend keeping polling disabled and hiding the occupancy sensor devices from the accessory list using the platform settings.

Issues/Future Work

None for now