home-assistant.io/source/_integrations/nightscout.markdown
2022-03-30 21:50:39 +02:00

1.4 KiB

title, description, ha_category, ha_release, ha_iot_class, ha_config_flow, ha_codeowners, ha_domain, ha_quality_scale, ha_platforms, ha_integration_type
title description ha_category ha_release ha_iot_class ha_config_flow ha_codeowners ha_domain ha_quality_scale ha_platforms ha_integration_type
Nightscout Instructions on how to integrate your Nightscout CGM data into Home Assistant.
Sensor
0.115 Cloud Polling true
@marciogranzotto
nightscout platinum
sensor
integration

The Nightscout integration allows you to view your CGM data from Nightscout in Home Assistant.

{% include integrations/config_flow.md %}

If your Nightscout instance requires authentication for API access, you are also required to input the API Key in the configuration form.

Sensor

If you have a sensor session running, and you have enabled the Nightscout integration, you should see a sensor.blood_glucose entity.

The icon changes to indicate the direction or trend, of the glucose readings. The state is the last reading from Nightscout, and you can see other information about the reading in the sensor's attributes.

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:
  - platform: numeric_state
    entity_id: sensor.blood_glucose
    below: "65" 
  condition:
    - condition: time
      after: "22:00:00"
      before: "06:00:00"
  action:
    - service: light.turn_on
      target:
        entity_id: light.kitchen