REST question

Can you confirm that this directory has your configuration.yaml ?

Yes, it does:

steve@nuc:/usr/share/hassio/homeassistant$ ls -al
total 257256
drwxr-xr-x  9 root root      4096 May 15 20:28 .
drwxr-xr-x 12 root root      4096 May 10 17:10 ..
-rw-r--r--  1 root root         2 Feb  9 09:50 automations.yaml
-rwxr--r--  1 root root      3078 Mar  4 14:26 cameras.yaml
drwxr-xr-x  2 root root      4096 Feb  9 09:50 .cloud
-rw-r--r--  1 root root      2792 May 15 13:03 configuration.yaml
drwxr-xr-x  3 root root      4096 May 15 13:00 custom_components
drwxr-xr-x  2 root root      4096 Feb  9 09:50 deps
-rw-r--r--  1 root root       512 Feb 10 15:20 groups.yaml
-rw-r--r--  1 root root         7 May 15 19:01 .HA_VERSION
-rw-r--r--  1 root root   5396331 May 15 20:28 home-assistant.log
-rw-r--r--  1 root root 257478656 May 15 20:28 home-assistant_v2.db
-rw-r--r--  1 root root       451 Feb 10 16:50 known_devices.yaml
-rwxr--r--  1 root root        55 Oct 18  2018 life360.conf
drwxrwxr-x  7 root root      4096 May 11 15:08 node-red
-rw-r--r--  1 root root      1122 Feb 10 08:01 options.xml
-rw-r--r--  1 root root    314113 May 15 20:27 OZW_Log.txt
-rw-r--r--  1 root root     32768 Feb 10 08:01 pyozw.sqlite
-rw-r--r--  1 root root         0 Feb  9 09:50 scenes.yaml
-rw-r--r--  1 root root         0 Feb  9 09:50 scripts.yaml
-rw-r--r--  1 root root       563 Feb 10 17:41 secrets.yaml
-rwxr--r--  1 root root      4290 Feb 10 23:22 sensors.yaml
drwxr-xr-x  2 root root      4096 May 15 20:16 .storage
drwxr-xr-x  2 root root      4096 Feb  9 09:50 tts
-rwxr--r--  1 root root      4788 Mar 12 23:51 ui-lovelace.yaml
drwxr-xr-x  2 root root      4096 Feb 17 22:57 www
-rwxr--r--  1 root root       656 Feb 10 17:41 zones.yaml
-rw-r--r--  1 root root     95826 May 15 19:01 zwcfg_0xd8b30543.xml
-rw-r--r--  1 root root       108 May 15 19:01 zwscene.xml

Recall that Home Assistant is in a docker container. I have been bitten by the docker folders not the same as Ubuntu folders before.

Does the log refer to starting custom components?

Sorry to keep posting - is that HA Core or the full supervised HA?

@gagebenne can you put this on HACS?

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!