Coder Social home page Coder Social logo

geertsmichael / ziggonext Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jitzesinnema/ziggo_mediabox_next

0.0 0.0 0.0 71 KB

Custom component to integrate Ziggo Mediabox Next into Home Assistant

License: GNU General Public License v3.0

Python 100.00%

ziggonext's Introduction

Ziggo Mediabox Next

hacs_badge
Buy Me A Coffee

Breaking changes!!

Sensors are added to this component. Therefore the configuration for this component has changed. Check the configuration section below!

Description

A media player component for Home Assistant that creates a media player and a sensor for each Ziggo Media Box Next in your account.

Prerequisites

  • You need a Ziggo account with a Ziggo Media Box Next.
  • The energy mode needs to be set to high ("Hoog" in Dutch), otherwise you are not able to switch the device on in the media player.

HACS Installation

  1. Make sure you've installed HACS
  2. In the integrations tab, search for ZiggoNext.
  3. Install the Integration.
  4. Add ziggonext entry to configuration (see below)

Manual installation

  1. Open the directory (folder) for your HA configuration (where you find configuration.yaml).
  2. If you do not have a custom_components directory (folder) there, you need to create it.
  3. In the custom_components directory (folder) create a new folder called ziggonext.
  4. Download all the files from the custom_components/ziggonext/ directory (folder) in this repository.
  5. Place the files you downloaded in the new directory (folder) you created.
  6. Add ziggonext entry to configuration (see below)
  7. Restart Home Assistant

Configuration

ziggonext:
  username: !secret ziggo_username
  password: !secret ziggo_password  

The id's for media_players and sensors are generated based on the name provided by Ziggo. You can adjust your box name in the settings on the ziggogo.tv website.

Parameters

Parameter Type Required Description
username string yes Your Ziggo username
password string yes Your Ziggo password
country_code string no (default 'nl') Your country code. Currently supported: nl, ch, be-nl, be-fr*

* Not tested

Service to change channel

service: media_player.play_media
service_data:
  entity_id: media_player.ziggobeneden
  media_content_id: 401 # Any channel number, 'Netflix' or 'Videoland'
  media_content_type: channel # 'channel' when media_content_id is channelnumber, 'app' when media_content_id is 'Netflix' or 'Videoland' 

Custom services

This service can be called to start a recording. Note that this shows a pop-up on screen and confirmation is required.

service: ziggonext.record
service_data:
  entity_id: media_player.ziggobeneden

This service can be called to rewind or fast-forward. Note that this command can be called multiple times to speed up. To stop this action, you can call the standard media_player.play service on the same entity.

service: ziggonext.rewind
service_data:
  entity_id: media_player.ziggobeneden

service: ziggonext.fast_forward
service_data:
  entity_id: media_player.ziggobeneden

Credits

ziggonext's People

Contributors

geertsmichael avatar michael-geerts avatar sholofly avatar shortwood 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.