Coder Social home page Coder Social logo

webos-player's Introduction

webos-player

A compact size custom mod webos player for Home Assistant Lovelace

wosp04 wosp05 wosp06 wosp03 wosp09 wosp08 wosp02

Update - Added volume shadow

vol shadow vol shadow2

Features

  • navigator pad
  • keynumber pad
  • sources selector
  • favorite channels selector
  • channel up/down
  • play/pause
  • forward/rewind
  • volume slider
  • volume value
  • volume mute button
  • home, back, exit buttons
  • settings, channels list, info buttons
  • color buttons
  • channel logo background
  • source image background
  • power on/off
  • channel/source name label
  • input text to write, notify or web search

Requirements

Prerequisites

At least one webos tv integrated in Home Assistant with customized sources

webostv:
  - name: my_tv
    host: !secret my_tv_ip
    turn_on_action:
      service: wake_on_lan.send_magic_packet
      data:
        mac: !secret my_tv_mac
    customize:
      sources:
        - Browser Web 
        - Live TV   
        - HDMI 1
        - ...

Instructions

  1. Download tv_logos folder into ' www/ ' directory, add here yours tv logos with .png extension

  2. Add the webos player custom template wosp-template.yaml to button_card_templates:

  3. Put a package wosp_package.yaml into the packages folder, and rename it for one specific tv device.
    E.g.: wosp_package_my_tv.yaml or wosp_package_bedroom_tv.yaml.

    Into the renamed package:

    • replace all occurences of WOSP_ENTITY with the webos media_player object_id.
      E.g.: media_player.my_tv --> replace WOSP_ENTITY with my_tv
    • edit your favorite channels after 'favorites' field
      E.g.:
        options: >
          {{ [
            'favorites'
          , 'channel 1'
          , 'channel 2'
          , 'channel 3' ] }}
      
    • check tv channel source name
      in some webos versions the name of tv channels source is different from 'Live TV', because depends on the system language.
      In this case need modify the name on the package, replacing "Live TV" with correct name of tv channels source
      E.g: for italian language the correct source name is "Canali TV". So
      From
      variables:
        source: "Live TV"
      
      to
      variables:
        source: "Canali TV"
      

    * Repeat step 3 for every tv device

Adding webos player to lovelace

  - cards:  
      - type: 'custom:button-card'
        entity: media_player.my_tv
        template: wosp

webos-player's People

Stargazers

 avatar

Watchers

 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.