GithubHelp home page GithubHelp logo

spazbadger / home_assistant_skyq_mediaplayer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 4n0nd3v3l0p3r/home_assistant_skyq_mediaplayer

0.0 1.0 0.0 48 KB

Home Assistant SkyQ Media player component

License: MIT License

Python 100.00%

home_assistant_skyq_mediaplayer's Introduction

CodeFactor

Custom Component for SkyQ Integration for Home Assistant

The skyq platform allows you to control a SkyQ set top box.

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

  • Media Player

Installation

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

Download the custom component in to your folder <config_directory>/custom_components/skyq

Media Player Configuration

Example of basic configuration.yaml

media_player:
 - platform:  skyq
   name: SkyQ Living Room
   host: 192.168.0.10
   sources:
      SkyOne: '1,0,6'
      SkyNews: '5,0,1'

Configuration variables

media_player: platform (string)(Required) Must be set to skyq

host (string)(Required) The IP of the SkyQ set top box, e.g., 192.168.0.10.

name (string)(Required) The name you would like to give to the SkyQ set top box.

sources (list)(Required) List of channels or other commands that will appear in the source selection.

name (string)(Required) The name you would like to give to the SkyQ set top box.

output_programme_image (boolean)(Optional) Default True Enables you to disable returning images when watching recorded programmes. Useful if using a modified media player UI, where you don't want the background changing.

Sources

To configure sources, set as

<YourChanneName> : ‘<button>,<button>,<button>’.

Supported buttons

sky, power, tvguide or home, boxoffice, search, sidebar, up, down, left, right, select, channelup, channeldown, i, dismiss, text, help,

play, pause, rewind, fastforward, stop, record

red, green, yellow, blue

0, 1, 2, 3, 4, 5, 6, 7, 8, 9

Next/Previous Buttons

The behaviour of the next and previous buttons is fastforward and rewind (multiple presses to increase speed, play to resume)

Switch Generation Helper

A utility function has been created to generate yaml configuration for SkyQ enabled media players to support easy usage with other home assistant integrations, e.g. google home

Usage based on google home: “turn on <source name / channel name> in the ”

Configuration

generate_switches_for_channels (boolean)(Optional) Default False Generate switches for each item listed in source. The files will be generated in /skyq.yaml

config_directory (string)(Optional) Default '/config/' The location of your configuration folder.

The correct path required if generate_switches_for_channels is set to True to enable output generation of yaml files to the correct location

Hassbian default would be - config_directory: '/home/homeassistant/.homeassistant/' or '/config/' for hassio

room (string)(Optional) Default 'Default Room' The room where the SkyQ set top box is located.

Avoid using [ ] in the name: or room: of your device. This field is required if you have more than one SkyQ box being configured with switches

Example configuration.yaml with switch generation

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

To integrate these generated switch configuration files, add the generated yaml to your configuration.yaml. The following example configuration implements the generated switches from the generate_switches_for_channels function.

switch:
- platform: template
  switches: !include  skyq<room*>.yaml

home_assistant_skyq_mediaplayer's People

Contributors

madmanmonty avatar 4n0nd3v3l0p3r avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.