分享 HS300排版面板設定

HACS Frontend 安裝 Multiple Entity Row
並在configruaction.yaml加入下行

lovelace:
  resources:
    - url: /hacsfiles/lovelace-multiple-entity-row/multiple-entity-row.js
      type: module

HS300 Code

type: entities
entities:
  - entity: switch.hs300_1_led
  - entity: switch.maccha_zuo
    type: custom:multiple-entity-row
    name: MAC
    state_header: Power
    styles:
      width: 30px
    toggle: true
    state_color: true
    icon: mdi:power
    entities:
      - entity: sensor.maccha_zuo_voltage
        name: 電壓
        styles:
          width: 30px
      - entity: sensor.maccha_zuo_current
        name: 電流
        styles:
          width: 30px
      - entity: sensor.maccha_zuo_current_consumption
        name: 功耗
        styles:
          width: 30px
      - entity: sensor.maccha_zuo_today_s_consumption
        name: 今日
        styles:
          width: 30px
      - entity: sensor.maccha_zuo_total_consumption
        name: Total
        styles:
          width: 30px
  - entity: switch.qu_mian_ying_mu_cha_zuo
    type: custom:multiple-entity-row
    name: 曲面
    state_header: Power
    styles:
      width: 30px
    toggle: true
    state_color: true
    icon: mdi:power
    entities:
      - entity: sensor.qu_mian_ying_mu_cha_zuo_voltage
        name: 電壓
        styles:
          width: 30px
      - entity: sensor.qu_mian_ying_mu_cha_zuo_current
        name: 電流
        styles:
          width: 30px
      - entity: sensor.qu_mian_ying_mu_cha_zuo_current_consumption
        name: 功耗
        styles:
          width: 30px
      - entity: sensor.qu_mian_ying_mu_cha_zuo_today_s_consumption
        name: 今日
        styles:
          width: 30px
      - entity: sensor.qu_mian_ying_mu_cha_zuo_total_consumption
        name: Total
        styles:
          width: 30px
  - entity: switch.wu_xian_chong_dian_ban_cha_zuo
    type: custom:multiple-entity-row
    name: 無線充電
    state_header: Power
    styles:
      width: 30px
    toggle: true
    state_color: true
    icon: mdi:power
    entities:
      - entity: sensor.wu_xian_chong_dian_ban_cha_zuo_voltage
        name: 電壓
        styles:
          width: 30px
      - entity: sensor.wu_xian_chong_dian_ban_cha_zuo_current
        name: 電流
        styles:
          width: 30px
      - entity: sensor.wu_xian_chong_dian_ban_cha_zuo_current_consumption
        name: 功耗
        styles:
          width: 30px
      - entity: sensor.wu_xian_chong_dian_ban_cha_zuo_today_s_consumption
        name: 今日
        styles:
          width: 30px
      - entity: sensor.wu_xian_chong_dian_ban_cha_zuo_total_consumption
        name: Total
        styles:
          width: 30px
  - entity: switch.switchcha_zuo
    type: custom:multiple-entity-row
    name: 青萍lite
    state_header: Power
    styles:
      width: 30px
    toggle: true
    state_color: true
    icon: mdi:power
    entities:
      - entity: sensor.switchcha_zuo_voltage
        name: 電壓
        styles:
          width: 30px
      - entity: sensor.switchcha_zuo_current
        name: 電流
        styles:
          width: 30px
      - entity: sensor.switchcha_zuo_current_consumption
        name: 功耗
        styles:
          width: 30px
      - entity: sensor.switchcha_zuo_today_s_consumption
        name: 今日
        styles:
          width: 30px
      - entity: sensor.switchcha_zuo_total_consumption
        name: Total
        styles:
          width: 30px
  - entity: switch.luo_tie_cha_zuo
    type: custom:multiple-entity-row
    name: 烙鐵
    state_header: Power
    styles:
      width: 30px
    toggle: true
    state_color: true
    icon: mdi:power
    entities:
      - entity: sensor.luo_tie_cha_zuo_voltage
        name: 電壓
        styles:
          width: 30px
      - entity: sensor.luo_tie_cha_zuo_current
        name: 電流
        styles:
          width: 30px
      - entity: sensor.luo_tie_cha_zuo_current_consumption
        name: 功耗
        styles:
          width: 30px
      - entity: sensor.luo_tie_cha_zuo_today_s_consumption
        name: 今日
        styles:
          width: 30px
      - entity: sensor.luo_tie_cha_zuo_total_consumption
        name: Total
        styles:
          width: 30px
  - entity: switch.kong_1_6
    type: custom:multiple-entity-row
    name: 印表機
    state_header: Power
    styles:
      width: 30px
    toggle: true
    state_color: true
    icon: mdi:power
    entities:
      - entity: sensor.kong_1_6_voltage
        name: 電壓
        styles:
          width: 30px
      - entity: sensor.kong_1_6_current
        name: 電流
        styles:
          width: 30px
      - entity: sensor.kong_1_6_current_consumption
        name: 功耗
        styles:
          width: 30px
      - entity: sensor.kong_1_6_today_s_consumption
        name: 今日
        styles:
          width: 30px
      - entity: sensor.kong_1_6_total_consumption
        name: Total
        styles:
          width: 30px
show_header_toggle: false
title: HS300-1


記得將實體ID改成你自己的

1個讚