GithubHelp home page GithubHelp logo

lovelace-remote-card's Introduction

lovelace-remote-card

hacs_badge

这是一个通用的电视(机顶盒)遥控器卡片, 可以自定义设置额外的按钮

slider-entity-row

使用

!> 注意:只支持script

增加这个卡片到你的Yaml或者UI编辑器

type: 'custom:lovelace-remote-card'
vibrate: true
entity: binary_sensor.tian_mao_mo_he
circle:
  ok: script.yao_kong_select
  up: script.yao_kong_up
  down: script.yao_kong_down
  left: script.yao_kong_left
  right: script.yao_kong_right
right_buttons:
  - entity: script.chuang_wei_dian_shi_kai_guan
    icon: 'mdi:monitor'
  - entity: script.tian_mao_mo_he_kai_guan
    icon: 'mdi:set-top-box'
  - entity: script.yao_kong_power_on
    icon: 'mdi:power'
  - entity: script.yao_kong_back
    icon: 'mdi:keyboard-return'
  - entity: script.yao_kong_home
    icon: 'mdi:home'
  - entity: script.yao_kong_menu
    icon: 'mdi:menu'
  - entity: script.yao_kong_volume_down
    icon: 'mdi:volume-minus'
  - entity: script.yao_kong_volume_up
    icon: 'mdi:volume-plus'

小米电视遥控

type: 'custom:lovelace-remote-card'
vibrate: true
entity: media_player.xiao_mi_dian_shi
circle:
  ok: 
    service: remote.send_command
    data:
      command: enter
      entity_id: remote.xiao_mi_dian_shi
  up: 
    service: remote.send_command
    data:
      command: up
      entity_id: remote.xiao_mi_dian_shi
  down: 
    service: remote.send_command
    data:
      command: down
      entity_id: remote.xiao_mi_dian_shi
  left: 
    service: remote.send_command
    data:
      command: left
      entity_id: remote.xiao_mi_dian_shi
  right: 
    service: remote.send_command
    data:
      command: right
      entity_id: remote.xiao_mi_dian_shi
right_buttons:
  - icon: 'mdi:power'
    service: remote.send_command
    data:
      command: power
      entity_id: remote.xiao_mi_dian_shi
  - icon: 'mdi:keyboard-return'
    service: remote.send_command
    data:
      command: back
      entity_id: remote.xiao_mi_dian_shi
  - icon: 'mdi:home'
    service: remote.send_command
    data:
      command: home
      entity_id: remote.xiao_mi_dian_shi
  - icon: 'mdi:menu'
    service: remote.send_command
    data:
      command: menu
      entity_id: remote.xiao_mi_dian_shi
  - icon: 'mdi:volume-minus'
    service: remote.send_command
    data:
      command: volumedown
      entity_id: remote.xiao_mi_dian_shi
  - icon: 'mdi:volume-plus'
    service: remote.send_command
    data:
      command: volumeup
      entity_id: remote.xiao_mi_dian_shi

属性

注意:只支持script

  • circle
    • up
    • down
    • left
    • right
    • ok 确认
  • right_buttons 右侧按钮支持script 可以添加任意数量,但是建议在6或者8个,为的是UI的和谐. 格式严格按照示例
  • bottom_buttons 底部按钮支持script 可以添加任意数量,但是建议在6或者8个,为的是UI的和谐. 格式严格按照示例
  • vibrate (选项)设置按钮震动反馈是否开启True/False
  • entity (选项) 可以指定设备的追踪ID,一般是路由器追踪,判断电视是否在线

lovelace-remote-card's People

Contributors

fineemb avatar shaonianzhentan avatar

Stargazers

 avatar  avatar BOTD avatar kylin 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.