Git Product home page Git Product logo

esphome-dexcom's Introduction

esphome-dexcom

Dexcom G5/G6 glucose data in ESP Home and Home Assistant.

Example config

substitutions:
  # Set the transmitter id of your Dexcom device here
  transmitter_id: 8YD26N
  use_alternative_bt_channel: "False"

esphome:
  name: "dexcom"

external_components:
  - source: github://Fabian-Schmidt/esphome-dexcom
    # refresh: always

esp32:
  board: esp32dev

deep_sleep:

esp32_ble_tracker:
  scan_parameters:
    interval: 10ms
    window: 10ms
    active: false

dexcom_ble_client:
  id: dexcom_ble_client_id
  transmitter_id: ${transmitter_id}
  use_alternative_bt_channel: ${use_alternative_bt_channel}
  on_disconnect: 
    - deep_sleep.enter:
        # Every 5 minutes Dexcom sensor wakes up.
        # Pre wake up connect to WiFi, API, MQTT etc.
        sleep_duration: 4.5min

sensor:
  - platform: dexcom_ble_client
    type: GLUCOSE_IN_MG_DL
    name: Glucose in mg/dl
    # expire_after: 10.5min # if using mqtt recommendation to set `expire_after` option.
  - platform: dexcom_ble_client
    type: GLUCOSE_IN_MMOL_L
    name: Glucose in mmol/l
  - platform: dexcom_ble_client
    type: GLUCOSE_TREND
    name: Glucose trend
  - platform: dexcom_ble_client
    type: GLUCOSE_PREDICT_IN_MG_DL
    name: Glucose predict in mg/dl
  - platform: dexcom_ble_client
    type: GLUCOSE_PREDICT_IN_MMOL_L
    name: Glucose predict in mmol/l
  - platform: dexcom_ble_client
    type: SENSOR_AGE
    name: Sensor age
  - platform: dexcom_ble_client
    type: SENSOR_SESSION_AGE
    name: Sensor session age
  - platform: dexcom_ble_client
    type: SENSOR_REMAINING_LIFETIME
    name: Sensor remaining lifetime
  - platform: dexcom_ble_client
    type: SENSOR_SESSION_REMAINING_LIFETIME
    name: Sensor session remaining lifetime

Full example configuration

Acknowledgement

Thanks to https://github.com/TheEpicBigBoss/Dexcom-ESP32-Reader and https://github.com/NightscoutFoundation/xDrip for the research.

esphome-dexcom's People

Contributors

fabian-schmidt avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

janrpn

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.