Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 96121

Problem with automations.yaml

$
0
0

@Axteroide wrote:

So I’m trying to make my lights change when my TV source is on Netflix based on this post: Using the LG webOS source value to trigger events

- alias: "TV Netflix"
  trigger:
    platform: state
    entity_id: sensor.living_room_source
    to: 'Netflix'
  condition:
    - condition: state
      entity_id: sun.sun
      state: 'below_horizon'
    - condition: state
      entity_id: media_player.tele
      state: 'playing'
  action:
    entity_id: scene.movies

Having this error:
Invalid config for [automation]: [entity_id] is an invalid option for [automation]. Check: automation->action->0->entity_id. (See /config/configuration.yaml, line 11).

But I have that defined in my configuration.yaml file

media_player:
  platform: webostv
  name: tele
  host: IP...

I’m new at HomeAssistant and have no idea what I’m doing wrong here…
Any solutions?

Thank you.

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 96121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>