Error in my configuration

My dashboard tells me there is an error in my configuration, byt i can’t figure out what :confused:

automation:
  - alias: "Tänd alla lampor vid solnedgång"
    initial_state: True
    hide_entity: True
    trigger:
      platform: sun
      event: sunset
    action:
      service: switch.turn_on
      entity_id: group.Lampor


  - alias: "Släck alla lampor vid soluppgång"
    initial_state: True
    hide_entity: True
    trigger:
      platform: sun
      event: sunrise
    action:
      service: switch.turn_off
      entity_id: group.Lampor

  - alias: "Släck på kvällen"
    initial_state: True
    hide_entity: True
    trigger:
      platform: time
      after: '23:59:00'
    action:
      service: switch.turn_off
      entity_id: group.Lampor
      
  - alias: "Tänd på morgonen"
    initial_state: True
    hide_entity: True
    trigger:
      platform: time
      after: '04:00:00'
    action:
      service: switch.turn_on
      entity_id: group.Lampor

Can anyone help me? :slight_smile:

Does home_assistant.log provide you with a line number for the error? It often will, but not always.

A bunch of error i haven’t had time to deal with, but nothing regarding the automation section.

16-12-30 17:30:02 homeassistant.components.media_player: Error while setting up platform squeezebox
Traceback (most recent call last):
  File "/home/michel/.local/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py", line 150, in _async_setup_platform
    entity_platform.add_entities, discovery_info
  File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/michel/.local/lib/python3.5/site-packages/homeassistant/components/media_player/squeezebox.py", line 77, in setup_platform
    add_devices(lms.create_players())
  File "/home/michel/.local/lib/python3.5/site-packages/homeassistant/components/media_player/squeezebox.py", line 106, in create_players
    for index in range(0, int(count)):
ValueError: invalid literal for int() with base 10: 'Allowed</TITLE></HEAD>'
16-12-30 17:30:08 homeassistant.components.http: Failed to create HTTP server at port 8123: [Errno 98] error while attempting to bind on address ('0.0.0.0', 8123): address already in use
16-12-30 17:30:08 homeassistant.components.recorder: Ended unfinished session (id=56 from 2016-12-30 16:26:58.546655)
16-12-30 17:30:08 homeassistant.components.recorder: Found unfinished sessions
16-12-30 17:30:16 plexapi: http://10.0.0.10:32400: (401) unauthorized

I tried checking the syntax but it passes. Running “hass --script check_config” returns:

michel@homeassistant:~$ hass --script check_config
Testing configuration at /home/michel/.homeassistant

I pressed dismiss on the error-message, and it disapperad. Could it be an old message, and now with i working conf-file i stuck around until i dismissed it?

I think I read somewhere that special characters can cause a problem in the titles. That was probably an older release and it may have been fixed, it may not have.