Are you using the standard Lovelace card or mini media player?
And are you saying when you pause something, you can’t get it to play again?
yes thats right
Are you using default Lovelace card or mini media player? Also when paused and you look in developer tools at the entity state, does it show as paused?
Hi, this is my configuration inside configuration.yaml:
media_player:
- platform: skyq
name: SkyQ Living Room
host: 192.168.0.10
sources:
SkyOne: '1,0,6'
SkyNews: '5,0,1'
room: Living Room
config_directory: '/home/homeassistant/.homeassistant/'
generate_switches_for_channels: true
But inside /.homeassistant/ I don’t see the file “skyqlivingroom.yaml”…
Could anyone help me?
What version of the integration are you using. config_directory is not supported since about version 2.0. If you are using one of the latest versions, then it should show a warning in the logs. It should create the yaml file in the root of your configuration directory.
I took this version,
what is the last?
That version was not maintained for some time. Latest version is here - https://github.com/RogerSelwyn/Home_Assistant_SkyQ_MediaPlayer/releases/tag/v2.4.9
Thanks for your reply…
WOW IT’S AMAZING!
It maybe worth you using HACS because that will tell you when there are updates.
Ok, so I’ll remove the files and install from HACS.
If I expose media_player.skyq_living_room to google assistant, could I change the source of sky? for example: hey google go to SKYSPORT…
Thanks again
Sorry, no idea. I don’t use Google Assistant. Maybe others can help?
Ok, thanks for your reply. I’m a newbie, Could you suggest to me the command to switch on and off the decoder? I’d like to create a script that switch on and off the tv and the decoder.
Thanks again
Always good to look in the Developer Tools > Services tab. The correct services are media_player.turn_on/off
many thanks again!
I’ve finally migrated my old yaml configuration of the original custom componet, to the UI one of @RogTP
I’ve correctly generated the switches that i need and correctly exposed to google assistant as was with the older integration. The problem now is that i can’t use this switches even in home assistant, if i toggle one to change source i receive this error in log:
Error handling message {‘inputs’: [{‘context’: {‘locale_country’: ‘US’, ‘locale_language’: ‘en’}, ‘intent’: ‘action.devices.EXECUTE’, ‘payload’: {‘commands’: [{‘devices’: [{‘id’: ‘switch.skyq_rai1mansarda’}], ‘execution’: [{‘command’: ‘action.devices.commands.OnOff’, ‘params’: {‘on’: False}}]}]}}], ‘requestId’: ‘9466402553022980684’}: {‘errorCode’: ‘unknownError’}
I’ve used the auto generated switches by UI
I don’t recognise that error I’m afraid. To be honest whilst I know the integration generates some yaml, I’ve only done minor modifications to that code to bring it up to current standards. I’ve not tried using it so not sure what switches you are trying to put into Lovelace. If you can provide some details of how you have set it up, I’ll try to mimic and see if it is a problem with the integration.
This switches are the ones generated from the integration for the sources of skyq
Toggling those switches with the old integration skyq was changing sources
Just so you understand, I took on this code last year (I forget when), so I’ve never looked too deep at the generated yaml. I’ve just taken a look, and I can see things that I might consider improving, or adding functionality to.
So I added the switches to my config, it seems to have worked fine for me in my test environment. I’ve tried this through UI install and config.yaml install.
Have you tried, going to the developer services tab, and just trying simple turn on/off and play/pause commands to your media player. Do they work?
no error or action if changing the state in developer tab. Turning on/off or changing sources works fine. Just the generated switches doesn’t work, but without error this time