Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.82 KB

README.md

File metadata and controls

52 lines (35 loc) · 1.82 KB

airsupply

Monitor a ResMed AirMini CPAP in Home Assistant, over Bluetooth Classic.

Each machine becomes a device belonging to one of your people: therapy hours, last used, state, therapy mode, pressures. It reads; it never writes.

Bluetooth Classic, not BLE, so the host must be within about ten metres of the machine.

Install

Add repository to your Home Assistant instance

Add https://github.com/ananthb/hass-addons as an add-on repository, install airsupply, open it from the sidebar. Install the Mosquitto broker add-on too; that is how the sensors get out. Add-on docs.

The card

Fourteen nights of therapy as bars against the four-hour mark. Install through HACS as a Dashboard repository pointing here, or copy card/airsupply-card.js into config/www/ and add it as a resource.

type: custom:airsupply-card
entity: sensor.airsupply_<machine>_therapy_hours

Options: nights (14), goal (4), title, only_owner. With only_owner: true the card shows only to the user the machine is assigned to.

card/preview.html opens in any browser with invented data.

Layout

airsupply/ the add-on image
card/ the Lovelace card
docs/protocol.md the transport, and what is known versus assumed
docs/verify.md what is confirmed against a real machine

Licence

GPL-3.0-only. libairmini (BSD-2-Clause) owns the protocol and is built from the commit in airsupply/libairmini.pin, not vendored.