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

Automation trigger on device attributes

$
0
0

@Pernod wrote:

Hi All,

I have a Marantz amp set up, but I would like to trigger an automation (to adjust it’s volume) based on the source it’s playing.

I know it’s I very basic question, but I’m tearing my hair out trying to find the answer. I’ve been playing around for a few months and have the hang of automating most of the house, but I’m stuck on one fundamental. I also can’t work out the right terminology to search for an answer, so I thought I’d give up and ask.

In device manager I can see a bunch of ‘variables’ for the device, and I’d like to trigger on the current source. I have automations on the ‘state’ but need the next layer down. What is the correct way to reference these ‘variables’?

I tried using media_player.marantz_sr5008_source and media_player.marantz_sr5008|source for the device name to reference (approaches I found in random unverified code snippets online) but with no luck.

Entity
media_player.marantz_sr5008
 
State
on

source_list:
  - <list>
sound_mode_list:
  - <list>
volume_level: 0.22
is_volume_muted: false
media_content_type: channel
media_title: LMS
source: LMS
sound_mode: STEREO
sound_mode_raw: STEREO
friendly_name: Marantz_sr5008
supported_features: 69004

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 99217

Trending Articles



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