Configuration.yaml questions, HA works partially

Hi all,

I’m new at HA, have some Tasker and HomeAutomation experience, but I fount HA on google and thought I would give it go.

I have a Synology DS212+ NAS server running HA and Python3.
So I opened HA for the first time and it discovered my Philips Hue lights,and it works.

So it did not find my two Chromecasts etc… but I read that it has to do with a 64bit issue, thats okay.

I looked at some tutorials on YT and played with the configuration.yaml throught telnet (my ssh doen’t work, don’t ask why). But when I restart HA again it does not show anything that I have added.

I have added my Nest, Chromecast, Plex server etc, but nothing is shown. I have used the examples from the components page and added my credentials/codes/tokens.

configuration.yaml:

homeassistant:
  latitude: xxxxxxxx
  name: Home
  longitude: xxxxxxxx
  temperature_unit: C
  time_zone: Europe/Amsterdam

http:
  api_password: MyLoginPW

discovery:

frontend:

conversation:

history:

nest:
  client_id: MyNestID
  client_secret: MySecretKey

media_player:
  - platform: plex (also made a plex.conf with ipaddress)
  - platform: cast
  - platform: philips_js
    host: http://192.168.0.8:1925/
    name: Philips TV

logbook:

Hope you guys can help me out here…

Thanks in advance,

Raznor, rookie HA user

Have you tried hass --script check_config ?
And read this https://home-assistant.io/getting-started/troubleshooting-configuration/

root@Synology:/volume1/@appstore/homeassistant/var# hass --script check_config
-ash: hass: command not found

here a copy of the log file:

12:51 17-02-17 homeassistant.loader: Unable to find component nest
12:51 17-02-17 homeassistant.loader: Unable to find component switch.tplink
12:51 17-02-17 homeassistant.loader: Unable to find component switch.tplink
12:51 17-02-17 homeassistant.loader: Unable to find component media_player.plex
12:51 17-02-17 homeassistant.components.media_player.cast: Failed to import pychromecast. Did you maybe not install the ‘pychromecast’ dependency?
Traceback (most recent call last):
File “/usr/local/homeassistant/share/homeassistant/homeassistant/components/media_player/cast.py”, line 31, in setup_platform
import pychromecast
ImportError: No module named ‘pychromecast’
12:51 17-02-17 homeassistant.loader: Unable to find component media_player.philips_js
12:51 17-02-17 homeassistant.components.sensor: Error while setting up platform time_date
Traceback (most recent call last):
File “/usr/local/homeassistant/share/homeassistant/homeassistant/helpers/entity_component.py”, line 135, in _setup_platform
self.hass, platform_config, self.add_entities, discovery_info)
File “/usr/local/homeassistant/share/homeassistant/homeassistant/components/sensor/time_date.py”, line 60, in setup_platform
if variable[‘type’] not in OPTION_TYPES:
TypeError: string indices must be integers
12:51 17-02-17 homeassistant.loader: Unable to find component sensor.plex
12:51 17-02-17 homeassistant: hass.local_api is deprecated. Use hass.config.api
12:51 17-02-17 homeassistant: hass.local_api is deprecated. Use hass.config.api
12:51 17-02-17 homeassistant.components.recorder: Found unfinished sessions
12:51 17-02-17 homeassistant.external.netdisco.netdisco.ssdp: Error fetching description at 192.168.0.22
Traceback (most recent call last):
File “/usr/local/homeassistant/share/homeassistant/homeassistant/external/netdisco/netdisco/ssdp.py”, line 136, in description
xml = requests.get(url).text
File “/usr/local/homeassistant/env/lib/python3.4/site-packages/requests/api.py”, line 69, in get
return request(‘get’, url, params=params, **kwargs)
File “/usr/local/homeassistant/env/lib/python3.4/site-packages/requests/api.py”, line 50, in request
response = session.request(method=method, url=url, **kwargs)
File “/usr/local/homeassistant/env/lib/python3.4/site-packages/requests/sessions.py”, line 451, in request
prep = self.prepare_request(req)
File “/usr/local/homeassistant/env/lib/python3.4/site-packages/requests/sessions.py”, line 382, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File “/usr/local/homeassistant/env/lib/python3.4/site-packages/requests/models.py”, line 304, in prepare
self.prepare_url(url, params)
File “/usr/local/homeassistant/env/lib/python3.4/site-packages/requests/models.py”, line 362, in prepare_url
to_native_string(url, ‘utf8’)))
requests.exceptions.MissingSchema: Invalid URL ‘192.168.0.22’: No schema supplied. Perhaps you meant http://192.168.0.22?
12:51 17-02-17 homeassistant.components.media_player.cast: Failed to import pychromecast. Did you maybe not install the ‘pychromecast’ dependency?
Traceback (most recent call last):
File “/usr/local/homeassistant/share/homeassistant/homeassistant/components/media_player/cast.py”, line 31, in setup_platform
import pychromecast
ImportError: No module named ‘pychromecast’
12:51 17-02-17 homeassistant.components.media_player.cast: Failed to import pychromecast. Did you maybe not install the ‘pychromecast’ dependency?
Traceback (most recent call last):
File “/usr/local/homeassistant/share/homeassistant/homeassistant/components/media_player/cast.py”, line 31, in setup_platform
import pychromecast
ImportError: No module named ‘pychromecast’

“home-assistant.log” 48L, 3710C

Enable the virtual enviroment. Depends of how you installed hass, but it is explained in the installation documentation

Isn’t hass for Rapbarry, I have it running on Synology

You can still enable the virtual enviroment and run
hass --script check_config

Perhaps you need to declare cast with IP…
cast:
host: ADRESS_IP
name: my_chromecast