Log Details (ERROR)
Thu Aug 09 2018 18:26:09 GMT+1000 (Australian Eastern Standard Time)
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 210, in async_update_ha_state
state = self.state
File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 394, in state
return STATE_ON if self.is_on else STATE_OFF
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/light/hue.py", line 268, in is_on
return self.light.state['any_on']
File "/usr/local/lib/python3.6/site-packages/aiohue/groups.py", line 44, in state
return self.raw['state']
KeyError: 'state'
I think I got it now, I had copied it from the web and it seems the config files are super sensitive. So pasting into notepad before pasting into the config file seems to have worked better.
So I have the name right and I seem to be able to control and name the inputs so, all good.
Hi, I wonder if you could help me a bit. I have an automation that detects when the Yamaha AV amplifier is switched on and selects a light scene which works perfectly thus:
- alias: TV On Turn On light Scene
initial_state: true
trigger:
platform: state
entity_id: media_player.yamaha_receiver
to: 'on'
condition:
- condition: state
entity_id: sun.sun
state: below_horizon
action:
service: scene.turn_on
entity_id: scene.tv_viewing
I want to create some more light scenes based on the input that’s selected, for example a different lighting scene for the Playstation or the Apple TV, so I used the same logic, but its not working, so it seems the method of detecting the selected input may be different from the “on” indication. Has anyone any ideas where I’m going wrong?
automations.yaml:
- alias: Apple TV Scene
initial_state: true
trigger:
platform: state
entity_id: media_player.yamaha_receiver
to: 'HDMI1'
# condition:
# - condition: state
# entity_id: sun.sun
# state: below_horizon
action:
service: scene.turn_on
entity_id: scene.hdmi01
Many thanks for anyone with an Idea of what I’ve missed. BTW The scenes work perfectly if manually selected, the issue is detecting the status from the Amplifier.
I’m struggling with lovelace mediaplayer card. I think, like Hass says me, that I don’t have a unique entity id for my receiver and that’s probably the cause of this mess.
Have you done anything similar or do you have a way to fill an entity id for a yamaha receiver ? I whish to get my mediaplayer card working.
I’m conforted that you have similar configuration ! It should be working then … I’ll give it another try with both default lovelace media player and the Mini Media Player Maybe it’s my cards that are not well configured …
When I look at the attributes no HDMI listed? I just added ignore AV3 to see if that worked which it does. Ideas?
media_player.yamaha_receiver_rumpus
source_list:
- AUDIO1
- AUDIO2
- AUDIO3
- AUDIO4
- AUX
- AV1
- AV2
- AV4
- AV5
- AV6
- AV7
- AirPlay
- Alexa
- Amazon Music
- Bluetooth
- Deezer
- MusicCast Link
- NET RADIO
- PHONO
- SERVER
- Spotify
- TIDAL
- TUNER
- USB
sound_mode_list:
- Hall in Munich
- Hall in Vienna
- Hall in Amsterdam
- Church in Freiburg
- Church in Royaumont
- Chamber
- Village Vanguard
- Warehouse Loft
- Cellar Club
- The Roxy Theatre
- The Bottom Line
- Sports
- Action Game
- Roleplaying Game
- Music Video
- Recital/Opera
- Standard
- Spectacle
- Sci-Fi
- Adventure
- Drama
- Mono Movie
- Enhanced
- Surround Decoder
- 2ch Stereo
- 9ch Stereo
- Straight
volume_level: 0.75
is_volume_muted: false
media_content_type: music
media_title: ''
media_artist: ''
media_album_name: ''
source: Spotify
sound_mode: 9ch Stereo
friendly_name: Yamaha Receiver Rumpus
supported_features: 84925
Your device needs to report those sources if you intend to use them, if it doesn’t… there isn’t much you can do. To be honest, AV1 - AV7 seem like they’d be your HDMI sources. You can verify this by setting the source on your receiver and looking at what the media player reports.