找回密码
 立即注册

微信扫码登录

搜索
查看: 159|回复: 2

[UI界面] 海信电视遥控器UI

[复制链接]

22

主题

388

回帖

2810

积分

金牌会员

积分
2810
金钱
2385
HASS币
110
发表于 昨天 10:56 | 显示全部楼层 |阅读模式
本帖最后由 flashbj 于 2025-8-13 10:57 编辑

目前海信爱家小程序有虚拟遥控器界面,可以通过手机来控制电视,目前控制功能还未写完,先做个遥控器的UI,让各位老爷们看看吧。

小程序的遥控器界面如下:
1.png
物理遥控器的样式如下:
3d496b20-bcff-46f3-8882-718a834c2f8e.jpg
因为小程序中的遥控器功能不如物理遥控器的多,比如“直播、教育、游戏”等功能在小程序上没有,抓的包中也没有以上功能的控制接口,所以我就已小程序的遥控器功能为准做了以下UI。
2.png
此UI支持“电源键、主页、菜单、设置、信号源、确认、上下左右、返回、音量+ -、静音”功能。
此UI的底图是用物理遥控器照片通过PS进行调整得来的,具体代码如下,图片请见附件。
type: vertical-stack
cards:
  - type: vertical-stack
    cards:
      - type: picture-elements
        image: /local/电视遥控器/遥控器.png
        elements:
          - type: icon
            entity: button.dian_shi_shua_xin_an_niu
            tap_action:
              action: toggle
            content_info: none
            icon: mdi:refresh
            style:
              top: 7%
              left: 94%
          - type: image
            entity: button.dian_shi_shua_xin_an_niu
            image: /local/电视遥控器/开关键.png
            style:
              top: 11%
              left: 51%
              width: 10%
            tap_action:
              action: toggle
            hold_action:
              action: none
          - type: image
            entity: button.dian_shi_shua_xin_an_niu
            image: /local/电视遥控器/主页.png
            style:
              top: 23%
              left: 26.5%
              width: 7%
            tap_action:
              action: toggle
          - type: image
            entity: button.dian_shi_shua_xin_an_niu
            image: /local/电视遥控器/菜单.png
            style:
              top: 23%
              left: 42.5%
              width: 7%
            tap_action:
              action: toggle
          - type: image
            entity: button.dian_shi_shua_xin_an_niu
            image: /local/电视遥控器/设置.png
            style:
              top: 23%
              left: 58.7%
              width: 11%
            tap_action:
              action: toggle
          - type: image
            entity: button.dian_shi_shua_xin_an_niu
            image: /local/电视遥控器/信号源.png
            style:
              top: 23%
              left: 74.5%
              width: 8%
            tap_action:
              action: toggle
          - type: image
            entity: button.dian_shi_shua_xin_an_niu
            image: /local/电视遥控器/上.png
            style:
              top: 35.3%
              left: 51%
              width: 15%
            tap_action:
              action: toggle
          - type: image
            entity: button.dian_shi_shua_xin_an_niu
            image: /local/电视遥控器/下.png
            style:
              top: 62%
              left: 51%
              width: 15%
            tap_action:
              action: toggle
          - type: image
            entity: button.dian_shi_shua_xin_an_niu
            image: /local/电视遥控器/左.png
            style:
              top: 49%
              left: 30%
              width: 15%
            tap_action:
              action: toggle
          - type: image
            entity: button.dian_shi_shua_xin_an_niu
            image: /local/电视遥控器/右.png
            style:
              top: 49%
              left: 71.5%
              width: 15%
            tap_action:
              action: toggle
          - type: image
            entity: button.dian_shi_shua_xin_an_niu
            image: /local/电视遥控器/确认.png
            style:
              top: 49%
              left: 50.5%
              width: 17%
            tap_action:
              action: toggle
          - type: image
            entity: button.dian_shi_shua_xin_an_niu
            image: /local/电视遥控器/返回.png
            style:
              top: 77%
              left: 51%
              width: 12%
            tap_action:
              action: toggle
          - type: image
            entity: button.dian_shi_shua_xin_an_niu
            image: /local/电视遥控器/加号.png
            style:
              top: 90%
              left: 72%
              width: 8%
            tap_action:
              action: toggle
          - type: image
            entity: button.dian_shi_shua_xin_an_niu
            image: /local/电视遥控器/减号.png
            style:
              top: 90%
              left: 30%
              width: 8%
            tap_action:
              action: toggle
          - type: image
            entity: button.dian_shi_shua_xin_an_niu
            image: /local/电视遥控器/静音.png
            style:
              top: 90%
              left: 52%
              width: 10%
            tap_action:
              action: toggle


ui中用的图片: 电视遥控器.zip (4.75 MB, 下载次数: 1)


备注:遥控器各按键的具体功能还在努力完成中,等写完后,就可以使用此遥控器来控制电视了,敬请各位老爷们期待。

评分

参与人数 1金钱 +5 收起 理由
b361273068 + 5 纳尼,还有这种操作?

查看全部评分

回复

使用道具 举报

2

主题

94

回帖

607

积分

高级会员

积分
607
金钱
511
HASS币
0
发表于 昨天 11:03 | 显示全部楼层
请问有海信电视接入及控制开机教程吗,我打开电视adb调试,用安卓tv插件可以接入,但不能开机。
回复

使用道具 举报

22

主题

388

回帖

2810

积分

金牌会员

积分
2810
金钱
2385
HASS币
110
 楼主| 发表于 昨天 11:12 | 显示全部楼层
Deardreams 发表于 2025-8-13 11:03
请问有海信电视接入及控制开机教程吗,我打开电视adb调试,用安卓tv插件可以接入,但不能开机。 ...

通过小程序的遥控器也无法开机,给你个思路,电视插座换个智能插座,然后调整电视的工程模式设置成通电自启动,这样电视插座一开电视就自动开机了
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )

GMT+8, 2025-8-14 16:47 , Processed in 0.231337 second(s), 8 queries , MemCached On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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