This integration creates sensors from your myAir CPAP data like AHI Events/hr, Usage Minutes, Mask On/Off count, Mask Leak %. There is also a Last Sleep Data Recorded sensor to tell you the last date that myAir has recorded. This can be used to, say, notify you of your scores when they are updated in myAir in the morning.
By the nature of CPAP data, sensors will only update once per day (assuming your CPAP is used every day). For this reason, the integration only polls every 30 minutes. A service exists for each config that will force update if you want to automate the sync after you wake up.
-
Ensure that HACS is installed
-
- Find the ResMed integration in the HACS integration list and Download it
-
Restart Home Assistant
-
- Add the ResMed integration using the standard integration UI in Home Assistant
- CPAP AHI Events Per Hour
- CPAP Usage Minutes
- CPAP Mask On/Off Count
- CPAP Current Data Date
- This is the last date currently being displayed by the other sensors
- CPAP Mask Leak %
- CPAP Total myAir Score
- CPAP Sleep Data Last Collected
- This is the datetime the CPAP uploaded the most recent data
- Most Recent Sleep Date
- This is the most recent date for which data is available. This will match Current Data Date if you use your CPAP every day. An automation that triggers when these two sensors are different will signal that you have missed a night
Each config entry for this integration will create a service called resmed_myair.force_poll_{username} that will force an update from myAir.
This integration was reversed engineered from the myAir website. There are no guarantees that this will continue to work, as this is up to the whims of ResMed. Please DO NOT rely on this for any health-related matters.
This integration currently only connects to accounts from North America, Europe, and Australia. If you are in Asia and have access to the ResMed myAir website in your country (https://myair.resmed.com), please open an issue and offer yourself as a test subject.
If you want to contribute to this please read the Contribution guidelines
If you want to support the development of this component, please don't donate to me but instead donate to the Home Assistant development team.