So the other thing, if I have the Alexa skill enabled. Will that become the name that shows up in smart home devices.
Also naming HDMI does not seem to actually do anything. When I look at the device in the dashboard it still lists the sources as what they are ie HDMI 1
I am curently using HA Bridge to control this; Alexa turn on the Bedroom Alexa; turns the amp on and swtiches it to AV4 on the bedroom amp.
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 …