Custom Component: SkyQ Media Player

i’m using select_source with this data:
{ “entity_id”: “media_player.skyq_salotto”, “source”: “Fox HD” }

This works for me - you can import into Node Red.

[{"id":"7f1c60a23c2b654c","type":"inject","z":"b56c7f40.a7397","name":"Trigger","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"BBC Two HD","payloadType":"str","x":150,"y":320,"wires":[["57775c8c243d6e6c"]]},{"id":"57775c8c243d6e6c","type":"api-call-service","z":"b56c7f40.a7397","name":"","server":"86fae200.61af7","version":3,"debugenabled":false,"service_domain":"media_player","service":"select_source","entityId":"media_player.sky_q","data":"{\"source\": payload}","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":370,"y":320,"wires":[["27543634bfe529dc"]]},{"id":"27543634bfe529dc","type":"debug","z":"b56c7f40.a7397","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":590,"y":320,"wires":[]},{"id":"86fae200.61af7","type":"server","name":"Home Assistant","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30}]

You will need to have configured it as a source in the UI.

If that doesn’t work, please raise a bug on my GitHub with all the relevant info.

hi, i had installed and configured this integration on hassio but the skyq media player is always not available.
restarting the integration or changing parameters the entity become available only for few seconds.
this is the results of the url

{
“ASVersion” : “1.0.0”,
“IPAddress” : “192.168.1.103”,
“bouquet” : 65280,
“countryCode” : “ITA”,
“gateway” : true,
“hardwareName” : “Xi1”,
“householdToken” : “”,
“modelNumber” : “QS150.29.92P”,
“pipCapable” : false,
“serialNumber” : “00100014417”,
“streamingCapable” : false,
“subbouquet” : 0,
“versionNumber” : “32E103”
}

i see this error on home assistant log:

Logger: pyskyqremote.classes.deviceaccess
Source: /usr/local/lib/python3.9/site-packages/pyskyqremote/classes/deviceaccess.py:92
First occurred: 17:33:51 (100 occurrences)
Last logged: 17:48:37

X0010U - Connection error: 192.168.1.103 : HTTPConnectionPool(host=‘192.168.1.103’, port=49153): Max retries exceeded with url: /description45.xml (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7fa90f88b0>: Failed to establish a new connection: [Errno 111] Connection refused’))

any ideas?

thanks

Private messaged you

Thank you, i missed the source selection in the UI

1 Like

Hi… I had to reinstall HomeAssistant and installed HACs as well. Installed SKY Q repository through HACS and restarted HA. I am not getting the Sky Q option in integrations (UI). However, if I enter the config values in YAML, the sky q boxes show up in HA. But I would love to use the UI for integration.

Any help will be much appreciated.

HACS version: 1.19.2
Front end version: 20211231144850
Home Assistant 2021.12.8

I have seen this happen with another integration in my environment, after a while it appeared in the UI. I don’t know what the trigger was for getting it to appear because I just re-booted several times and installed another integration via HACS. I’m not sure where the problem lies, but 99% sure it isn’t in the SkyQ integration.

1 Like

Thanks Roger. Yes it has mysteriously appeared now. It is all working.

Hello there

I am trying to locate this integration on HACS but typing Sky or Sky Q yields no results

Can anybody point me towards the correct integration name !

Ty !

You need to add it as custom repository. Go to the integrations tab of HACS, go to the three dot menu, then click custom repositories. Add the url of my GitHub repository with category of Integration. When added, just look for SkyQ.

1 Like

Hi All,

Managed to get the main repo installed and working from RogTP, now I am in HACS and trying to find “mini-media-player” I have searched with - and without them, and I just can’t seem to find it? No results are found?

Am I missing something totally obvious here?

Have you looked under Frontend instead of Integration?

Yeah I managed to install it not long after my message, but I just can’t figure out how to get the card to show, I took over control of my “dashboard” and went to + and it doesn’t show. Not too sure, I will try and do more digging and post back, needed a break last night lol

Look for custom… But you can add any and then go to ‘Show Code Editor’ and then add the relevant code. My set is below (I don’t use the buttons much, so whilst I think they work I’m not 100% sure).

artwork: cover
entity: media_player.sky_q
hide:
  icon_state: false
  power_state: false
  source: false
  volume: false
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

did this get anywhere as i also have sky glass and would like to get involved

Hiya - not at this point. We’ve been unable to find the right api endpoints on the TV to enable it to work. I keep digging on the internet on an occasional basis. I don’t have a Sky Glass, so I can’t probe it myself, but a couple of others have been doing some looking with no success.

@KarlKarlsson

Hi Karl!

I am also from Austria. By coincidence I found this thread here. I am having Sky X Box, not Sky Q. With same firmware as you mentioned. I am eager to know if you were able to get it running. I have same error as you, saying it can’t connect to the host.

best regards,
Thomas

wget -m -k -p http://ipbox:13579/index.html

NDS_SW_VERSION=“Q180.000.16.01L (5f5)”
PLATFORM=“eu-q-amidala-de”
Linux version 3.10.92-stih418_amidala (@55) (gcc version 6.3.0 (crosstool-NG 1.0.2 - st-common) ) #2 SMP PREEMPT Wed Sep 29 08:46:50 UTC 2021

dev: size erasesize name
mtd0: 00020000 00010000 “nsk2_0”
mtd1: 00020000 00010000 “nsk2_1”
mtd2: 00010000 00010000 “iram_even”
mtd3: 00010000 00010000 “iram_odd”
mtd4: 00010000 00010000 “reserved”
mtd5: 00090000 00010000 “humax_area”
mtd6: 00400000 00010000 “all”

Hi all.
From a couple of days I get this.
In log there is the following:

Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/skyq/classes/mediabrowser.py:98
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 19:49:48 (2 occurrences)
Last logged: 19:51:29

[2738497832] Error handling message: Unknown error
[2756019512] Error handling message: Unknown error
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 1162, in websocket_browse_media
    payload = await player.async_browse_media(media_content_type, media_content_id)
  File "/config/custom_components/skyq/media_player.py", line 465, in async_browse_media
    return await self._media_browser.async_browse_media(
  File "/config/custom_components/skyq/classes/mediabrowser.py", line 35, in async_browse_media
    channellist = await self._async_prepare_channels(hass, channel_list)
  File "/config/custom_components/skyq/classes/mediabrowser.py", line 62, in _async_prepare_channels
    channel = await self._async_get_channel_info(hass, channel_list, source)
  File "/config/custom_components/skyq/classes/mediabrowser.py", line 98, in _async_get_channel_info
    "thumbnail": self._app_image_url.getAppImageUrl(source),
AttributeError: 'AppImageUrl' object has no attribute 'getAppImageUrl'

It started on 2022.2, after trying to add a different channel.
Thanks!!!

Please can you raise a bug report on my github page so we can track it there. Please provide all the details requested.