推荐当贝市场

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 40642|回复: 6

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

[复制链接]
发表于 2024-1-11 11:27 | 显示全部楼层 |阅读模式
前面给大家分享了极米投影仪的相关api分享 实现远程控制开机,下面再来给大家分享一下极米投影按键api控制插件,有需要的朋友自取。

前只做了简单按键的api,感觉够用了,以后不够用再试试复杂的,把下面附件解压到你的custom_components目录下(压缩包放在文末)

极米投影按键api控制插件.jpg

在configuration.yaml文件中加入:

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

lovelace 控制面板

极米投影按键api控制插件 (2).jpg

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, 下载次数: 9)

原作者:linlingzi



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

发表于 2024-1-11 13:03 | 显示全部楼层
学习一下。准备搞一搞。
回复 顶一个 踩

使用道具 举报

发表于 2024-3-6 13:41 | 显示全部楼层
感谢分享~
回复 顶一个 踩

使用道具 举报

发表于 2024-3-15 11:41 | 显示全部楼层
谢谢
回复 顶一个 踩

使用道具 举报

发表于 2024-10-8 20:45 | 显示全部楼层
学习下api技术
回复 顶一个 踩

使用道具 举报

发表于 2024-10-22 20:22 来自ZNDS手机版 | 显示全部楼层
好的很
回复 顶一个 踩

使用道具 举报

发表于 2024-10-24 14:20 | 显示全部楼层

学习一下
回复 顶一个 踩

使用道具 举报

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

本版积分规则

关闭

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

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

GMT+8, 2026-11-22 10:30 , Processed in 0.029068 second(s), 10 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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