The Mule and Miner works in two modes, and that is the real differentiator for this device. It can be a very convenient thing that just plugs in and sends all your information into the cloud and onto your phone, the height of convenience. Or it can be a fully local device where the information never leaves your home. That is all in your hands, right now.

You pick a mode when you set the device up. Normally that would be a permanent decision, or at least one that needs a reset on the device before you can set it up differently. Not with the Mule and Miner. You can move between them whenever you want, as often as you want.

The Mule and Miner has also learned a few new ways to reach your machine since I first wrote this post, so here is what each mode does today, and how to go back and forth.

The ways it reaches your machine

Before the modes, a quick word on where the data comes from, because it matters for local mode.

  • A WiFi SD card. An ez Share or a Toshiba FlashAir sits in your machine's SD slot, and the Mule and Miner reads the card wirelessly. This is the original way, and it works on the ResMed AirSense 10 and 11, the AirCurve 10 and 11, and, through an ez Share, the BMC / React Health Luna G3.
  • Bluetooth on an AirSense 11 or AirCurve 11. No WiFi SD card at all. The Mule and Miner pairs with the machine's own Bluetooth, the connection the myAir app uses, and streams your night while you sleep. Your SD card still gets every night, as a fallback. I wrote the pairing up in How to pair your Mule & Miner to the myAir connection.
  • Bluetooth on a Philips DreamStation 2. No WiFi SD card either. The Mule and Miner pairs with the machine once and reads each night after therapy, then brings it to CpapDash cloud, or to HMS-CPAP on your own computer.

Cloud mode: plug it in, claim it, done

In cloud mode the Mule and Miner talks to your private profile on CpapDash.com. It checks in with your profile, reads your nights, and sends them straight up to your account.

This is really powerful in a couple of ways. If you are a ResMed user, ResMed machines write to the SD card as the night happens, minute by minute, rather than dumping everything in the morning. The Mule and Miner reads the file your machine is actively writing and sends it up as it grows. Over Bluetooth on an AirSense 11 or AirCurve 11, your flow and pressure stream live. So you open the CpapDash app and watch your night fill in close to real time, while you are still in it. On a DreamStation 2, the night arrives after therapy: once a day at the time you pick, or whenever you tap Sync now.

Setting up is as easy as it gets. Connect the Mule and Miner, select cloud mode, claim your device in the app. That is the whole job. There is nothing to install and nothing running on a PC at home. I laid the onboarding out step by step in So you bought the Mule & Miner. What now?.

Local mode: your nights stay home, in HMS-CPAP

Local mode keeps everything in the house. No account, no cloud, no login. What it looks like depends on how the Mule and Miner reaches your machine.

With a WiFi SD card: your card becomes a website on your own network

With a card, local mode is the one I sometimes call proxy mode, and the two names mean the same thing.

In this mode the Mule and Miner stands in for the ez Share card on your home network. What appears on your LAN is the card itself, with every file your machine has written to it. A Toshiba FlashAir is read the same way as an ez Share.

Your card served as a plain website on your own network, one folder per night, every raw file your machine wrote

That opens up a lot. Any script or application on your network can pull those files down and hand them to whatever you like. One of them is dropping the raw files into the folder OSCAR watches, so OSCAR always has last night ready when you open it. Another is HMS-CPAP, which polls the card through the Mule and Miner and charts the night as it grows.

With Bluetooth: the night streams straight to HMS-CPAP

On an AirSense 11 or AirCurve 11, the Mule and Miner can send the night to HMS-CPAP on your own computer instead of to the cloud. This is the one for when your desktop is too far from the bedroom for its own Bluetooth: the Mule and Miner holds the machine's Bluetooth pairing and bridges that gap.

On the unit, set the HMS-CPAP address to your computer's IP address or hostname (nothing else, no ws://, no port, no path), and the port, 8894. That is the same port HMS-CPAP listens on for a Sleep Bridge Lite, so if HMS-CPAP runs in Docker, publish 8894 too (the Home Assistant add-on already does). From then on the night arrives live, it is imported as a session when it ends, and with MQTT on, every event and every mask on and off goes to Home Assistant as it happens. HMS-CPAP's Devices page lists the unit.

A Philips DreamStation 2 goes to HMS-CPAP the same way, set up the same way: the HMS-CPAP address and port on the unit. The difference is the timing. A DreamStation 2 night is not live: it is read after therapy, once a day at the time you pick in HMS-CPAP's Settings, or only when you ask. Use miner firmware 6.0.2 or newer. On the unit's card on HMS-CPAP's Devices page, turn on DreamStation 2 Bluetooth (the miner restarts with it), then Pair DreamStation 2: the page shows six digits, check they match the ones on the machine, press Codes match and confirm on the machine. Pair with the blower off, and remember the machine pairs with one device at a time. Beside the imported nights, HMS-CPAP keeps the machine's files in a card's layout, which OSCAR 2.1.1 imports like a card.

One thing to know: a Mule and Miner that reads a WiFi SD card does not stream to HMS-CPAP this way. With a card, local mode is the proxy above. If a card unit gets pointed at HMS-CPAP anyway, its card on the Devices page says so and offers Switch to the CpapDash cloud.

HMS-CPAP, the app on the local side

My own path was always the local one. I wanted my therapy in Home Assistant, so I downloaded the files, parsed them locally, and pushed the numbers into my home lab. Over time I added trends and charts and a web UI, all of it running on my own network. That application is HMS-CPAP, it is open source, it is free, and you can grab it from my org at hms-homelab/hms-cpap.

It started as a Linux server because that is where my home lab lives. Today it runs on Windows (an installer, no admin rights needed), macOS, Linux, a Raspberry Pi, Docker, or inside Home Assistant as an add-on. Every one of those ends at the same setup wizard in your browser: where to store your data, where it comes from, which extras to turn on, and whether to start at boot. You can stay simple and just point it at your bridge, or go as deep as you want: SQLite, PostgreSQL or MySQL, Home Assistant over MQTT, a local sleep model that writes each night's summary with no network at all, and machine learning insights trained on your own history. Its card files land in a plain folder, so OSCAR and anything else can read the exact same data.

Prefer to watch it? This is HMS-CPAP being set up on Windows, with a Sleep Bridge Lite as the source, in five steps. The wizard is the same one you will see with a Mule and Miner:

If the all-local setup is what you are here for, I wrote the long version of it in The automated, local-first way to see your sleep data.

Switching from cloud to local

You do this from the app, because in cloud mode the device is still checking in with the cloud, so the cloud can pass the change down to it.

Open Devices, find your Mule and Miner in the list, and press Switch to Local Mode.

In CpapDash, open Devices and press Switch to Local Mode on your Mule and Miner

Two things to know before you press it. The device controls stay locked until your Mule and Miner has been online and syncing for a couple of minutes, so if the button looks unavailable, give it a moment and it will unlock on its own. And the switch is queued rather than instant. The device picks it up on its next check-in and then reboots itself into local mode. Your WiFi settings are kept through all of this, so there is nothing to type back in.

Once it is back up, open a browser and go to http://cpapdash.local. That is the Mule and Miner's own page, sitting on your network. The heading tells you where you are, and in this mode it reads ezShare Proxy mode. From there you can browse everything on the card, check the device status, and read the logs.

Switching from local back to cloud

Once the device is local it stops reporting to the cloud, so the cloud has no way to reach it any more. The switch back lives on your side of the network.

With a card, go to http://cpapdash.local and look just below the DATALOG browse button. There is a green button that reads Switch to Cloud Mode. Press it, confirm, and the bridge reboots and reconnects to your profile. Your WiFi settings survive this one too, so your nights simply start flowing up again.

On the bridge's own page at cpapdash.local, the green Switch to Cloud Mode button sits below the DATALOG browse button

A unit that HMS-CPAP lists on its Devices page has Switch to the CpapDash cloud right there, which sends it back to the cloud.

At this point you might be wondering why this thing is so complicated. So many UIs, so many actions. And you would be right. It is a little complicated, and I work day and night to make it easier for you.

So, two heads ups.

If your device is in cloud mode, http://cpapdash.local will not render for you. That address only starts answering once the device is in local mode, and until then the switch lives in Devices in the app.

And when you are in local mode, your device will show as offline on CpapDash.com. It stopped reporting to the cloud, which is exactly what you told it to do.

Nothing gets lost when you switch

The SD card in your machine is the source of truth, and it stays that way in both modes. The Mule and Miner reads that card. It never writes to it, and it cannot write to it. Over Bluetooth there is no WiFi card involved, and your SD card still gets every night, as a fallback.

The only things that put data on that card are your machine and you. Pulling the card and editing it by hand is not something I would recommend, because the layout is written in a specific way for the machine and for the parsers to make sense of it.

Which means moving between modes does not put your history at risk. If you spend a few days in local mode and then switch back to cloud, the cloud picks up from the day it stopped hearing from you and pulls everything through to last night. HMS-CPAP does the same thing on the local side: it compares what is already in its own database against what is on the card, and fills in whatever is missing.

So you can move back and forth as much as you like, and the data catches up on its own either way.

That is dual mode

The Mule and Miner was not designed as a dual mode device at the start. It was one or the other, and you picked. Enough people told me they wanted their data local, or wanted to try the cloud and then take it back home again, that being able to move between them became the obvious thing to build. It is here now, and it is yours to flip whenever you feel like it.