首頁(yè) 收藏 QQ群
 網(wǎng)站導(dǎo)航

ZNDS智能電視網(wǎng) 推薦當(dāng)貝市場(chǎng)

TV應(yīng)用下載 / 資源分享區(qū)

軟件下載 | 游戲 | 討論 | 電視計(jì)算器

綜合交流 / 評(píng)測(cè) / 活動(dòng)區(qū)

交流區(qū) | 測(cè)硬件 | 網(wǎng)站活動(dòng) | Z幣中心

新手入門(mén) / 進(jìn)階 / 社區(qū)互助

新手 | 你問(wèn)我答 | 免費(fèi)刷機(jī)救磚 | ROM固件

查看: 12497|回復(fù): 5
上一主題 下一主題
[分享]

極米投影按鍵api控制插件分享

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
發(fā)表于 2024-1-11 11:27 | 只看該作者 |只看大圖 回帖獎(jiǎng)勵(lì) |倒序?yàn)g覽 |閱讀模式 | 來(lái)自云南
前面給大家分享了極米投影儀的相關(guān)api分享 實(shí)現(xiàn)遠(yuǎn)程控制開(kāi)機(jī),下面再來(lái)給大家分享一下極米投影按鍵api控制插件,有需要的朋友自取。

前只做了簡(jiǎn)單按鍵的api,感覺(jué)夠用了,以后不夠用再試試復(fù)雜的,把下面附件解壓到你的custom_components目錄下(壓縮包放在文末)

極米投影按鍵api控制插件分享

在configuration.yaml文件中加入:

remote:
  - platform: xgimi_remote
    name: liveroom
    host: 192.168.99.157(改為你自己的IP)

lovelace 控制面板

極米投影按鍵api控制插件分享

cards:
  - cards:
      - color: 'rgb(255, 100, 100)'
        entity: remote.liveroom_xgimitv_power
        icon: 'mdi:power'
        show_name: false
        style:
          - height: 50px
        type: 'custom:button-card'
      - color_type: blank-card
        type: 'custom:button-card'
      - color_type: blank-card
        type: 'custom:button-card'
      - color: 'rgb(255, 100, 100)'
        entity: remote.liveroom_xgimitv_up
        icon: 'mdi:menu-up'
        show_name: false
        style:
          - height: 50px
        type: 'custom:button-card'
      - color_type: blank-card
        type: 'custom:button-card'
      - color_type: blank-card
        type: 'custom:button-card'
      - color: 'rgb(255, 100, 100)'
        show_name: false
        entity: remote.liveroom_xgimitv_home
        icon: 'mdi:home'
        style:
          - height: 50px
        type: 'custom:button-card'
    type: horizontal-stack
  - cards:
      - color: 'rgb(255, 100, 100)'
        show_name: false
        entity: remote.liveroom_xgimitv_setup
        icon: 'mdi:settings'
        style:
          - height: 50px
        type: 'custom:button-card'
      - color_type: blank-card
        type: 'custom:button-card'
      - color: 'rgb(255, 100, 100)'
        entity: remote.liveroom_xgimitv_left
        icon: 'mdi:menu-left'
        show_name: false
        style:
          - height: 50px
        type: 'custom:button-card'
      - color: 'rgb(255, 100, 100)'
        color_type: card
        entity: remote.liveroom_xgimitv_play
        icon: 'mdi:play-pause'
        name: OK
        show_icon: false
        style:
          - height: 50px
        type: 'custom:button-card'
      - color: 'rgb(255, 100, 100)'
        entity: remote.liveroom_xgimitv_right
        icon: 'mdi:menu-right'
        show_name: false
        style:
          - height: 50px
        type: 'custom:button-card'
      - color_type: blank-card
        type: 'custom:button-card'
      - color: 'rgb(255, 100, 100)'
        show_name: false
        entity: remote.liveroom_xgimitv_menu
        icon: 'mdi:menu'
        style:
          - height: 50px
        type: 'custom:button-card'
    type: horizontal-stack
  - cards:
      - color: 'rgb(255, 100, 100)'
        entity: remote.liveroom_xgimitv_back
        show_name: false
        icon: 'mdi:keyboard-backspace'
        style:
          - height: 50px
        type: 'custom:button-card'
      - color_type: blank-card
        type: 'custom:button-card'
      - color_type: blank-card
        type: 'custom:button-card'
      - color: 'rgb(255, 100, 100)'
        entity: remote.liveroom_xgimitv_down
        icon: 'mdi:menu-down'
        show_name: false
        style:
          - height: 50px
        type: 'custom:button-card'
      - color_type: blank-card
        type: 'custom:button-card'
      - color_type: blank-card
        type: 'custom:button-card'
      - color: 'rgb(255, 100, 100)'
        show_name: false
        entity: remote.liveroom_xgimitv_volumemute
        icon: 'mdi:volume-mute'
        style:
          - height: 50px
        type: 'custom:button-card'
    type: horizontal-stack
  - cards:
      - color_type: blank-card
        type: 'custom:button-card'
      - color_type: blank-card
        type: 'custom:button-card'
      - color: 'rgb(255, 100, 100)'
        color_type: card
        show_name: false
        icon: 'mdi:volume-plus'
        style:
          - height: 30px
        entity: remote.liveroom_xgimitv_volumeup
        type: 'custom:button-card'
      - color_type: blank-card
        type: 'custom:button-card'
      - color: 'rgb(255, 100, 100)'
        show_name: false
        color_type: card
        entity: remote.liveroom_xgimitv_volumedown
        icon: 'mdi:volume-minus'
        style:
          - height: 30px
        type: 'custom:button-card'
      - color_type: blank-card
        type: 'custom:button-card'
      - color_type: blank-card
        type: 'custom:button-card'
    type: horizontal-stack
type: vertical-stack

游客,如果您要查看本帖隱藏內(nèi)容請(qǐng)回復(fù)


原作者:linlingzi



相關(guān)閱讀推薦:
極米new Z6X接入米家教程 實(shí)現(xiàn)小愛(ài)控制藍(lán)牙開(kāi)機(jī)及Wifi關(guān)機(jī)


上一篇:極米投影儀的相關(guān)api分享 實(shí)現(xiàn)遠(yuǎn)程控制開(kāi)機(jī)
下一篇:極米H2投影系統(tǒng)V1.17.54如何開(kāi)ADB
沙發(fā)
發(fā)表于 2024-1-11 13:03 | 只看該作者 | 來(lái)自江西
學(xué)習(xí)一下。準(zhǔn)備搞一搞。
板凳
發(fā)表于 2024-3-6 13:41 | 只看該作者 | 來(lái)自浙江
感謝分享~
地板
發(fā)表于 2024-3-15 11:41 | 只看該作者 | 來(lái)自天津
謝謝
5#
發(fā)表于 2024-10-8 20:45 | 只看該作者 | 來(lái)自江蘇
學(xué)習(xí)下api技術(shù)
6#
發(fā)表于 2024-10-22 20:22 來(lái)自ZNDS手機(jī)版 | 只看該作者 | 來(lái)自陜西
好的很

本版積分規(guī)則

Archiver|新帖|標(biāo)簽|軟件|Sitemap|ZNDS智能電視網(wǎng) ( 蘇ICP備2023012627號(hào) )

網(wǎng)絡(luò)信息服務(wù)信用承諾書(shū) | 增值電信業(yè)務(wù)經(jīng)營(yíng)許可證:蘇B2-20221768 丨 蘇公網(wǎng)安備 32011402011373號(hào)

GMT+8, 2024-10-23 04:40 , Processed in 0.071547 second(s), 15 queries , Redis On.

Powered by Discuz!

監(jiān)督舉報(bào):report#znds.com (請(qǐng)將#替換為@)

© 2007-2024 ZNDS.Com

快速回復(fù) 返回頂部 返回列表