I’m creating a series of routines that will be enabled when the family goes on vacation.
The different steps in the routine are:
- When motion is detected on one of the external house cameras
- Then turn on the TV
- Play a movie on plex
- Set volume high on the TV
- After 20 minutes, turn off plex and the TV
YAML at this point
- id: basementTVonMotion
alias: "Turn on Basement TV when detect motion"
trigger:
- platform: state
entity_id:
- binary_sensor.front_porch_motion
- binary_sensor.backyard_east_motion
- binary_sensor.backyard_west_motion
- binary_sensor.southeast_corner_motion
from: "off"
to: "on"
condition:
- condition: time
after: "21:00:00"
before: "05:00:00"
action:
- service: media_player.select_source
target:
entity_id: media_player.fire_tv_192_168_1_184
media_content_type: movie
media_content_id: '{ "library_name: "Movies", "title": "Jobs" }'
I’m getting a couple of errors around the last couple of lines but I’m following the docs so I’m confused.
Have I done something incorrectly?