I have Home Assistant OS 5.11 / Core 2021.2.3 installed in a rasPi3B, and been getting components running one at a time over the past few days. Curiously it feels that I often had to reboot the RasPi a few times before changes to configuration.yaml take effect - but that may be my inexperience.
This afternoon I started on adding my Google Calendar, so followed https://www.home-assistant.io/integrations/calendar.google/ to create and add the Google Client_id to configuration.yaml, and rebooted. On reboot the web interface briefly popped up a window, but was gone before I paid attention.
I now have a web interface comprising a blue horizontal bar and white screen - no text or icons. Page source contains one long line of HTML with javascript and lots of includes.
I may have done a hard reboot at this time - sorry, can’t remember.
I turned to the RasPi console, but the screen was blank, and keyboard had no effect. Samba was still working, and I was able to download the home-assistant.log from the config share…
2021-02-21 14:19:45 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for bureau_of_meteorology which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2021-02-21 14:19:57 WARNING (MainThread) [homeassistant.setup] Setup of recorder is taking over 10 seconds.
2021-02-21 14:20:26 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=24 from 2021-02-21 03:04:43.558439)
2021-02-21 14:20:45 WARNING (MainThread) [homeassistant.setup] Setup of coronavirus is taking over 10 seconds.
2021-02-21 14:20:45 ERROR (MainThread) [homeassistant.components.coronavirus] Timeout fetching coronavirus data
2021-02-21 14:20:49 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform snmp is taking over 10 seconds.
2021-02-21 14:20:52 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 301, in async_add_entities
tasks = [
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 301, in <listcomp>
tasks = [
File "/usr/src/homeassistant/homeassistant/components/coronavirus/sensor.py", line 21, in <genexpr>
CoronavirusSensor(coordinator, config_entry.data["country"], info_type)
File "/usr/src/homeassistant/homeassistant/components/coronavirus/sensor.py", line 38, in __init__
self.name = f"{coordinator.data[country].country} Coronavirus {info_type}"
TypeError: 'NoneType' object is not subscriptable
Coronavirus has been working for several days, and has no entries in the configuration.yaml file. This is the configuration.yaml …
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Text to speech
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
###################################################################
# Google calendar
google:
client_id: '##redacted##.apps.googleusercontent.com'
client_secret: '##redacted##'
#
# Draytek 2760 modem SNMP.
# use snmpwalk to find the oids available for this device, listed below
#
sensor Vigor2760_SysDescr:
- platform: snmp
name: "Router Description"
host: 192.168.1.1
community: 'public'
version: '2c'
baseoid: 1.3.6.1.2.1.1.1.0
# 1.3.6.1.2.1.1.1.0 = STRING: "DrayTek Corporation, Router Model: Vigor2760 Series, Version: 3.8.9.4_VT2, Build Date/Time:Dec 25 2018 13:46:53, CPU Usage: 1%, Memory Usage:66%"
# 1.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.7367 # sysObjectID
sensor Vigor2760_UpTime:
- platform: snmp
name: "Router uptime"
host: 192.168.1.1
community: 'public'
version: '2c'
baseoid: 1.3.6.1.2.1.1.3.0
accept_errors: true
unit_of_measurement: "minutes"
value_template: "{{((value | int) / 6000) | int}}"
# 1.3.6.1.2.1.1.3.0 = Timeticks: (1524000) 4:14:00.00 # sysUpTime
# 1.3.6.1.2.1.1.4 sysContact
# 1.3.6.1.2.1.1.5.0 = STRING: "DrayTek_Vigor_2760" # sysName
# next is a table of the available interfaces.
# interface number 5 = WAN2, which is Ehernet connection to to NBN FTP
# 1.3.6.1.2.1.2.2.1.5.5 = Gauge32: 1048576000 # ifSpeed = 1Gigabit interface
# 1.3.6.1.2.1.2.2.1.6.5 = Hex-STRING: 00 1D AA 67 B6 3A # ifPhysAddress = MAC address
# 1.3.6.1.2.1.2.2.1.9.5 = Timeticks: (0) 0:00:00.00 # ifLastChange
sensor Vigor2760_InOctets:
- platform: snmp
name: "Router Incoming Data"
host: 192.168.1.1
community: 'public'
version: '2c'
baseoid: 1.3.6.1.2.1.2.2.1.10.5
accept_errors: true
unit_of_measurement: "Kbytes"
value_template: "{{((value | int) / 1024) | int}}"
# 1.3.6.1.2.1.2.2.1.10.5 = Counter32: 4089853 # ifInOctets
sensor Vigor2760_OutOctets:
- platform: snmp
name: "Router Outgoing Data"
host: 192.168.1.1
community: 'public'
version: '2c'
baseoid: 1.3.6.1.2.1.2.2.1.16.5
accept_errors: true
unit_of_measurement: "Kbytes"
value_template: "{{((value | int) / 1024) | int}}"
# 1.3.6.1.2.1.2.2.1.16.5 = Counter32: 184991 # ifOutOctets
#
# Time around the world
#
sensor WorldClock_SG:
- platform: worldclock
name: Time in Singapore
time_zone: Asia/Singapore
sensor WorldClock_NZ:
- platform: worldclock
name: Time in New Zealand
time_zone: Pacific/Auckland
#
# current petrol prices from NSW FuelCheck app
#
sensor FuelCheck_Towradgi:
- platform: nsw_fuel_station
fuel_types: "U91"
station_id: 1114 # Independent Towradgi
sensor FuelCheck_MetroFairyMeadow:
- platform: nsw_fuel_station
fuel_types: "U91"
station_id: 18111 # Metro Petroleum Fairy Meadow
sensor FuelCheck_MetroWollongong:
- platform: nsw_fuel_station
fuel_types: "U91"
station_id: 18475 # Metro Wollongong
I immediately commented out the Google entries, without any noticable effect.
I found several rather old posts describing this same symptom, but without a resolution which makes sense in this case. I followed the suggestion to delete the home-assistant_v2.db file, and after a couple more reboots the console is now working - but the web GUI is still not.
It seems to me quite odd that the configuaration interface for an app dies but other parts continue on, so I’ll put this memory card aside so I can try any suggestions of how to resurect the web GUI.
Thanks in advance,
Don