Custom Component: SkyQ Media Player

Testing so far this week has been positive, so I have now merged the skyqa branch into master and released as v1.4

For backwards compatibility, anyone not wanting to have the images displayed in the media player when watching recorded programmes, you can turn this function off in the configuration with output_programme_image: False

Next on my to-do list for this component is to add this to HACS, but that may not be for another week or two as I next want to move onto enhancements for the LG webostv component as the buttons (Up, Down, Left, Right) feature being missing is driving me crazy, after which I will come back to this for more tweaks and HACS release.

2 Likes

Thanks for this!

Jut to be clear, in need to go to this link to get this version?

And do I need to download all the files again or just sky_remote.py

Thanks

That is the correct link. You need all the files to avoid missing any features changes

1 Like

Have updated it today and it works great! I have a video of it working but too big to upload, but it works for “playing now” in that it shows it under the SkyQ word, left hand side.

Not at home so cannot try a recording for artwork, assume I just need:

        artwork: cover

within my media card though?

Love it x 2!!

1 Like

Hi and congrats.
Could you please share the configuration?
Many thanks!!!

So i am using MadmanMonty’s skyq branch and I have the following configs:

config:




switch:
- platform: template
  switches: !include skyqLounge.yaml     


media_player:
  - platform: plex  
  
  
  - platform: skyq
    host: 192.168.1.106
    name: SkyQ
    room: Lounge
    config_directory: '/config/'
    generate_switches_for_channels: true
    sources: 
      BBCOne: '1,1,5'
      BBCTwo: '1,0,2'
      SkyAtlantic: '1,0,8'
      SkyOne: '1,0,6'
      SkyNews: '5,0,1'
      SkyF1: '4,0,6'
      CHup: 'channelup'                                                         #added
      CHdn: 'channeldown'                                                       #added
      Select: 'select'                                                          #added
      Up: 'up'                                                                  #added
      Down: 'down'                                                              #added
      Left: 'left'                                                              #added
      Right: 'right'                                                            #added
      I: 'i'                                                                    #added
      Dismiss: 'dismiss'                                                        #added
      Sidebar: 'Sidebar'                                                        #added
      Home: 'home'                                                              #added
      TVGuide: 'tvguide'                                                        #added
      Sky: 'sky'                                                                #added
      Record: 'record'                                                          #added
      

lovelace:

        
      - type: custom:mini-media-player
        entity: media_player.skyq
        name: SkyQ
        icon: mdi:blank     #mdi:youtube-tv
        more_info: true
        artwork: cover
        background: "https://wi-images.condecdn.net/image/m9qkOnPpZnz/crop/1620/f/screen-shot-2015-11-18-at-100440.jpg"
        hide:
          volume: true
          source: true
          power_state: false       
        shortcuts:
          columns: 6 # Max buttons per row
          hide_when_off: true
          buttons:
          
          ###########################################
      # Channel Up
            - icon: mdi:chevron-up
              #name: 'Ch+'
              type: source
              id: 'CHup'
      # Channel Down
            - icon: mdi:chevron-down
              #name: 'Ch-'
              type: source
              id: 'CHdn'
      # Record
            - icon: mdi:record-rec
              type: source
              id: 'Record'
      # Sky
            - icon: #mdi:record-rec
              name: 'Sky'
              type: source
              id: 'Sky'      
      # TV Guide
            - icon: #mdi:record-Rec
              name: 'Guide'
              type: source
              id: 'TVGuide'  
      # Home
            - icon: mdi:home-outline
              type: source
              id: 'Home' 
              
          ###########################################      
      # Sidebar
            - icon: mdi:menu-open
              #name: 'Sidebar'
              type: source
              id: 'Sidebar'
      # Dismiss
            - icon: mdi:keyboard-return
              #name: 'Dismiss'
              type: source
              id: 'Dismiss'              
      # I
            - icon: mdi:information-variant
              #name: 'I'
              type: source
              id: 'I'  
      # Right
            - icon: mdi:arrow-right-thick
              #name: 'Right'
              type: source
              id: 'Right'
      # Left
            - icon: mdi:arrow-left-thick
              #name: 'Left'
              type: source
              id: 'Left'
      # Up 
            - icon: mdi:arrow-up-thick
              #name: 'Up'
              type: source
              id: 'Up'
              
          ###########################################      
      # Down
            - icon: mdi:arrow-down-thick
              #name: 'Down'
              type: source
              id: 'Down'
      # Select
            - icon: #mdi:record-Rec
              name: 'Select'
              type: source
              id: 'Select'
      # Blank
            - icon: #mdi:record-Rec
              name:  
              #type: source
              #id: 'Select'
      # Blank
            - icon: #mdi:record-Rec
              #name: 'Select'
              #type: source
              #id: 'Select'
      # Blank
            - icon: #mdi:record-Rec
              #name: 'Select'
              #type: source
              #id: 'Select'
      # Blank
            - icon: #mdi:record-Rec
              #name: 'Select'
              #type: source
              #id: 'Select'

I haven’t moved the buttons around yet to be logical but they all work and they are homekitted through HA too so “Hey Siri, pause sky tv” etc all works

Just need to automate the switches so they turn off after turning them “on” using HomeKit as once the “switch” has changed the channel etc there’s no need for it to stay on.

Just a couple of notes:

sidebar - does not seem to do anything
home and guide - seem to do the same thing

The “now playing” is very quick though

many thanks.
How do you get the infos on the bottom? Are the data relative to the SkyQ box?

Sorry what do you mean info at the bottom?

The raw above BBC one (drive1, normal, 15°C, 2.01Tb, 55.9%)

Oh that’s just old config for my synology nas that I copied in there as I was going to use the same card for something tv related

ok thanks again

I’ve replaced the files in Custom_Components with the new versions, but I still don’t get any now-playing/channel information?

On my Entity information screen I also don’t get the extra information showing there.

me too…
I’ve installed 1.4 version.

Edit: tried pip install xmltodict and restarting ha, but nothing.

Here too.
Any hint will be much appreciated…

Try installing ws4py as well.

This is great, will there be any option to get epg data from xmltv for live playing channel’s? Thanks.

And me, replaced the files but no “now playing” either…

Are you running Hassio?