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

TV应用下载 / 资源分享区

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

综合交流 / 评测 / 活动区

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

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

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

查看: 7427|回复: 3
上一主题 下一主题
[分享]

极米投影按键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

游客,如果您要查看本帖隐藏内容请回复


原作者: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 | 只看该作者
谢谢
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-4-28 07:46 , Processed in 0.072054 second(s), 18 queries , Redis On.

Powered by Discuz!

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

© 2007-2024 ZNDS.Com

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