Group & view error

Hi,

I’m changing my config with a lot of new lights and a smart thermostat. But I’m getting stuck with HASSIO by making groups and tabs (views).
I can’t figure it out. Hope there is someone who can help me.

groups.yaml:

#Groups
  badkamer:
    name: Badkamer
	entities:
	  - climate.badkamer
	  - sensor.badkamer_temprature
	  - sensor.badkamer_heating
	
  slaapkamer:
    name: Slaapkamer
	entities:
	  - light.slaapkamer_1
	  - light.slaapkamer_2
	  - light.slaapkamer
	
  logeerkamer:
    name: Logeerkamer
	entities:
  	  - light.logeerkamer
      - light.logeerkamer_1
	  - light.logeerkamer_2
	  - light.logeerkamer_3
	
  woonkamer:
    name: Woonkamer
    entities:
      - climate.woonkamer
	
  mediaplayers:
    name: Media Players
	entities:
	  - media_player.spotify
	  - media_player.woonkamer
	  - media_player.samsung_6_series_40_ue40mu6470
	
#Tabs
  default_view:
    view: yes
	entities:
	  - group.woonkamer
	  - group.mediaplayers

  mediaview:
    name: Media
	view: yes
	entities:
	  - group.mediaplayers

SSH-error:

ERROR
panic: interface conversion: interface is nil, not string

goroutine 1 [running]:
panic(0x2c5f60, 0x1070b640)
        /home/travis/.gimme/versions/go1.7.6.linux.amd64/src/runtime/panic.go:500 +0x33c
github.com/home-assistant/hassio-cli/command/helpers.DisplayOutput(0x107b6200, 0x24, 0x200, 0x0)
        /home/travis/gopath/src/github.com/home-assistant/hassio-cli/command/helpers/common.go:118 +0x3c8
github.com/home-assistant/hassio-cli/command/helpers.ExecCommand(0x2f5e63, 0xd, 0x7ec47e60, 0x7, 0x0, 0x0, 0x76000, 0x0, 0x0, 0x0, ...)
        /home/travis/gopath/src/github.com/home-assistant/hassio-cli/command/helpers/common.go:155 +0x308
github.com/home-assistant/hassio-cli/command.CmdHomeassistant(0x10778420)
        /home/travis/gopath/src/github.com/home-assistant/hassio-cli/command/homeassistant.go:48 +0x540
github.com/urfave/cli.HandleAction(0x2ae6d8, 0x323754, 0x10778420, 0x0, 0x0)
        /home/travis/gopath/src/github.com/urfave/cli/app.go:503 +0xf0
github.com/urfave/cli.Command.Run(0x2f5e63, 0xd, 0x0, 0x0, 0x409d10, 0x1, 0x1, 0x300cfa, 0x2f, 0x0, ...)
        /home/travis/gopath/src/github.com/urfave/cli/command.go:165 +0x6b8
github.com/urfave/cli.(*App).Run(0x107648c0, 0x1070a160, 0x3, 0x4, 0x0, 0x0)
        /home/travis/gopath/src/github.com/urfave/cli/app.go:259 +0x8b0
main.main()
        /home/travis/gopath/src/github.com/home-assistant/hassio-cli/main.go:22 +0x108

HA error log:

Error decoding json invalid character 'R' looking for beginning of value: RuntimeError: Event loop is closed
2018-04-04 22:00:18 WARNING (Dummy-9) [root] Observation deleted without explicit cancellation
Exception ignored in: <bound method _BaseClientObservation.__del__ of <aiocoap.protocol.BlockwiseClientObservation object at 0x70ba8510>>
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/aiocoap/protocol.py", line 1674, in __del__
    self._unregister()
  File "/usr/lib/python3.6/site-packages/aiocoap/protocol.py", line 1682, in _unregister
    self._registry_data()
  File "uvloop/loop.pyx", line 1167, in uvloop.loop.Loop.call_soon
  File "uvloop/loop.pyx", line 567, in uvloop.loop.Loop._call_soon
  File "uvloop/loop.pyx", line 571, in uvloop.loop.Loop._call_soon_handle
  File "uvloop/loop.pyx", line 599, in uvloop.loop.Loop._check_closed
RuntimeError: Event loop is closed
2018-04-04 22:00:18 WARNING (Dummy-9) [root] Observation deleted without explicit cancellation
Exception ignored in: <bound method _BaseClientObservation.__del__ of <aiocoap.protocol.BlockwiseClientObservation object at 0x70ba87f0>>
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/aiocoap/protocol.py", line 1674, in __del__
    self._unregister()
  File "/usr/lib/python3.6/site-packages/aiocoap/protocol.py", line 1682, in _unregister
    self._registry_data()
  File "uvloop/loop.pyx", line 1167, in uvloop.loop.Loop.call_soon
  File "uvloop/loop.pyx", line 567, in uvloop.loop.Loop._call_soon
  File "uvloop/loop.pyx", line 571, in uvloop.loop.Loop._call_soon_handle
  File "uvloop/loop.pyx", line 599, in uvloop.loop.Loop._check_closed
RuntimeError: Event loop is closed
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 WARNING (Dummy-9) [root] Observation deleted without explicit cancellation
2018-04-04 22:00:18 WARNING (Dummy-9) [root] Observation deleted without explicit cancellation
2018-04-04 22:00:18 WARNING (Dummy-9) [root] Observation deleted without explicit cancellation
2018-04-04 22:00:18 WARNING (Dummy-9) [root] Observation deleted without explicit cancellation
2018-04-04 22:00:18 WARNING (Dummy-9) [root] Observation deleted without explicit cancellation
2018-04-04 22:00:18 WARNING (Dummy-9) [root] Observation deleted without explicit cancellation
2018-04-04 22:00:18 WARNING (Dummy-9) [root] Observation deleted without explicit cancellation
2018-04-04 22:00:18 WARNING (Dummy-9) [root] Observation deleted without explicit cancellation
2018-04-04 22:00:18 WARNING (Dummy-9) [root] Observation deleted without explicit cancellation
2018-04-04 22:00:18 WARNING (Dummy-9) [root] Observation deleted without explicit cancellation
2018-04-04 22:00:18 WARNING (Dummy-9) [root] Observation deleted without explicit cancellation
2018-04-04 22:00:18 WARNING (Dummy-9) [root] Observation deleted without explicit cancellation
2018-04-04 22:00:18 WARNING (Dummy-9) [root] Observation deleted without explicit cancellation
2018-04-04 22:00:18 WARNING (Dummy-9) [root] Observation deleted without explicit cancellation
2018-04-04 22:00:18 WARNING (Dummy-9) [root] Observation deleted without explicit cancellation
2018-04-04 22:00:18 WARNING (Dummy-9) [root] Observation deleted without explicit cancellation
2018-04-04 22:00:18 WARNING (Dummy-9) [root] Observation deleted without explicit cancellation
2018-04-04 22:00:18 WARNING (Dummy-9) [root] Observation deleted without explicit cancellation
2018-04-04 22:00:18 WARNING (Dummy-9) [root] Observation deleted without explicit cancellation
2018-04-04 22:00:18 WARNING (Dummy-9) [root] Observation deleted without explicit cancellation
2018-04-04 22:00:18 WARNING (Dummy-9) [root] Observation deleted without explicit cancellation
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:18 ERROR (Dummy-9) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 22:00:30 ERROR (SyncWorker_0) [homeassistant.util.yaml] while scanning for the next token
found character '\t' that cannot start any token
  in "/config/groups.yaml", line 4, column 1
2018-04-04 22:00:30 ERROR (MainThread) [homeassistant.bootstrap] Error loading /config/configuration.yaml: while scanning for the next token
found character '\t' that cannot start any token
  in "/config/groups.yaml", line 4, column 1
2018-04-04 22:15:01 ERROR (SyncWorker_0) [homeassistant.util.yaml] while scanning for the next token
found character '\t' that cannot start any token
  in "/config/groups.yaml", line 4, column 1
2018-04-04 22:15:01 ERROR (MainThread) [homeassistant.bootstrap] Error loading /config/configuration.yaml: while scanning for the next token
found character '\t' that cannot start any token
  in "/config/groups.yaml", line 4, column 1

Is there suppose to be a space at the beginning character? " badkamer:"

1 Like

Thanks @RobDYI for you’re help. I’ve used the examples. That’s why I used the spaces.
But you’re solution didn’t help. Do you have some other ideas?

I copy and pasted your config into http://www.yamllint.com/

It is complaining about a tab in line 3

(): found a tab character that violate intendation while scanning a plain scalar at line 3 column 11

Thank you for you’re helping @ericleejoe.
I’ve also checked it in Yamllint. But I can’t find a sollution. What kind of tab? I’ve checked the code for tabs and changed them to spaces, but it’s still a no go.

I use Geany on Linux and it says there are tabs all through the yaml. Example:

The arrows are presumably tabs, because all the ones I erased and put in white space no longer show the arrows

Try pasting this tab free into your file

#Groups
  badkamer:
    name: Badkamer
    entities:
      - climate.badkamer
      - sensor.badkamer_temprature
      - sensor.badkamer_heating
      
  slaapkamer:
    name: Slaapkamer
    entities:
      - light.slaapkamer_1
      - light.slaapkamer_2
      - light.slaapkamer

  logeerkamer:
    name: Logeerkamer
    entities:
      - light.logeerkamer
      - light.logeerkamer_1
      - light.logeerkamer_2
      - light.logeerkamer_3

  woonkamer:
    name: Woonkamer
    entities:
      - climate.woonkamer

  mediaplayers:
    name: Media Players
    entities:
      - media_player.spotify
      - media_player.woonkamer
      - media_player.samsung_6_series_40_ue40mu6470

#Tabs
  default_view:
    view: yes
    entities:
      - group.woonkamer
      - group.mediaplayers

  mediaview:
    name: Media
    view: yes
    entities:
      - group.mediaplayers
1 Like

Indeed, I found out. But like I said, changing them to spaces didn’t help.
I appreciate you’re help!

#Groups
badkamer:
  name: Badkamer
  entities:
    - climate.badkamer
    - sensor.badkamer_temprature
    - sensor.badkamer_heating
	
slaapkamer:
  name: Slaapkamer
  entities:
    - light.slaapkamer_ramon
    - light.slaapkamer_danielle
    - light.slaapkamer
	
logeerkamer:
  name: Logeerkamer
  entities:
    - light.logeerkamer
    - light.logeerkamer_1
    - light.logeerkamer_2
    - light.logeerkamer_3
	
woonkamer:
  name: Woonkamer
  entities:
    - climate.woonkamer
	
mediaplayers:
  name: Media Players
  entities:
    - media_player.spotify
    - media_player.woonkamer
    - media_player.samsung_6_series_40_ue40mu6470
	
#Tabs
default_view:
  view: yes
  entities:
    - group.woonkamer
    - group.mediaplayers

mediaview:
  name: Media
  view: yes
  entities:
    - group.mediaplayers

So it works now??

I am gonna say it still doesn’t work for you. Your spaces in between groups are still tabs

Nope, it still gives the same errors…

See my post about the tabs still being there in the lines between the groups?

I already changed that, but it didn’t help.
Also copied you’re code. But still the same errors.

I’ve been searching for the past 5 days. But really can’t figure out what I’m doing wrong.

Please post your code as it stands now

#Groups
  badkamer:
    name: Badkamer
    entities:
      - climate.badkamer
      - sensor.badkamer_temprature
      - sensor.badkamer_heating
      
  slaapkamer:
    name: Slaapkamer
    entities:
      - light.slaapkamer_1
      - light.slaapkamer_2
      - light.slaapkamer

  logeerkamer:
    name: Logeerkamer
    entities:
      - light.logeerkamer
      - light.logeerkamer_1
      - light.logeerkamer_2
      - light.logeerkamer_3

  woonkamer:
    name: Woonkamer
    entities:
      - climate.woonkamer

  mediaplayers:
    name: Media Players
    entities:
      - media_player.spotify
      - media_player.woonkamer
      - media_player.samsung_6_series_40_ue40mu6470

#Tabs
  default_view:
    view: yes
    entities:
      - group.woonkamer
      - group.mediaplayers

  mediaview:
    name: Media
    view: yes
    entities:
      - group.mediaplayers

As you’re code

I would try just one group. You can reload the group without restarting HA to check. Also, what do you have in the configuration.yaml?

badkamer:
  name: Badkamer
  entities:
    - climate.badkamer
1 Like

OK, all the tabs are definitely gone now. Not sure what the problem is now. DO you get the same error in the log files?

I did, but stil it doesn’t work.

I didn’t tell you… HA config gives since a couple of days: ok

HA logs:

Config directory: /config
2018-04-09 22:44:03 ERROR (SyncWorker_0) [homeassistant.util.yaml] while scanning for the next token
found character '\t' that cannot start any token
  in "/config/groups.yaml", line 8, column 1
2018-04-09 22:44:03 ERROR (MainThread) [homeassistant.bootstrap] Error loading /config/configuration.yaml: while scanning for the next token
found character '\t' that cannot start any token
  in "/config/groups.yaml", line 8, column 1

I run HA not HASS.io, but here is the top part of my groups.yaml

#################################################################
## Groups
#################################################################
default_view:
 view: yes
 entities:
 - sun.sun
 - sensor.outside_temp
 - sensor.outdoor_humidity
 - sensor.dark_sky_summary
 - media_player.rasplex
 - group.heat_pump
 - group.steam
 - group.kitchen
 - group.dining_room
 - group.master_bedroom
 - group.den
 - group.outside
 - group.foyer
 - group.livingroom
 - group.downstairs_bathroom
 - group.security
 - group.scenes
 - group.smoke_alarms
# - group.christmas
# - group.bedtime
# - group.garage


Cameras:
 view: yes
 entities:
 - camera.shed_camera
 - camera.driveway
 - camera.front
 #- camera.raspberry
Pets:
 view: yes
 entities:
 - sensor.daisys_house__humidity
 - sensor.daisys_house__temperature
 - switch.daisy_house
 - switch.stelio_house

Kitchen:
 entities:
 - light.linear_wd500z1_wall_dimmer_switch_level_6_0
 - light.ge_unknown_type4944_id3033_level_15_0

Dining Room:
 entities:
 - light.linear_wd500z1_wall_dimmer_switch_level_25_0

Master Bedroom:
 entities:
 - switch.ge_unknown_type4952_id3033_switch_24_0
 - switch.plug1

Livingroom:
 entities:
 - light.linear_lb60z1_dimmable_led_light_bulb_level_18_0
 - input_select.harmony1
 - remote.upstairs_harmony_remote

Den:
 entities:
 - light.linear_wd500z1_wall_dimmer_switch_level_8_0
 - switch.den_lamp1
 - switch.den_lamp2
 - light.aeotec_zw111_nano_dimmer_level_88_0
 - remote.downstairs_harmony_remote
 - input_select.harmony