Check my file

Hi All
I have a problem with my file, the error in on line 1 columm 5
and line 8 columm 7

  - platform: webostv
host: 192.168.6.103
name: Oled TV
filename: webostv.conf
timeout: 5
turn_on_action:
      service: wake_on_lan.send_magic_packet
  data:
    mac: "14:C9:13:32:4F:63"
customize:
  sources:
    - livetv
    - youtube
    - prime
    - netflix
    - 'amazon prime video'
    - 'xbox'
    - 'foto e video'

what is wrong?

Try like this?

     -  platform: webostv
         host: 192.168.6.103
         name: Oled TV
        filename: webostv.conf
        timeout: 5
        turn_on_action:
            service: wake_on_lan.send_magic_packet
        data:
          mac: "14:C9:13:32:4F:63"
        customize:
         sources:
          - livetv
          - youtube
          - prime
          - netflix
          - 'amazon prime video'
          - 'xbox'
          - 'foto e video'

@n1k5y

That’s just as bad as the OP. :roll_eyes: The indentations are way off.

I don’t have one but try this. It’s got to better than the above tries:

- platform: webostv
  host: 192.168.6.103
  name: Oled TV
  filename: webostv.conf
  timeout: 5
  turn_on_action:
    service: wake_on_lan.send_magic_packet
    data:
      mac: "14:C9:13:32:4F:63"
  customize:
    sources:
      - livetv
      - youtube
      - prime
      - netflix
      - 'amazon prime video'
      - 'xbox'
      - 'foto e video'

see here for the proper format:

1 Like

Hi all, i edited the file and now at the boot i have this error
INVALID CONFIG: the following component and platform could be not set up
-media-player

from the log:
Invalid config for [media_player]: expected a dictionary. Got OrderedDict([(‘homeassistant’, OrderedDict([(‘name’, ‘Home’), (‘latitude’, 0), (‘longitude’, 0), (‘elevation’, 0), (‘unit_system’, ‘metric’), (‘time_zone’, ‘UTC’), (‘customize’, OrderedDict([(‘light.yeelight_color2_7c49ebb76b48’, OrderedDict([(‘friendly_name’, ‘Lampadina 2’)])), (‘light.yeelight_color2_7c49ebb7fd43’, OrderedDict([(‘friendly_name’, ‘Lampadina 1’)]))]))])), (‘introduction’, {}), (‘frontend’, {}), (‘config’, {}), (‘http’, {}), (‘api_password’, {}), (‘base_url’, 'ark-server.duckd… (See ?, line ?). Please check the docs at https://home-assistant.io/components/media_player/
12:36 config.py (ERROR)

you need to post your code formatted exactly as you have it in your config. otherwise there’s no way to know where the problem is.

It sounds like you need a better understanding of yaml