Home assistant + google home + kodi

Hello everyone!
I’m trying to set up kodi to control by my google home.

I’m trying the following.

cloud:
  google_actions:
    filter:
      include_entities:
        - media_player.kodi
  include_domains:
    - media_player
entity_config:
     media_player.kodi:
      name: kodi 
      aliases:
         - Kodi
      room: living room

I have the following error:

Invalid config for [cloud]: [include_domains] is an invalid option for [cloud]. Check: cloud->cloud->include_domains. (See /config/configuration.yaml, line 174). Please check the docs at https://home-assistant.io/components/cloud/
Component not found: entity_config

Your spacing is a total disaster, compare it to the docs.

ok bobby,
but am I on the right track?

Same mistake, I tried to improve the spaceships

# Cloud
cloud:
  google_actions:
    filter:
      include_entities:
         - media_player.kodi
      include_domains:
         - media_player
    entity_config:
      media_player.kodi:
       name: kodi 
       aliases:
         - Kodi
    room: living room

invalid config for [cloud]: [room] is an invalid option for [cloud]. Check: cloud->cloud->google_actions->room. (See /config/configuration.yaml, line 174). Please check the docs at https://home-assistant.io/components/cloud/

Fix your spaces.

Already tried. In hassio, I get msg that the space is ok …

But I will try. Is the programming logic correct?

You have improved but they are still wrong, this is the example from the docs I suggested you compare it to…

cloud:
  google_actions:
    filter:
      include_entities:
        - light.kitchen
        - light.kitchen_left
      include_domains:
        - switch
      exclude_entities:
        - switch.outside
    entity_config:
      switch.kitchen:
        name: Custom Name for Google Assistant
        aliases:
         - bright lights
         - entry lights
        room: living room

The error message you’re getting specifically mentions [room] which you can see is in the wrong place compared to above. You also used three spaces in some places, one in others and ALL yaml is done in multiples of two.

1 Like

I highly recommend using the Cloud9 IDE add-on for HassIO. It makes it very easy to see where your indents are wrong

1 Like

Agree but Configurator is nicer to use :slight_smile:

Guys, I got …

Now it seems like a stupid question, but I do not know how to call the automation, it would be “Ok, google kodi”

It depends what you want Google to do. You could say ‘Ok Google, turn on Kodi’ which should start up the media_player.kodi which I guess is the app running on a smart TV or something…? OR, if Kodi was playing something you should be able to say ‘Ok Google, pause Kodi’… that kind of thing :grinning: