Read device details

Hi,

it seems that i cannot find the proper information on how to read entity details. For example, i have a Yamaha AVR. It has the input selectors for HDMI and Audio only. I want to check the input selection so that the cinema mode of my lights only start on input=HDMI. The component reads the current input, as long as i see it in the HASS startup messages, but i don’t know how to access them in automation scripts. The dev-state page isn’t very verbose, either.

If the attribute is listed when you click on the device, you should be able to use a value template to extract it.

It isn’t. The only attributes viewable in the dev-state list are

friendly_name: Yamaha AMP
supported_features: 18828

This happens for my other media players as well, e.g. my Chromecast:

friendly_name: Chromecast
supported_features: 21437

Nevertheless, the component which is used for the Yamaha Media player (https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/media_player/yamaha.py) has a method for building and returning a source list (around lines 130).

Is there a reason why i cannot see any other attributes than the supported_features in the dev-state list, although they should be known to Home Assistant?

2 Likes