『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 1147|回复: 1

[UI界面] 用 Homekit-panel-card界面的大佬来看看显示传感器的问题

[复制链接]

20

主题

122

帖子

1969

积分

金牌会员

Rank: 6Rank: 6

积分
1969
金钱
1847
HASS币
10
发表于 2022-8-24 16:57:01 | 显示全部楼层 |阅读模式
pic1111.jpg

红圈这个传感器的card如何全屏显示,去掉外面那层白色的,还有字体前面那个icon位置如何取消掉

下面是代码
views:


回复

使用道具 举报

20

主题

122

帖子

1969

积分

金牌会员

Rank: 6Rank: 6

积分
1969
金钱
1847
HASS币
10
 楼主| 发表于 2022-8-24 17:00:07 | 显示全部楼层
views:
  - theme: Backend-selected
    title: 所有设备
    path: light
    icon: mdi:cellphone-link
    type: panel
    badges: []
    cards:
      - type: picture-elements
        image: /local/ui/侧边栏背景.png
        elements:
          - enableColumns: true
            rows:
              - columns:
                  - column: 1
                    entities:
                      - entities:
                          - card: custom:mini-graph-card
                            cardOptions:
                              entities:
                                - sensor.lumi_mgl01_3897_illumination_sensor
                              name: 光照传感器
                              icon: none
                            cardStyle: |
                              .header {
                                padding: 0;
                                font-size: 14px !important;
                                -webkit-transform: scale(0.6)
                              }
                              .header .icon {
                                  color: #f7d959;
                                  font-size: 14px !important;
                                  -webkit-transform: scale(0.6)
                              }
                              .states {
                                padding: 0;
                              }
                              .states .state .state__value {
                                font-size:14px;
                              }
                              :host {
                                width: 100%;
                                height: 100%;
                              }
                          - type: custom:button-card
                            entity: sensor.lumi_mgl01_3897_illumination_sensor
                            name: 光照传感器

回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-9 23:10 , Processed in 0.334692 second(s), 26 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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