前面給大家分享了極米投影儀的相關(guān)api分享 實(shí)現(xiàn)遠(yuǎn)程控制開機(jī),下面再來給大家分享一下極米投影按鍵api控制插件,有需要的朋友自取。
前只做了簡單按鍵的api,感覺夠用了,以后不夠用再試試復(fù)雜的,把下面附件解壓到你的custom_components目錄下(壓縮包放在文末)
極米投影按鍵api控制插件.jpg (32.2 KB, 下載次數(shù): 22)
下載附件
保存到相冊
2024-1-11 11:20 上傳
在configuration.yaml文件中加入:
remote:
- platform: xgimi_remote
name: liveroom
host: 192.168.99.157(改為你自己的IP)
lovelace 控制面板
極米投影按鍵api控制插件 (2).jpg (5.08 KB, 下載次數(shù): 19)
下載附件
保存到相冊
2024-1-11 11:20 上傳
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
相關(guān)閱讀推薦:
極米new Z6X接入米家教程 實(shí)現(xiàn)小愛控制藍(lán)牙開機(jī)及Wifi關(guān)機(jī)
|