SkyQ平台允许您控制SkyQ设置顶部框。

There is currently support for the following device types within Home Assistant:

  • 媒体播放器

媒体播放器

To begin with ensure your SkyQ set top box or boxes have static IP addresses.

Download the custom component into your \custom_components\skyq\

下载链接

CONFIGURATION

要在安装中添加SkyQ,请在您的配置中添加以下内容。yaml文件:

#示例Configuration.yaml条目

媒体播放器:

- platform: skyq

CONFIGURATION VARIABLES

主持人

(string)(Required)

The IP of the SkyQ set top box, e.g., 192.168.0.10.

name

(string)( Required)

您想给SkyQ套装顶部框的名称。

sources

(list)( Required)

List of channels or other commands that will appear in the source selection.

room

(string)( Required)

The room where the SkyQ set top box is located.

config_directory

(string)( Required)

The location of your default configuration folder.

Hassbian default would be - config_directory: '/home/homeassistant/.homeassistant/'

generate_switches_for_channels

(boolean)( Required)

Generate switches for each item listed in source, this helps when using an assistant e.g google home

Usage based on google home:“turn on in the

To integrate these, add the generated yaml, to your configuration.yaml

EXAMPLE

转变:

- platform: template

switches: !include skyq.yaml

*remove any spaces from the room

EXAMPLE

A full configuration example will look like the sample below:

#示例Configuration.yaml条目

媒体播放器:

- platform: skyq

姓名:Skyq客厅

主机:192.168.0.10

room: Living Room

config_directory: '/home/homeassistant/.homeassistant/'

generate_switches_for_channels: true

资料来源:

SkyOne: '1,0,6'

SkyNews: '5,0,1'

避免在名称中使用[]:或房间:设备的空间。

来源

要配置源,请将名称设置为<名称>:‘

7 Likes

Hello and many thanks, outstanding, it works perfecly.
One question: do you have any example of skyq_remote control under lovelace?
谢谢again!!!

谢谢@IK0ADR

I’ve only been using HA for a couple of weeks, so lovelace is new… had a quick look at the development side and it looks achievable to generate a lovelace card in a similar way to the switch generation.

@cameron您可以为此分享您的YAML吗?:slight_smile:-Sky Q box switch

Great! Thanks!
一些注释:

  • 可以通过输入框发送命令吗?示例:通过input_text更改频道编号
    It can be usefull to integrate in google home via ifttt and appdaemon
  • On a previous integration was possible to see the channel name or the streamed content in the mediaplayer, probably the data is still available from the skyQ. Example: ‘Reproducing: SkyNews’

Hi@Fraschi,不幸的是,至少目前无法从框中查看当前的频道……但是,我可以根据您通过家庭助理选择的频道添加当前频道播放,但是如果使用遥控器,这将不同步19463331伟德国际。

I’ll look into the input text, but looking the only way this would be achievable from an assistant via the media player component, i think, would be to use the set volume command. - this could then be extended with input text, i think

谢谢for your feedback, always welcomed:slight_smile:

1喜欢

@4N0ND3V3L0P3RShould this work onHass.io?I’m a HA newbie anyway so am still struggling to work it all out but I think the file locations are different and in the sky_remote.py file I can see a line that seems to hard code the file location (Line 5 ROOT = “/home/homeassistant/.homeassistant/”) , so I’m not sure it is even possible.

If it should work on Hass,io I’d be grateful for any handholding available to set this up. Thanks

1喜欢

How to use the source switches in an automation?

Same here, just discovered this but I’m still a newbie when it comes to custom components…

Use the binary switches the component creates.

generate_switches_for_channels(boolean)(必需)生成源中列出的每个项目的开关,这在使用助手时会有所帮助,例如,基于Google Home的Google Home使用:“打开<源名称 /频道名称>”以集成这些内容,以集成这些内容。生成的yaml,到您的配置。yaml示例开关: - 平台:模板开关:!include skyq 

谢谢,我明白了……关于按钮的文档,您的意思是什么?如何使用例如天空或电源或其他可用功能创建按钮?
EDIT: i cannot find任何如果我关注您的文档,也会创建二进制传感器。
My config is:

- 平台:SkyQ名称:SkyQ Salotto主机:192.168.1.32房间:Salotto Config_directory:'/homem/homeassistant/.homeassistant/.homeassistant/'generate_switches_for_channels:true Sources:Skyuno:Skyuno:'1,1,1,0'Skytg24:'5,0,0,0,0,0,0,0,0,0,0,0,0 of'Skysport_serie_a:'2,0,2'Inter_tv:'2,3,2'

I wasn’t able to use that.
我们应该致电作者寻求帮助…:grin:

Still trying to get the binary switches created with this component…
Where the hell they are? And which is their name?

My config is:

- 平台:SkyQ名称:SkyQ Salotto主机:192.168.1.32房间:Salotto Config_directory:'/homem/homeassistant/.homeassistant/.homeassistant/'generate_switches_for_channels:true Sources:Skyuno:Skyuno:'1,1,1,0'Skytg24:'5,0,0,0,0,0,0,0,0,0,0,0,0 of'Skysport_serie_a:'2,0,2'Inter_tv:'2,3,2'

They are created in your config directory.
文件名是Skyqsalotto.yaml,用于您的Salotto Room。
In your config file, in the switch section, you should include

开关: - 平台:模板开关:!包括skyqsalotto.yaml

Ok, finally i found them:smile:!
Are they configurable inside that yaml? I mean the name…

The system automatically gives the switch name with channel name and room.

skyq_sky_sport_trelivingroom:value_template:'{{“ off”}}'友好_name:'sky_sport_tre in the Esive Room in The Torn_on'turn_on:service:eferase_player.select_source data:entity_id:entity_id:media_player.skyq_living_sport_sport_sport_sport_sport_sport_sport_sport_effere.

当然,我的房间被称为“客厅”。
开关名称是

switch.skyq_sky_sport_trelivingroom

如果您更改某些内容,将在下一个HA开始时被覆盖。

So i can change the friendly name and/or the switch name?
If it is created as

skyq_sky_sport_trelivingroom

may i change it into

skyq_sky_sport_tre ?

编辑:要添加更多频道,我会在Media_player配置或此YAML中进行操作?

是的,当然,但是它会被HA开始时的旧名称所覆盖。
OR you may disable the file creation, thus saving the changes.
Your choice…

generate_switches_for_channels:false

因此,如果我在此YAML中添加更多名称,则不需要添加到Media_player配置中?
Ah, ok i understand now… And if i use false, i will have the names i add to the yaml when clicking on the arrow in the media player card?

Don’t need to add anything.
The yaml files created will not be deleted with ‘false’.

1喜欢

Ok, thanks…