Hi, installed HA on my Pi3 and having a couple of issues on the front end.
I have Invalid Config for almost all my components, any ideas?
Hi, installed HA on my Pi3 and having a couple of issues on the front end.
I have Invalid Config for almost all my components, any ideas?
Can you post the contents of your error log?
Also, have you setup or modified the configuration for nest, logbook, recorder and history?
Error log:
indent preformatted text by 4 spaces2017-06-22 04:32:46 WARNING (MainThread) [homeassistant.setup] Setup of sensor is taking over 10 seconds.
2017-06-22 04:33:05 WARNING (MainThread) [homeassistant.setup] Setup of tts is taking over 10 seconds.
2017-06-22 04:34:26 WARNING (Thread-1) [netdisco.ssdp] Found malformed XML at http://192.168.1.78:9080: status=ok
2017-06-22 04:36:55 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform cast
Traceback (most recent call last):
File “/usr/lib/python3.4/encodings/idna.py”, line 167, in encode
raise UnicodeError(“label too long”)
UnicodeError: label too long
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 161, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File “/usr/lib/python3.4/asyncio/tasks.py”, line 372, in wait_for
return fut.result()
File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result
raise self._exception
File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/cast.py”, line 73, in setup_platform
all_chromecasts = pychromecast.get_chromecasts()
File “/home/homeassistant/.homeassistant/deps/pychromecast/init.py”, line 81, in get_chromecasts
blocking=blocking))
File “/home/homeassistant/.homeassistant/deps/pychromecast/init.py”, line 48, in _get_chromecast_from_host
blocking=blocking)
File “/home/homeassistant/.homeassistant/deps/pychromecast/init.py”, line 142, in init
dev_status = get_device_status(self.host)
File “/home/homeassistant/.homeassistant/deps/pychromecast/dial.py”, line 49, in get_device_status
timeout=10)
File “/srv/homeassistant/lib/python3.4/site-packages/requests/sessions.py”, line 531, in get
return self.request(‘GET’, url, **kwargs)
File “/srv/homeassistant/lib/python3.4/site-packages/requests/sessions.py”, line 518, in request
resp = self.send(prep, **send_kwargs)
File “/srv/homeassistant/lib/python3.4/site-packages/requests/sessions.py”, line 639, in send
r = adapter.send(request, **kwargs)
File “/srv/homeassistant/lib/python3.4/site-packages/requests/adapters.py”, line 438, in send
timeout=timeout
File “/srv/homeassistant/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py”, line 600, in urlopen
chunked=chunked)
File “/srv/homeassistant/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py”, line 356, in _make_request
conn.request(method, url, **httplib_request_kw)
File “/usr/lib/python3.4/http/client.py”, line 1090, in request
self._send_request(method, url, body, headers)
File “/usr/lib/python3.4/http/client.py”, line 1128, in _send_request
self.endheaders(body)
File “/usr/lib/python3.4/http/client.py”, line 1086, in endheaders
self._send_output(message_body)
File “/usr/lib/python3.4/http/client.py”, line 924, in _send_output
self.send(msg)
File “/usr/lib/python3.4/http/client.py”, line 859, in send
self.connect()
File “/srv/homeassistant/lib/python3.4/site-packages/requests/packages/urllib3/connection.py”, line 166, in connect
conn = self._new_conn()
File “/srv/homeassistant/lib/python3.4/site-packages/requests/packages/urllib3/connection.py”, line 141, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File “/srv/homeassistant/lib/python3.4/site-packages/requests/packages/urllib3/util/connection.py”, line 60, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File “/usr/lib/python3.4/socket.py”, line 530, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
UnicodeError: encoding with ‘idna’ codec failed (UnicodeError: label too long)
2017-06-22 04:36:55 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform cast
Traceback (most recent call last):
File “/usr/lib/python3.4/encodings/idna.py”, line 167, in encode
raise UnicodeError(“label too long”)
UnicodeError: label too long
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 161, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File “/usr/lib/python3.4/asyncio/tasks.py”, line 372, in wait_for
return fut.result()
File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result
raise self._exception
File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/cast.py”, line 73, in setup_platform
all_chromecasts = pychromecast.get_chromecasts()
File “/home/homeassistant/.homeassistant/deps/pychromecast/init.py”, line 81, in get_chromecasts
blocking=blocking))
File “/home/homeassistant/.homeassistant/deps/pychromecast/init.py”, line 48, in _get_chromecast_from_host
blocking=blocking)
File “/home/homeassistant/.homeassistant/deps/pychromecast/init.py”, line 142, in init
dev_status = get_device_status(self.host)
File “/home/homeassistant/.homeassistant/deps/pychromecast/dial.py”, line 49, in get_device_status
timeout=10)
File “/srv/homeassistant/lib/python3.4/site-packages/requests/sessions.py”, line 531, in get
I have set up nest, but I thought the others would just work?
Can you post your config? Im guessing the yaml is incorrect and throwing off multiple items, I would expect something in the log though, this seems to all be related to Chromecast setup.
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: 51.4528
longitude: -2.5084
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 104
# metric for Metric, imperial for Imperial
unit_system: metric
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: Europe/London
# Show links to resources in log and frontend
introduction:
# Enables the frontend
frontend:
# Enables configuration UI
config:
http:
# Uncomment this to add a password (recommended!)
# api_password: PASSWORD
# Uncomment this if you are using SSL or running in Docker etc
# base_url: example.duckdns.org:8123
# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
# Optional, allows Home Assistant developers to focus on popular components.
# include_used_components: true
# Discover some devices automatically
discovery:
# Allows you to issue voice commands from the frontend in enabled browsers
conversation:
# Enables support for tracking state changes over time.
history:
# View all events in a logbook
logbook:
# Track the sun
sun:
# Weather Prediction
sensor:
platform: yr
# Text to speech
tts:
platform: google
group: !include groups.yaml
automation: !include automations.yaml
nest:
do you have the rest of the nest configuration options below nest: ?
Can you put a # before “discovery:” to disable that for a bit. That will get rid of all the chrome cast error in the log and may clean it up to make the issue more obvious.
The bit after nest is just my client id and secret code, so didnt want to post them. I’ll do the hash before discovery and repost the error log, two minutes…
Thanks for your help btw.
I can’t workout why the log isnt updating. It’s just the same as above, even after reboot and adding the logger into the config. So frustrating.
are you pulling log info from the actual file or are you viewing it from the HA front end / user interface?
If you are pulling the file it should be up to date.
If you are viewing in the UI make sure you click the little refresh circle of the log box in the upper right hand corner. Either your browser or HA may be caching that view.
Nope pulling it over ssh sudo nano /home/homeassistant/.homeassistant/home-assistant.log
Hmmm, sorry I can’t get this sorted for you.
It it were me I would comment out (using #) all the items you don’t need and add the ones you need in one by one then restart to see what is causing the issue.
So updater, conversation, history, logbook, sun, sensor (and platform: yr), tts (and platform: google), and nest.
Restart and see if there are any errors. Then add your nest config in and see if that errors out. If no issues add the others as you know you need them. With a fresh install you shouldn’t have any issues.
Other than that, maybe try a fresh install, maybe there was an issue during install. I did an install on a pi last night for a side project with the Hassbian image with no issues and there haven’t been reports of issues recently that I have seen.