本帖最后由 ciasdmxhxjjpd@c 于 2022-7-14 21:20 编辑
RT,
项目地址:https://github.com/benct/lovelace-multiple-entity-row
效果:
lovelace代码:
type: entities
entities:
- entity: switch.smartplug_switcher
type: custom:multiple-entity-row
name: sw
state_header: switcher
toggle: true
state_color: true
entities:
- entity: sensor.hlw8012_power
name: power
- entity: sensor.monthly_hlw8012_energy
name: energy
- entity: light.light_blue
name: light
state_color: true
icon: mdi:lightbulb-outline
tap_action:
action: toggle
- type: section
- entity: sensor.n1_temp
type: custom:multiple-entity-row
icon: mdi:router-network
name: n1
state_header: cpu
state_color: true
entities:
- entity: sensor.n1_memory_free
name: memory
- entity: sensor.disk_use_percent_config
name: disk
- entity: sensor.yearly_br_lan_gb
name: traffic
- type: section
- entity: sensor.pon_temp
type: custom:multiple-entity-row
name: ont
icon: mdi:router-wireless
state_header: temp
state_color: true
entities:
- entity: sensor.wan_ip
name: myip
- entity: sensor.optical_rx_power
name: RX
- type: section
- entity: sensor.lightsail_delay
type: custom:multiple-entity-row
name: aws
state_header: delay
icon: mdi:aws
state_color: true
entities:
- entity: sensor.vps_ip
name: ip
- entity: sensor.lightsail_network_traffic
name: traffic
|