ZNDS智能电视网 推荐当贝市场

TV应用下载 / 资源分享区

软件下载 | 游戏 | 讨论 | 电视计算器

综合交流 / 评测 / 活动区

交流区 | 测硬件 | 网站活动 | Z币中心

新手入门 / 进阶 / 社区互助

新手 | 你问我答 | 免费刷机救砖 | ROM固件

查看: 27111|回复: 6
上一主题 下一主题
[分享]

极米投影按键api控制插件分享

[复制链接]
跳转到指定楼层
楼主
发表于 2024-1-11 11:27 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式 | 来自云南
前面给大家分享了极米投影仪的相关api分享 实现远程控制开机,下面再来给大家分享一下极米投影按键api控制插件,有需要的朋友自取。

前只做了简单按键的api,感觉够用了,以后不够用再试试复杂的,把下面附件解压到你的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

xgimi_remote.zip (2.25 KB, 下载次数: 4)

原作者:linlingzi



相关阅读推荐:
极米new Z6X接入米家教程 实现小爱控制蓝牙开机及Wifi关机


上一篇:极米投影仪的相关api分享 实现远程控制开机
下一篇:极米H2投影系统V1.17.54如何开ADB
沙发
发表于 2024-1-11 13:03 | 只看该作者 | 来自江西
学习一下。准备搞一搞。
回复 支持 反对

使用道具 举报

板凳
发表于 2024-3-6 13:41 | 只看该作者 | 来自浙江
感谢分享~
回复 支持 反对

使用道具 举报

地板
发表于 2024-3-15 11:41 | 只看该作者 | 来自天津
谢谢
回复 支持 反对

使用道具 举报

5#
发表于 2024-10-8 20:45 | 只看该作者 | 来自江苏
学习下api技术
回复 支持 反对

使用道具 举报

6#
发表于 2024-10-22 20:22 来自ZNDS手机版 | 只看该作者 | 来自陕西
好的很
回复 支持 反对

使用道具 举报

7#
发表于 2024-10-24 14:20 | 只看该作者 | 来自山东

学习一下
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条

Archiver|新帖|标签|软件|Sitemap|ZNDS智能电视网 ( 苏ICP备2023012627号 )

网络信息服务信用承诺书 | 增值电信业务经营许可证:苏B2-20221768 丨 苏公网安备 32011402011373号

GMT+8, 2025-7-24 22:40 , Processed in 0.075890 second(s), 16 queries , Redis On.

Powered by Discuz!

监督举报:report#znds.com (请将#替换为@)

© 2007-2025 ZNDS.Com

快速回复 返回顶部 返回列表