Nightscout

Nightscout 集成允许您在 Home Assistant 中查看来自 Nightscout 的 CGM 数据。

配置

要将 Nightscout integration 添加到您的 Home Assistant 实例中,请使用此 My 按钮:

手动配置步骤

如果上述 My 按钮不起作用,您也可以手动执行以下步骤:

如果您的 Nightscout 实例需要 API 访问的身份验证,您还需要在配置表单中输入 API 密钥。

传感器

如果您有传感器会话正在运行,并且您已启用 Nightscout 集成,您应该会看到 sensor.blood_glucose 实体。

图标会变化以指示血糖读数的方向或趋势。 状态是来自 Nightscout 的最后一次读数,您可以在传感器的属性中查看有关该读数的其他信息。

示例自动化

- alias: "overnight_low_kitchen_lights"
  description: 如果我的血糖在夜间降得很低,则打开厨房的灯
  triggers:
  - trigger: numeric_state
    entity_id: sensor.blood_glucose
    below: "65" 
  conditions:
    - condition: time
      after: "22:00:00"
      before: "06:00:00"
  actions:
    - action: light.turn_on
      target:
        entity_id: light.kitchen