Dexcom
The Dexcom integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] allows you to view your CGM data from Dexcom in Home Assistant.
Prerequisites
You will need to set up the Dexcom Share feature in your Dexcom G6 or G7 app to use this integration. Enabling the Dexcom Share service requires setup of at least one follower. The integration will use the Dexcom user’s credentials, not the follower’s credentials. If you want to access a dependent’s data, use the dependent’s own credentials. Home Assistant cannot select a dependent profile when you sign in with a parent or manager account.
Configuration
To add the Dexcom service to your Home Assistant instance, use this My button:
Manual configuration steps
If the above My button doesn’t work, you can also perform the following steps manually:
-
Browse to your Home Assistant instance.
-
In the bottom right corner, select the
Add Integration button. -
From the list, select Dexcom.
-
Follow the instructions on screen to complete the setup.
Troubleshooting
Validate your Dexcom account credentials by logging on to the Dexcom Account Management website for your region:
For users in the United States: uam1.dexcom.com. For users outside of the United States: uam2.dexcom.com. For users in Japan: uam.dexcom.jp.
Sensor
If you have a sensor session running, and once you have enabled the Dexcom integration, you should see the following sensors:
- Glucose value
- Glucose trend
- Glucose reading time: the time Dexcom recorded the latest reading.
The Glucose reading time sensor shows when the latest reading was taken. For example, “3 minutes ago”. Use it to check how recent the reading is. When your glucose level stays the same, the Glucose value sensor doesn’t change, so its last-changed time doesn’t tell you how old the reading is.
If Dexcom has no reading from the last 10 minutes, for example when the transmitter is out of range, the sensors show as unknown.
Example automation
- alias: "Overnight low kitchen lights"
description: "Turn on the lights in the kitchen if my blood sugar drops low overnight"
triggers:
- trigger: numeric_state
entity_id: sensor.dexcom_YOUR_USERNAME_glucose_value
below: 65
conditions:
- condition: time
after: "22:00:00"
before: "06:00:00"
actions:
- action: light.turn_on
target:
entity_id: light.kitchen