Custom Component: SkyQ Media Player

Please can you post as a bug on the Github site and I’ll look at it. Thanks

And can you post the channel number. Thanks

Sorry if its been covered already, just noticed this in my HA logs:


Use of 'config_directory' is deprecated since it is no longer required. You set it to /config/.

3:00:12 PM – Sky Q (WARNING)

Running the most recent version of the SkyQ component. Its not impacting functionality just was not sure what it was warning of

It means what is says :slight_smile: You have ‘config_directory’ in your configuration for SkyQ, and you no longer need it, it is no longer used.

Hi, not sure if this has already been mentioned but live UHD channel information/artwork isn’t displayed in the media play card…recorded UHD programs work, just not live.

It’s not a problem, just thought I’d mention it.

Cheers

If you can point me at a channel number I’ll take a look, but it is possible it isn’t easily achievable without looking across at matching channel names which I’m trying to avoid doing.

This was 406 Sky F1 :racing_car: UHD

Seems fine when it is being watched from “recorded”

OK, I’ll take a look. Probably won’t be for a couple of weeks, but as you say there is no rush.

1 Like

FWIW I experience the same “issue” when viewing something in UHD.

That said the UHD programs are not a channel per se but are more like a separate app of some sort so maybe that’s the issue because there is no EPG to pull back the info from.
For example for me CH 401 is Sky Sports Main Event HD (which has football on at the moment)…when I want to view that same match in UHD I have to go to Home > Sports > Ultra HD and then choose the match (or event or race, etc) I want to watch and off I go. I’m not watching any channel on the Q Box so no channel info for this component to retrieve…

Same here… 4K programs are not displayed in the card.

I suspect this is a different problem. For Italy the 4K channels, I think are standard channels, which they just don’t do EPG for.

For UK if it isn’t a channel, I’d need to see what info the box is generating to see if I can get an image. The challenge is that if they are only paid for sport channels I don’t pay for any sport, so I may need someone to do a few queries to their box to get the info. I’m away from home for 10 days, so it will have to wait until after that.

give me a shout when you are back and I can run the queries here and see what it throws out :+1:

1 Like

Morning, Just set up my home assistant yesterday after seeing this project. Is there a real basic idiot guide on how to setup the extra buttons for Channel Up/Down, specific tv channels? I’ve looked through this post, I see lots of mentions of .yaml files but I’m not sure which ones I should be putting the data in. I currently have the mini-media-player setup very basic, of the four buttons at the bottom, the only button that does something is the “sky” button and that goes to channel 999, I have no idea how this happens.
I understand I’m out of my depth here, have been looking over different posts on the web but can’t find anything that explains where different config files should be. Hope you can help, thanks

Have a look at post # 226 here from Roger and it should point you in the right direction.

In short you can setup the buttons on the mini-media-player card to display as you choose (previously you had to do this in the yaml when setting up this integration but that’s moved on).
What I’d do is copy the code from #226 into your own Card and “adjust” from there. Also I’d make sure you’ve read through the ReadMe on Roger’s GitHub Repository as it goes through this there too.

Have a go and see how you get on…if you run into trouble post back here and will try to assist :+1:

1 Like

The way I can maybe handle this is by starting a new thread that I can then pin this sort of stuff to the top of. Problem is my content appears part way through this thread so it is buried. In any case if you find some stuff missing/confusing then I’ll try add more explanation.

2 Likes

I’ve tried looking at the post on 226 and pasted it to the card config but I haven’t managed to get any buttons to work, I’m thinking its something wrong with my main configuration.ymal.
Can you see what I have done wrong? The channel up/down, guide, select and home buttons have no effect on the sky box

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
  - platform: google_translate
  
media_player: 
  - platform: skyq
    host: 192.168.1.73
    name: Sky Q
    room: Living Room
    live_tv: True
    config_directory: '/config/'
    generate_switches_for_channels: true
    sources:
      BBC1: '1,1,5'
      SkyNews: '5,0,1'
      CHup: 'channelup'
      CHdn: 'channeldown'
      Guide: 'tvguide'
      Select: 'select'
      Home: 'home'
     
sensor:
  - platform: systemmonitor
    resources:
      - type: disk_use_percent
        arg: /home
      - type: memory_use
      - type: processor_use
      - type: load_5m
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

What you need to do here is configure the Integration using Config Flow rather than using YAML - both are still options but I think Config Flow is recommended.
Comment all your SkyQ related lines out of the YAML and restart HA. Once back up go to Configuration > Integration > click + > Choose Sky Q. You can configure the box and sources/channels in there and that’ll get the Entities up and running.

Then in the Front End you can configure the Mini-Media-Card as per previous post.
Have a look at Custom Component: SkyQ Media Player (link to post #370) in terms of how buttons, etc work with the Card too.

1 Like

This its how I have my options setup via them config flow:

And this for my Lovelace MMP card:

artwork: cover
entity: media_player.sky_q
hide:
  icon_state: false
  power_state: false
  source: false
  volume: true
info: scroll
name: SkyQ
shortcuts:
  buttons:
    - icon: 'mdi:chevron-up'
      id: channelup
      type: skyq
    - icon: 'mdi:chevron-down'
      id: channeldown
      type: skyq
    - icon: 'mdi:record-rec'
      id: record
      type: skyq
    - icon: null
      id: sky
      name: Sky
      type: skyq
    - icon: null
      id: tvguide
      name: Guide
      type: skyq
    - icon: 'mdi:home-outline'
      id: home
      type: skyq
    - icon: 'mdi:menu-open'
      id: sidebar
      type: skyq
    - icon: 'mdi:keyboard-return'
      id: dismiss
      type: skyq
    - icon: 'mdi:information-variant'
      id: i
      type: skyq
    - icon: 'mdi:arrow-right-thick'
      id: right
      type: skyq
    - icon: 'mdi:arrow-left-thick'
      id: left
      type: skyq
    - icon: 'mdi:arrow-up-thick'
      id: up
      type: skyq
    - icon: 'mdi:arrow-down-thick'
      id: down
      type: skyq
    - icon: null
      id: select
      name: Select
      type: skyq
    - icon: null
      name: null
    - icon: null
    - icon: null
    - icon: null
  columns: 6
  hide_when_off: true
type: 'custom:mini-media-player'

You can do the platform setup via config.yaml if you prefer.

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
   generate_switches_for_channels: true
1 Like

You don’t need this, and if you don’t have warnings in your logs about it, then you have an old version of the SkyQ integration.

Ok thanks to @RogTP and @Gav_in I now have the buttons fully working. I followed @Gav_in instructions to comment out all the stuff in the configuration.ymal and copied your Lovelace MMP card details and everything is working now. So a massive thanks to both of you. Now it’s working I can look at it and figure out how it works.
One last question if I may… I wanted to add some buttons to specific channels, can you only do this if the card is setup via the configuration.ymal? The way I understand it is you need to link the button details to the configuration.ymal but I don’t want to touch that now as I have it working now without using the configuration.ymal

1 Like