REST question

Which log? If you mean the one in the supervisor tab, no.
Here’s the whole log (it’s short because I shut down for an approaching storm).

System log

Log provider
Supervisor
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] udev.sh: executing... 
[02:11:47] INFO: Update udev informations
[cont-init.d] udev.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
20-05-16 02:11:48 INFO (MainThread) [supervisor.bootstrap] Use the old homeassistant repository for machine extraction
20-05-16 02:11:48 INFO (MainThread) [__main__] Initialize Supervisor setup
20-05-16 02:11:48 INFO (MainThread) [supervisor.bootstrap] Setup coresys for machine: qemux86-64
20-05-16 02:11:48 INFO (SyncWorker_0) [supervisor.docker.supervisor] Attach to Supervisor homeassistant/amd64-hassio-supervisor with version 222
20-05-16 02:11:48 INFO (MainThread) [__main__] Setup Supervisor
20-05-16 02:11:48 INFO (MainThread) [supervisor.utils.gdbus] Connect to dbus: org.freedesktop.systemd1 - /org/freedesktop/systemd1
20-05-16 02:11:48 INFO (MainThread) [supervisor.utils.gdbus] Connect to dbus: org.freedesktop.hostname1 - /org/freedesktop/hostname1
20-05-16 02:11:48 WARNING (MainThread) [supervisor.dbus.rauc] Host has no rauc support. OTA updates have been disabled.
20-05-16 02:11:48 INFO (MainThread) [supervisor.utils.gdbus] Connect to dbus: org.freedesktop.NetworkManager - /org/freedesktop/NetworkManager/DnsManager
20-05-16 02:11:48 INFO (MainThread) [supervisor.host.info] Update local host information
20-05-16 02:11:48 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
20-05-16 02:11:48 INFO (MainThread) [supervisor.host.services] Update service information
20-05-16 02:11:48 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
20-05-16 02:11:48 INFO (MainThread) [supervisor.host.network] Update local network DNS information
20-05-16 02:11:48 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager
20-05-16 02:11:48 INFO (MainThread) [supervisor.host.sound] Update PulseAudio information
20-05-16 02:11:48 INFO (MainThread) [supervisor.host.apparmor] Load AppArmor Profiles: {'hassio-supervisor'}
20-05-16 02:11:48 INFO (MainThread) [supervisor.host.services] Reload local service hassio-apparmor.service
20-05-16 02:11:48 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.systemd1.Manager.ReloadOrRestartUnit on /org/freedesktop/systemd1
20-05-16 02:11:48 INFO (SyncWorker_2) [supervisor.docker.interface] Attach to homeassistant/amd64-hassio-cli with version 25
20-05-16 02:11:48 INFO (SyncWorker_2) [supervisor.docker.interface] Attach to homeassistant/amd64-hassio-multicast with version 2
20-05-16 02:11:48 INFO (SyncWorker_5) [supervisor.docker.interface] Attach to homeassistant/amd64-hassio-dns with version 9
20-05-16 02:11:48 INFO (SyncWorker_0) [supervisor.docker.interface] Attach to homeassistant/amd64-hassio-audio with version 14
20-05-16 02:11:48 INFO (MainThread) [supervisor.plugins.cli] Start cli plugin
20-05-16 02:11:48 INFO (MainThread) [supervisor.plugins.multicast] Start Multicast plugin
20-05-16 02:11:48 INFO (SyncWorker_11) [supervisor.docker.interface] Clean hassio_cli application
20-05-16 02:11:48 INFO (MainThread) [supervisor.plugins.dns] Start CoreDNS plugin
20-05-16 02:11:48 INFO (SyncWorker_7) [supervisor.docker.interface] Clean hassio_multicast application
20-05-16 02:11:48 INFO (MainThread) [supervisor.plugins.audio] Start Audio plugin
20-05-16 02:11:48 INFO (SyncWorker_3) [supervisor.docker.interface] Clean hassio_dns application
20-05-16 02:11:48 INFO (MainThread) [supervisor.misc.forwarder] Start DNS port forwarding to 172.30.32.3
20-05-16 02:11:48 INFO (SyncWorker_9) [supervisor.docker.interface] Clean hassio_audio application
20-05-16 02:11:49 INFO (SyncWorker_7) [supervisor.docker.multicast] Start Multicast homeassistant/amd64-hassio-multicast with version 2 - Host
20-05-16 02:11:49 INFO (SyncWorker_11) [supervisor.docker.cli] Start CLI homeassistant/amd64-hassio-cli with version 25 - 172.30.32.5
20-05-16 02:11:50 INFO (SyncWorker_3) [supervisor.docker.dns] Start DNS homeassistant/amd64-hassio-dns with version 9 - 172.30.32.3
20-05-16 02:11:50 INFO (MainThread) [supervisor.plugins.dns] Updated /etc/resolv.conf
20-05-16 02:11:51 INFO (SyncWorker_9) [supervisor.docker.audio] Start Audio homeassistant/amd64-hassio-audio with version 14 - 172.30.32.4
20-05-16 02:11:51 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-05-16 02:11:51 INFO (SyncWorker_15) [supervisor.docker.interface] Attach to homeassistant/qemux86-64-homeassistant with version 0.109.6
20-05-16 02:11:51 WARNING (MainThread) [supervisor.hassos] No Home Assistant Operating-System found!
20-05-16 02:11:52 INFO (MainThread) [supervisor.store.git] Load add-on /data/addons/git/a0d7b954 repository
20-05-16 02:11:52 INFO (MainThread) [supervisor.store.git] Load add-on /data/addons/core repository
20-05-16 02:11:52 INFO (MainThread) [supervisor.store] Load add-ons from store: 66 all - 66 new - 0 remove
20-05-16 02:11:52 INFO (MainThread) [supervisor.addons] Found 4 installed add-ons
20-05-16 02:11:52 INFO (SyncWorker_19) [supervisor.docker.interface] Attach to hassioaddons/sonweb-amd64 with version 0.10.0
20-05-16 02:11:52 INFO (SyncWorker_0) [supervisor.docker.interface] Attach to homeassistant/amd64-addon-ssh with version 8.5.4
20-05-16 02:11:52 INFO (SyncWorker_13) [supervisor.docker.interface] Attach to homeassistant/amd64-addon-samba with version 9.2.0
20-05-16 02:11:52 INFO (SyncWorker_2) [supervisor.docker.interface] Attach to hassioaddons/node-red-amd64 with version 6.2.0
20-05-16 02:11:52 INFO (MainThread) [supervisor.snapshots] Found 8 snapshot files
20-05-16 02:11:52 INFO (MainThread) [supervisor.discovery] Load 0 messages
20-05-16 02:11:52 INFO (MainThread) [supervisor.ingress] Load 3 ingress session
20-05-16 02:11:52 INFO (MainThread) [supervisor.secrets] Load Home Assistant secrets: 17
20-05-16 02:11:52 INFO (MainThread) [__main__] Run Supervisor
20-05-16 02:11:52 INFO (MainThread) [supervisor.api] Start API on 172.30.32.2
20-05-16 02:11:52 INFO (MainThread) [supervisor.addons] Phase 'initialize' start 0 add-ons
20-05-16 02:11:52 INFO (MainThread) [supervisor.addons] Phase 'system' start 1 add-ons
20-05-16 02:11:52 INFO (SyncWorker_6) [supervisor.docker.interface] Clean addon_a0d7b954_sonweb application
20-05-16 02:11:53 INFO (SyncWorker_6) [supervisor.docker.addon] Start Docker add-on hassioaddons/sonweb-amd64 with version 0.10.0
20-05-16 02:11:55 INFO (MainThread) [supervisor.api.security] /host/info access from a0d7b954_sonweb
20-05-16 02:11:58 INFO (MainThread) [supervisor.addons] Phase 'services' start 2 add-ons
20-05-16 02:11:58 INFO (SyncWorker_5) [supervisor.docker.interface] Clean addon_core_samba application
20-05-16 02:11:58 INFO (SyncWorker_19) [supervisor.docker.interface] Clean addon_core_ssh application
20-05-16 02:11:58 INFO (SyncWorker_5) [supervisor.docker.addon] Start Docker add-on homeassistant/amd64-addon-samba with version 9.2.0
20-05-16 02:11:58 INFO (SyncWorker_19) [supervisor.docker.addon] Start Docker add-on homeassistant/amd64-addon-ssh with version 8.5.4
20-05-16 02:12:03 INFO (SyncWorker_2) [supervisor.docker.interface] Start homeassistant/qemux86-64-homeassistant
20-05-16 02:12:14 INFO (MainThread) [supervisor.homeassistant] Detect a running Home Assistant instance
20-05-16 02:12:14 INFO (MainThread) [supervisor.addons] Phase 'application' start 1 add-ons
20-05-16 02:12:14 INFO (SyncWorker_8) [supervisor.docker.interface] Clean addon_a0d7b954_nodered application
20-05-16 02:12:14 INFO (SyncWorker_8) [supervisor.docker.addon] Start Docker add-on hassioaddons/node-red-amd64 with version 6.2.0
20-05-16 02:12:14 INFO (MainThread) [supervisor.api.security] /host/info access from a0d7b954_nodered
20-05-16 02:12:15 INFO (MainThread) [supervisor.api.security] /dns/info access from a0d7b954_nodered
20-05-16 02:12:19 INFO (MainThread) [supervisor.tasks] All core tasks are scheduled
20-05-16 02:12:19 INFO (MainThread) [supervisor.hwmon] Started Supervisor hardware monitor
20-05-16 02:12:19 INFO (MainThread) [supervisor.core] Supervisor is up and running
20-05-16 02:12:19 INFO (MainThread) [supervisor.host.info] Update local host information
20-05-16 02:12:19 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
20-05-16 02:12:19 INFO (MainThread) [supervisor.host.services] Update service information
20-05-16 02:12:19 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
20-05-16 02:12:19 INFO (MainThread) [supervisor.host.network] Update local network DNS information
20-05-16 02:12:19 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager
20-05-16 02:12:19 INFO (MainThread) [supervisor.host.sound] Update PulseAudio information
20-05-16 02:12:25 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-05-16 02:12:25 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-05-16 02:12:25 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-05-16 02:12:25 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-05-16 02:12:25 INFO (MainThread) [supervisor.homeassistant] Updated Home Assistant API token
20-05-16 02:12:25 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request running
20-05-16 02:12:25 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request running

How would I know?
Here’s how I installed HA, after installing docker:

apt-get install \
  apparmor-utils \
  avahi-daemon \
  dbus \
  jq \
  network-manager \
  socat

curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh" | bash -s

Supervised.

And I mean the home assistant log, not the supervisor log

And now, it’s working. All I did was to power down the server due to an approaching storm.
Thanks for enduring my dumb questions…

The word “custom” appears nowhere in /usr/share/hassio/homeassistant/home-assistant.log.

This is the first that I read there is different HA cores. What is the difference, and how did you determine which core I was using?

At the risk of boring you to tears… (only 732 posts to date!)

Nick- you never bore me. I’ve learned a lot reading your posts.

Its not just me, there are still 700+ other posts there :slight_smile:

But thanks. Help where I can.

How do you avoid it from triggering every time your BG moves by 1?
i.e., once the alert plays and you bolus, I would imagine you would want it to stop alerting you every minute until your BG is back in bounds.

I have an input boolean that defaults to on. I change it to off (via a switch) and monitor the state in an automation. When it switches to off, it triggers an automation to turn it back on in an hour or so. All of my alarm automations are also tied to the state of that input boolean. They wont trigger if the input boolean is off.

Neat, thanks.
I played around with it this afternoon and ended up using a ‘Delay node’
The node has a ‘rate limit’ function so that I can cap the messages passed through to 1 msg per 30 min.

Maybe not the most relevant place to ask, but since all you CGM’ers are in here maybe you can help.

I’m pulling my G6 CGM data from nightscout with the below code, but the data is in mg/dl. Nightscout is setup with mmol/l everywhere and my unit of measurement is mmol/l as well. Is there a conversion template or another way to translate this in mmol/l in hass?


  - platform: rest
    name: jon_cgm
    resource: !secret nightscout_url
    value_template: >
      sgv:{{value_json[0].sgv}}, trend:{{value_json[0].trend}}, direction:{{value_json[0].direction}}

  - platform: template
    sensors:
      jon_cgm_sgv:
        value_template: >
          {{ states('sensor.jon_cgm') | regex_findall_index("sgv:(\d+)") }}
        unit_of_measurement: "mmol/L”

According to a quick search:

1 mg/dL = 0.055 mmol/L

Value in mmol/L = Value in mg/dL x 0.0555

It is probably easier to remember that 18 is the conversion factor. So

value in mmol/L = value in mg/dL /18

Something for fans of multiplication or division.

1 Like

Thank you so much for this! My wife has T1 and had a low event last night but didn’t wake up from her alerts. We’re going to use this to have Alexa scream at her and do some other voodoo stuff!

Sure thing, thank you! Just a few updates: the integration has been approved by HA and you’ll see it in the next update (.113)! It also supports EU servers, mmol/L units optionally, and is a tad bit more stable.

1 Like

Looks like Sonos broke the TTS recently, so that’s a no-go now. I still have an automation set-up, but it takes a few minutes to trigger vs dexcom/sugarmate. Anyway to increase the update interval from dexcom?

In addition to the Nightscount REST data, I am also using the Dexcom Custom Component

There’s many moving parts in the Dexcom/Nightscout route, and sometimes something stops working and I am without a CGM reading for a while.

In Node-red, I automatically switch my reading from either the Nightscout/REST or the custom component- whichever works.

I haven’t tried it yet, but I just saw this: Frontend Panel for Diabetics using a Dexcom CGM

1 Like

The slow part is your phone/receiver. It only queries the CGM transmitter once every ten minutes to save the transmitter battery. However, I do the REST read every 15-seconds.