Dexcom
The Dexcom integration 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 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.
Configuration
Adding Dexcom to your Home Assistant instance can be done via the user interface, by using this My button:
If the above My button doesn’t work, you can also perform the following steps manually:
-
Browse to your Home Assistant instance.
-
In the sidebar click on Settings.
-
From the configuration menu select: Devices & Services.
-
In the bottom right, click on the Add Integration button.
-
From the list, search and select “Dexcom”.
-
Follow the instruction on screen to complete the set up.
Server
There are two Dexcom Share servers, US
for United States customers, and OUS
for all customers outside of the United States.
Unit of measurement
The integrations allows both mg/dL
and mmol/l
units of measurement for blood glucose values. To change your preferred unit of measurement, go to Settings -> Devices & Services in the UI, and click OPTIONS
.
Sensor
If you have a sensor session running, and once you have enabled the Dexcom integration, you should see the following sensors:
- Blood glucose value sensor
- Blood glucose trend sensor
Example Automation
- id: '1234567890123'
alias: "overnight_low_kitchen_lights"
description: Turn on the lights in the kitchen if my blood sugar drops low overnight
trigger:
- below: '65'
entity_id: sensor.dexcom_YOUR_USERNAME_glucose_value
platform: numeric_state
condition: time
after: "22:00:00"
before: "06:00:00"
action:
- service: light.turn_on
target:
entity_id: light.kitchen