Giter VIP home page Giter VIP logo

webostv's Introduction

webostv

Extension of home-assistant component webostv as of v0.100.3 to add support for missing button presses.

Supported buttons

LEFT, RIGHT, DOWN, UP, HOME, BACK, ENTER, DASH, INFO, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, ASTERISK, CC, EXIT, MUTE, RED, GREEN, BLUE, VOLUMEUP, VOLUMEDOWN, CHANNELUP, CHANNELDOWN

Instructions

Place repository files in a web webostv folder in config/custom_components and restart hassio.

Example configuration.yaml

media_player:
  - platform: webostv
    name: lgtv
    host: 192.168.0.17

remote:
  - platform: webostv
    host: 192.168.0.17
    name: lgr

Example Usage

This can be used as per the standard HA remote integration functionality.

For my purposes I have combined with the media_player card configuration using the HACS mini-media-player

entity: media_player.lgtv
hide:
  power_state: false
hide_controls: true
idle_view: true
shortcuts:
  buttons:
    - icon: 'mdi:netflix'
      id: Netflix
      name: Netflix
      type: source
    - icon: 'mdi:amazon'
      id: AmazonPrime
      name: Amazon
      type: source
    - icon: 'mdi:youtube'
      id: YouTube
      name: YouTube
      type: source
    - data:
        command: HOME
        entity_id: remote.lgr
      domain: remote
      id: remote.send_command
      name: Menu
      type: service
    - data:
        command: UP
        entity_id: remote.lgr
      domain: remote
      icon: 'mdi:arrow-up-bold'
      id: remote.send_command
      type: service
    - id: ' '
      type: source
    - data:
        command: LEFT
        entity_id: remote.lgr
      domain: remote
      icon: 'mdi:arrow-left-bold'
      id: remote.send_command
      type: service
    - data:
        command: ENTER
        entity_id: remote.lgr
      domain: remote
      id: remote.send_command
      name: Enter
      type: service
    - data:
        command: RIGHT
        entity_id: remote.lgr
      domain: remote
      icon: 'mdi:arrow-right-bold'
      id: remote.send_command
      type: service
    - id: ' '
      type: source
    - data:
        command: DOWN
        entity_id: remote.lgr
      domain: remote
      icon: 'mdi:arrow-down-bold'
      id: remote.send_command
      type: service
    - id: ' '
      type: source
  columns: 3
type: 'custom:mini-media-player'
volume_stateless: true

Temporary Solution

This acts as a 'temporary' enhancement to the webostv integration included in home assistant to add the much needed functionality for ,left, right, up, down, enter, which was sorely needed when in apps.

Long Term Solution

Long term solution at time of release looks to be a proposed enhancement by bendavid to extend functionality to media_player, negating the need for the remote. See TheRealLink/pylgtv#19 and home-assistant/architecture#299 (comment)

Credits

The enhancement to pylgtv is thanks to poroping from TheRealLink/pylgtv#18

webostv's People

Contributors

madmanmonty 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.