Giter VIP home page Giter VIP logo

lovelace-remote-card's Introduction

lovelace-remote-card

hacs_badge

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

js类型安装 remote.js .

resources:
  url: /community_plugin/lovelace-remote/remote-card.js
  type: js

slider-entity-row

使用

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

                    - type: custom:lovelace-remote-card
                      vibrate: true
                      entity: device_tracker.cc_b8_a8_01_ca_43
                      circle:
                        ok: 
                          topic: homeassistant/remote/JMGO
                        up: 
                          topic: homeassistant/remote/JMGO
                          payload: up
                        down: 
                          topic: homeassistant/remote/JMGO
                          payload: down
                        left: 
                          topic: homeassistant/remote/JMGO
                          payload: left 
                        right: script.tap 
                      left_buttons:
                        - entity: qmtt.retu
                          topic: homeassistant/remote/JMGO
                          payload: retu
                          icon: mdi:keyboard-return 
                        - entity: qmtt.on
                          topic: homeassistant/remote/JMGO
                          payload: "on"
                          icon: mdi:power 
                        - entity: qmtt.home
                          topic: homeassistant/remote/JMGO
                          payload: home
                          icon: mdi:home
                        - entity: qmtt.menu
                          topic: homeassistant/remote/JMGO
                          payload: "menu"
                          icon: mdi:menu 
                        - entity: script.vacuum_office
                          icon: mdi:volume-minus 
                        - entity: switch.ban_gong_shi_1
                          server: toggle
                          icon: mdi:volume-plus

属性

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

lovelace-remote-card's People

Contributors

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