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

Automation isn't being triggered

$
0
0

@mwarner wrote:

Hello,

I am completely new to Home Assistant. So to start off this my goal is to have Home Assistant Dim the two lights in my living room when I play media on my Vizio TV. Which I tend to use SmartCast were it uses the plex app to play my media.

Currently the lights that I have are the walmart Merkury, which with Tuya. I do have them added to Home Assistant and can turn the lights on and off via the Home Assistant dashboard.

I’ve created an automation script, and scene script. I’ve check that the automation works by forcing it to execute and triggering the scene, which my livingroom lights do dim and go back to normal, so that portion works. The issue I think is that plex, or smartcast is not triggering the automation. Below are my configs.

configureation.yaml

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
#   base_url: example.duckdns.org:8123

# Text to speech
tts:
  - platform: google_translate

tuya:
  username: SecretEmail
  password: SecretPassword
  country_code: 86

plex:
  host: MyServerIP
  port: 32400
  media_player:
    use_episode_art: true
    ignore_new_shared_users: false

scene:
  - name: Livingroom normal
    entities:
        light.06200636b4e62d1a727e:
            state: on
            transition: 2
            brightness: 100
        light.62118678dc4f22bc7378:
            state: on
            transition: 2
            brightness: 100
  - name: Livingroom dim
    entities:
        light.06200636b4e62d1a727e:
            state: on
            transition: 2
            brightness: 1
        light.62118678dc4f22bc7378:
            state: on
            transition: 2
            brightness: 1

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
#scene: !include scenes.yaml

automations.yaml

- id: '1585550781277'
  alias: Playing Media
  description: ''
  trigger:
  - entity_id: media_player.plex_plex_for_vizio_vizio_smartcast
    from: idle
    platform: state
    to: playing
  condition: []
  action:
  - scene: scene.livingroom_dim
- id: '1585550904757'
  alias: Stopped Media
  description: Media is either not playing, or paused.
  trigger:
  - entity_id: media_player.plex_plex_for_vizio_vizio_smartcast
    from: playing
    platform: state
    to: idle
  condition: []
  action:
  - scene: scene.livingroom_normal

Posts: 12

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 95414

Trending Articles



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